|
Prev: sending mail using msmtp
Next: strange string appended to every sendmail command -- how can I fix?
From: scottoertel on 24 Jun 2008 10:04 I'm running FreeBSD 6.2 with sendmail 8.14.3 We have a domain in the local configuration, such as domain.com, in the access file. It is allowed to receive and send mail. This part works great. Then we have a subdomain, such as sub.domain.com which has a different, remote, mx record. The email being sent to user(a)domain.com has a procmail rule setup to forward email to user1(a)sub.domain.com . Unfortunately sendmail believes that sub.domain.com is a local domain and rejects with user unknown. how do I set sendmail to not treat those two domains as the same domain? I have a similar configuration on a different server, but with a different domain, and it works.. I've compared everything I could think of but haven't gotten any where with it. Jun 24 05:31:03 pro54 sm-mta[62869]: m5OCV3tM062869: --- 220 localhost. ESMTP Sendmail 8.14.3/8.14.3; Tue, 24 Jun 2008 05:31:03 -0700 (PDT) Jun 24 05:31:03 pro54 sm-mta[62869]: m5OCV3tM062869: <-- EHLO mailserver Jun 24 05:31:03 pro54 sm-mta[62869]: m5OCV3tM062869: --- 250- mailserver.com Hello localhost. [127.0.0.1], pleased to meet you Jun 24 05:31:03 pro54 sm-mta[62869]: m5OCV3tM062869: --- 250- ENHANCEDSTATUSCODES Jun 24 05:31:03 pro54 sm-mta[62869]: m5OCV3tM062869: --- 250- PIPELINING Jun 24 05:31:03 pro54 sm-mta[62869]: m5OCV3tM062869: --- 250-8BITMIME Jun 24 05:31:03 pro54 sm-mta[62869]: m5OCV3tM062869: --- 250-SIZE 33554432 Jun 24 05:31:03 pro54 sm-mta[62869]: m5OCV3tM062869: --- 250-DSN Jun 24 05:31:03 pro54 sm-mta[62869]: m5OCV3tM062869: --- 250-ETRN Jun 24 05:31:03 pro54 sm-mta[62869]: m5OCV3tM062869: --- 250-DELIVERBY Jun 24 05:31:03 pro54 sm-mta[62869]: m5OCV3tM062869: --- 250 HELP Jun 24 05:31:03 pro54 sm-mta[62869]: m5OCV3tM062869: <-- MAIL From:<test1(a)domain.com> SIZE=1218 Jun 24 05:31:03 pro54 sm-mta[62869]: m5OCV3tM062869: --- 250 2.1.0 <test1(a)domain.com>... Sender ok Jun 24 05:31:03 pro54 sm-mta[62869]: m5OCV3tM062869: <-- RCPT To:<test2(a)sub.domain.com> Jun 24 05:31:03 pro54 sm-mta[62869]: m5OCV3tM062869: --- 550 5.1.1 <test2(a)sub.domain.com>... User unknown Jun 24 05:31:03 pro54 sm-mta[62869]: m5OCV3tM062869: ruleset=check_rcpt, arg1=<test2(a)sub.domain.com>, relay=localhost. [127.0.0.1], reject=550 5.1.1 <test2(a)sub.domain.com>... User unknown Jun 24 05:31:03 pro54 sm-mta[62869]: m5OCV3tM062869: <-- DATA Jun 24 05:31:03 pro54 sm-mta[62869]: m5OCV3tM062869: --- 503 5.0.0 Need RCPT (recipient) Jun 24 05:31:03 pro54 sm-mta[62869]: m5OCV3tM062869: <-- RSET Jun 24 05:31:03 pro54 sm-mta[62869]: m5OCV3tM062869: --- 250 2.0.0 Reset state Jun 24 05:31:03 pro54 sm-mta[62869]: m5OCV3tM062869: from=<test1(a)domain.com>, size=1218, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost. [127.0.0.1] Any help would be great, -Scott
From: Andrzej Adam Filip on 26 Jun 2008 12:38 scottoertel <scottoertel(a)gmail.com> wrote: > On Jun 25, 4:15 pm, Andrzej Adam Filip <a...(a)onet.eu> wrote: >> scottoer...(a)gmail.com wrote: >> > I'm running FreeBSD 6.2 with sendmail 8.14.3 >> >> > We have a domain in the local configuration, such as domain.com, in >> > the access file. It is allowed to receive and send mail. This part >> > works great. >> >> > Then we have a subdomain, such as sub.domain.com which has a >> > different, remote, mx record. The email being sent to u...(a)domain.com >> > has a procmail rule setup to forward email to us...(a)sub.domain.com . >> > Unfortunately sendmail believes that sub.domain.com is a local domain >> > and rejects with user unknown. >> >> > how do I set sendmail to not treat those two domains as the same >> > domain? I have a similar configuration on a different server, but with >> > a different domain, and it works.. I've compared everything I could >> > think of but haven't gotten any where with it. >> > [...] >> >> There are two most likely reasons: >> 1) sendmail by default guesses which names it should add to list of >> local email domains. It can be turned off: >> http://www.sendmail.org/m4/tweaking_config.html#confDONT_PROBE_INTERF... >> >> To get list of local email domains use: >> echo '$=w' | sendmail -bt >> >> 2) sendmail may rewrite CNAME (including wildcard CNAME) to "real name" >> check it using >> >> echo '3,0 x...(a)sub.domain.com' | sendmail -bt >> > > Ok, so I ran these commands and it seems fine to me.. > > ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) > Enter <ruleset> <address> >> canonify input: fmtest2 @ fm . testfm . biz > Canonify2 input: fmtest2 < @ fm . testfm . biz > > Canonify2 returns: fmtest2 < @ fm . testfm . biz . > > canonify returns: fmtest2 < @ fm . testfm . biz . > > parse input: fmtest2 < @ fm . testfm . biz . > > Parse0 input: fmtest2 < @ fm . testfm . biz . > > Parse0 returns: fmtest2 < @ fm . testfm . biz . > > ParseLocal input: fmtest2 < @ fm . testfm . biz . > > ParseLocal returns: fmtest2 < @ fm . testfm . biz . > > Parse1 input: fmtest2 < @ fm . testfm . biz . > > Mailertable input: < fm . testfm . biz > fmtest2 < @ fm . > aplusfm . biz . > > Mailertable input: fm . < testfm . biz > fmtest2 < @ fm . > aplusfm . biz . > > Mailertable input: fm . testfm . < biz > fmtest2 < @ fm . > aplusfm . biz . > > Mailertable returns: fmtest2 < @ fm . testfm . biz . > > Mailertable returns: fmtest2 < @ fm . testfm . biz . > > Mailertable returns: fmtest2 < @ fm . testfm . biz . > > MailerToTriple input: < > fmtest2 < @ fm . testfm . biz . > > MailerToTriple returns: fmtest2 < @ fm . testfm . biz . > > Parse1 returns: $# esmtp $@ fm . testfm . biz . $: fmtest2 < > @ fm . aplusfm . biz . > > parse returns: $# esmtp $@ fm . testfm . biz . $: fmtest2 < > @ fm . aplusfm . biz . > According to the above sendmail should try to send to non local host fm.testfm.biz [ it looks OK ] => playing with confDONT_PROBE_INTERFACES should not be necessary. > [...] > Any ideas? 0) what is reported by the test command below? sendmail -bv fmtest2(a)fm.aplusfm.biz 1) Try to send test message as root in verbose mode (echo subject: test; echo) | sendmail -v -Am fmtest2(a)fm.aplusfm.biz -- [pl>en Andrew] Andrzej Adam Filip : anfi(a)priv.onet.pl : anfi(a)xl.wp.pl In charity there is no excess. -- Francis Bacon
|
Pages: 1 Prev: sending mail using msmtp Next: strange string appended to every sendmail command -- how can I fix? |