On 7/14/2010 5:01 AM, Johan Vromans wrote:
Noel Jones<njo...@megan.vbhcs.org> writes:
It might be helpful if you shared the logs of mail entering postfix
when you run your test command.
As basic as possible:
$ cat test.msg
To: jo...@sppn.nl
test message
$ /usr/sbin/sendmail -v -t< test.msg
While figuring this out I ran severeal tests and it occurred to me
that it was rather strange for sendmail to pass the message to postfix
using SMTP. Further investigation revealed the real cause of my
problems: for some reasons /usr/sbin/sendmail had not been replaced by
its postfix variant.
With the following (relevant) entries in main,cf:
myorigin = $mydomain
#masquerade_domains = $mydomain
This is what happens when I pass the message to the sendmail variant:
postfix/smtpd[1331]: connect from localhost.localdomain[127.0.0.1]
postfix/smtpd[1331]: BC22AC53F7: client=localhost.localdomain[127.0.0.1]
postfix/cleanup[1333]: BC22AC53F7:
message-id=<201007140925.o6e9povn001...@phoenix.squirrel.nl>
postfix/qmgr[4845]: BC22AC53F7: from=<j...@phoenix.squirrel.nl>, size=509,
nrcpt=1 (queue active)
I suspected as much; sendmail has already added the offending
hostname. Uninstalling sendmail will fix this and possibly
other problems.
You could fix this in postfix with the masquerade_domains
parameter, but the proper fix is to remove sendmail.
...
In the sendmail case postfix considers this a relay so it doesn't
fiddle with the addresses.
No, postfix doesn't fiddle with it because it already has a
domain name. Postfix doesn't alter FQDN addresses unless
you've specified some rewriting as detailed in
http://www.postfix.org/ADDRESS_REWRITING_README.html
-- Noel Jones