Hi, the German Free Mailer GMX sends its newsletters with a Return-Path like "#16155...@gmx.net".
When I pass the message to Procmail with ===================================================================== procmail unix - n n - 10 pipe flags=Rq user=vmail null_sender= argv=/usr/bin/procmail -m E_SENDER=$sender E_RECIPIENT=$recipient /etc/procmailrc ===================================================================== the "$sender" stays empty because of the leading "#". I also recognized that sometimes the sending mail server does not provide a Return-Path at all. These cases result in Sendmail not being able to reinject the mail after Procmail has processed the message. How can I handle such cases? You can find my procmailrc at [1]. The corresponding log lines are: /var/log/maillog ===================================================================== Jun 12 07:39:15 mx0 postfix/smtpd[13440]: connect from mout.gmx.net[212.227.15.19] Jun 12 07:39:15 mx0 postfix/smtpd[13440]: B689B8240481: client=mout.gmx.net[212.227.15.19] Jun 12 07:39:15 mx0 postfix/cleanup[13447]: B689B8240481: message-id=<08f52951b1ef360622acf42743d2d...@nlsender13.ui-portal.com> Jun 12 07:39:15 mx0 postfix/qmgr[26217]: B689B8240481: from=<#16155...@gmx.net>, size=13755, nrcpt=1 (queue active) Jun 12 07:39:15 mx0 postfix/smtpd[13440]: disconnect from mout.gmx.net[212.227.15.19] Jun 12 07:39:24 mx0 postfix/sendmail[13474]: fatal: Recipient addresses must be specified on the command line or via the -t option Jun 12 07:39:24 mx0 postfix/postdrop[13475]: warning: stdin: unexpected EOF in data, record type 78 length 62 Jun 12 07:39:24 mx0 postfix/postdrop[13475]: fatal: uid=5000: malformed input Jun 12 07:39:24 mx0 postfix/pipe[13448]: B689B8240481: to=<mich...@filestore.su>, relay=procmail, delay=9.1, delays=0.08/0.01/0/9, dsn=5.2.0, status=bounced (can't create user output file) Jun 12 07:39:24 mx0 postfix/cleanup[13447]: CC9D58243806: message-id=<20140612053924.cc9d58243...@mx0.filestore.su> Jun 12 07:39:24 mx0 postfix/qmgr[26217]: CC9D58243806: from=<>, size=15587, nrcpt=1 (queue active) Jun 12 07:39:24 mx0 postfix/bounce[13476]: B689B8240481: sender non-delivery notification: CC9D58243806 Jun 12 07:39:24 mx0 postfix/qmgr[26217]: B689B8240481: removed Jun 12 07:39:25 mx0 postfix/smtp[13482]: CC9D58243806: to=<#16155...@gmx.net>, relay=mx00.emig.gmx.net[213.165.67.114]:25, delay=0.44, delays=0.01/0.01/0.17/0.24, dsn=5.0.0, status=bounced (host mx00.emig.gmx.net[213.165.67.114] said: 550 Requested action not taken: mailbox unavailable (in reply to RCPT TO command)) Jun 12 07:39:25 mx0 postfix/qmgr[26217]: CC9D58243806: removed ===================================================================== /var/log/procmail ===================================================================== procmail: [13449] Thu Jun 12 07:39:15 2014 procmail: Locking "/var/mail/vhosts/backup-mail/mich...@filestore.su/.lock" procmail: Assigning "LASTFOLDER=/var/mail/vhosts/backup-mail/mich...@filestore.su/new/1402551555.13449_1.mx0.ovz" procmail: Unlocking "/var/mail/vhosts/backup-mail/mich...@filestore.su/.lock" procmail: Executing "/usr/local/bin/clamassassin" procmail: Match on "^X-Virus-Status: No" procmail: Executing "/usr/bin/spamassassin" procmail: [13449] Thu Jun 12 07:39:24 2014 procmail: Executing "/usr/sbin/sendmail,-f,mich...@filestore.su" sendmail: fatal: Recipient addresses must be specified on the command line or via the -t option procmail: [13449] Thu Jun 12 07:39:24 2014 procmail: Program failure (75) of "/usr/sbin/sendmail" procmail: Assigning "LASTFOLDER=/usr/sbin/sendmail -f mich...@filestore.su" Subject: Exklusiver Shopping-Zugang: Mode bis zu 80% reduziert - mit Gutschein Folder: **Bounced** 13945 postdrop: warning: stdin: unexpected EOF in data, record type 78 length 62 postdrop: fatal: uid=5000: malformed input ===================================================================== Cheers, Michael [1] http://marc.info/?l=postfix-users&m=140247232114778&w=2