fetchmail-friends
[Top] [All Lists]

Re: [fetchmail] Re: bouncing on empty return-path

2003-01-08 09:09:54
Sunil Shetye <shetye(_at_)bombay(_dot_)retortsoft(_dot_)com> writes:

Quoting from Maarten Bezemer's mail on Tue, Jan 07, 2003 at 12:29:34PM +0100:
Which mailer runs on that box? I checked a few exim sites and a few
sendmail sites. Only 1 site (sendmail, and of course exactly the
one at which I don't have access to the sendmail config) does indeed add a
"Return-Path: <MAILER-DAEMON(_at_)smtpservername>" instead of a
"Return-Path: <>".

[OFFTOPIC]

You are right, of course. The sendmail mailer line was:

M..., S=EnvFromL/HdrFromL, ...

On changing it to:

M..., S=EnvFromSMTP/HdrFromSMTP, ...

the Return-Path: was preserved. Is this the correct solution? Or
should EnvFromL and HdrFromL be modified?

Why modify that by hand? Just doing the .mc way of sendmail 8.12
configuration should provide reasonable defaults:

Mlocal,         P=/usr/local/bin/procmail, F=lsDFMAw5:/|@qSPfhn9, 
S=EnvFromSMTP/HdrFromL, R=EnvToL/HdrToL,
                T=DNS/RFC822/SMTP,
                A=procmail -Y -a $h -d $u

Then, the only method seems to be to modify the sanitize() function in
sink.c. One solution would be to put quotes around the addresses.
Attached is a patch which does that. The mda line:

/usr/sbin/sendmail -i -oem -f %F %T

will expand to:

/usr/sbin/sendmail -i -oem -f 'from-address' 'to-address'

Rah. This stupid -oem thing is still around. Kill it. Now.

-oem doesn't work with Postfix or qmail, and it should be removed from
the command line because it is known to have caused duplicate bounces in
the past on sendmail systems. If then, error messages lack, fetchmail
must be fixed.

Remove the -oem, without this option, sendmail will exit with proper
code if it cannot deliver the mail.

And yes, %F needs to be "<>" for sendmail prior to 8.12.7, 8.12.7
and later will accept -f "".

-- 
Matthias Andree