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) sendmail[1329]: o6E9POvn001329: to=jo...@sppn.nl, ctladdr=jv (501/501), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30032, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as BC22AC53F7) postfix/smtpd[1331]: disconnect from localhost.localdomain[127.0.0.1] postfix/smtp[1334]: < smtp.xs4all.nl[194.109.6.51]:25: 220 smtp-vbr12.xs4all.nl ESMTP Sendmail 8.13.8/8.13.8; Wed, 14 Jul 2010 11:25:25 +0200 (CEST) postfix/smtp[1334]: > smtp.xs4all.nl[194.109.6.51]:25: EHLO phoenix.squirrel.nl postfix/smtp[1334]: < smtp.xs4all.nl[194.109.6.51]:25: 250-smtp-vbr12.xs4all.nl Hello sioban.squirrel.nl [80.101.24.220], pleased to meet you postfix/smtp[1334]: < smtp.xs4all.nl[194.109.6.51]:25: 250-ENHANCEDSTATUSCODES postfix/smtp[1334]: < smtp.xs4all.nl[194.109.6.51]:25: 250-PIPELINING postfix/smtp[1334]: < smtp.xs4all.nl[194.109.6.51]:25: 250-8BITMIME postfix/smtp[1334]: < smtp.xs4all.nl[194.109.6.51]:25: 250-SIZE 31457280 postfix/smtp[1334]: < smtp.xs4all.nl[194.109.6.51]:25: 250-DSN postfix/smtp[1334]: < smtp.xs4all.nl[194.109.6.51]:25: 250-AUTH LOGIN PLAIN postfix/smtp[1334]: < smtp.xs4all.nl[194.109.6.51]:25: 250-STARTTLS postfix/smtp[1334]: < smtp.xs4all.nl[194.109.6.51]:25: 250-DELIVERBY postfix/smtp[1334]: < smtp.xs4all.nl[194.109.6.51]:25: 250 HELP postfix/smtp[1334]: server features: 0x901f size 31457280 postfix/smtp[1334]: Using ESMTP PIPELINING, TCP send buffer size is 4096 postfix/smtp[1334]: > smtp.xs4all.nl[194.109.6.51]:25: MAIL FROM:<j...@phoenix.squirrel.nl> SIZE=509 postfix/smtp[1334]: > smtp.xs4all.nl[194.109.6.51]:25: RCPT TO:<jo...@sppn.nl> ORCPT=rfc822;jo...@sppn.nl postfix/smtp[1334]: > smtp.xs4all.nl[194.109.6.51]:25: DATA postfix/smtp[1334]: < smtp.xs4all.nl[194.109.6.51]:25: 250 2.1.0 <j...@phoenix.squirrel.nl>... Sender ok postfix/smtp[1334]: < smtp.xs4all.nl[194.109.6.51]:25: 250 2.1.5 <jo...@sppn.nl>... Recipient ok postfix/smtp[1334]: < smtp.xs4all.nl[194.109.6.51]:25: 354 Enter mail, end with "." on a line by itself postfix/smtp[1334]: > smtp.xs4all.nl[194.109.6.51]:25: . postfix/smtp[1334]: > smtp.xs4all.nl[194.109.6.51]:25: QUIT postfix/smtp[1334]: < smtp.xs4all.nl[194.109.6.51]:25: 250 2.0.0 smtp-vbr12.xs4all.nl accepted message o6E9PPBt095223 postfix/smtp[1334]: BC22AC53F7: to=<jo...@sppn.nl>, relay=smtp.xs4all.nl[194.109.6.51]:25, delay=0.37, delays=0.1/0.02/0.11/0.14, dsn=2.0.0, status=sent (250 2.0.0 smtp-vbr12.xs4all.nl accepted message o6E9PPBt095223) This is the postfix variant: postfix/pickup[31556]: 94A56C53F6: uid=501 from=<jv> postfix/cleanup[1333]: 94A56C53F6: message-id=<20100714092541.94a56c5...@phoenix.squirrel.nl> postfix/qmgr[4845]: 94A56C53F6: from=<j...@squirrel.nl>, size=297, nrcpt=1 (queue active) postfix/smtp[1334]: < smtp.xs4all.nl[194.109.6.51]:25: 220 smtp-vbr2.xs4all.nl ESMTP Sendmail 8.13.8/8.13.8; Wed, 14 Jul 2010 11:25:41 +0200 (CEST) postfix/smtp[1334]: > smtp.xs4all.nl[194.109.6.51]:25: EHLO phoenix.squirrel.nl postfix/smtp[1334]: < smtp.xs4all.nl[194.109.6.51]:25: 250-smtp-vbr2.xs4all.nl Hello sioban.squirrel.nl [80.101.24.220], pleased to meet you postfix/smtp[1334]: < smtp.xs4all.nl[194.109.6.51]:25: 250-ENHANCEDSTATUSCODES postfix/smtp[1334]: < smtp.xs4all.nl[194.109.6.51]:25: 250-PIPELINING postfix/smtp[1334]: < smtp.xs4all.nl[194.109.6.51]:25: 250-8BITMIME postfix/smtp[1334]: < smtp.xs4all.nl[194.109.6.51]:25: 250-SIZE 31457280 postfix/smtp[1334]: < smtp.xs4all.nl[194.109.6.51]:25: 250-DSN postfix/smtp[1334]: < smtp.xs4all.nl[194.109.6.51]:25: 250-AUTH LOGIN PLAIN postfix/smtp[1334]: < smtp.xs4all.nl[194.109.6.51]:25: 250-STARTTLS postfix/smtp[1334]: < smtp.xs4all.nl[194.109.6.51]:25: 250-DELIVERBY postfix/smtp[1334]: < smtp.xs4all.nl[194.109.6.51]:25: 250 HELP postfix/smtp[1334]: server features: 0x901f size 31457280 postfix/smtp[1334]: Using ESMTP PIPELINING, TCP send buffer size is 4096 postfix/smtp[1334]: > smtp.xs4all.nl[194.109.6.51]:25: MAIL FROM:<j...@squirrel.nl> SIZE=297 postfix/smtp[1334]: > smtp.xs4all.nl[194.109.6.51]:25: RCPT TO:<jo...@sppn.nl> ORCPT=rfc822;jo...@sppn.nl postfix/smtp[1334]: > smtp.xs4all.nl[194.109.6.51]:25: DATA postfix/smtp[1334]: < smtp.xs4all.nl[194.109.6.51]:25: 250 2.1.0 <j...@squirrel.nl>... Sender ok postfix/smtp[1334]: < smtp.xs4all.nl[194.109.6.51]:25: 250 2.1.5 <jo...@sppn.nl>... Recipient ok postfix/smtp[1334]: < smtp.xs4all.nl[194.109.6.51]:25: 354 Enter mail, end with "." on a line by itself postfix/smtp[1334]: > smtp.xs4all.nl[194.109.6.51]:25: . postfix/smtp[1334]: > smtp.xs4all.nl[194.109.6.51]:25: QUIT postfix/smtp[1334]: < smtp.xs4all.nl[194.109.6.51]:25: 250 2.0.0 smtp-vbr2.xs4all.nl accepted message o6E9PfiS042972 postfix/smtp[1334]: 94A56C53F6: to=<jo...@sppn.nl>, relay=smtp.xs4all.nl[194.109.6.51]:25, delay=0.35, delays=0.06/0/0.11/0.18, dsn=2.0.0, status=sent (250 2.0.0 smtp-vbr2.xs4all.nl accepted message o6E9PfiS042972) In the sendmail case postfix considers this a relay so it doesn't fiddle with the addresses. Kudos to Victor who first suggested to look at the frontend programs. Thanks all for helping me solve this, correctly and permanently. -- Johan