4 messages in net.sourceforge.lists.courier-usersRE: [courier-users] maildrop and RFC2821
FromSent OnAttachments
Jakub WasielewskiFeb 17, 2006 5:48 am 
Jay LeeFeb 17, 2006 6:16 am 
Bowie BaileyFeb 17, 2006 6:50 am 
Jay LeeFeb 17, 2006 7:09 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:RE: [courier-users] maildrop and RFC2821Actions...
From:Bowie Bailey (Bowi@BUC.com)
Date:Feb 17, 2006 6:50:42 am
List:net.sourceforge.lists.courier-users

Jay Lee wrote:

On Fri, February 17, 2006 8:47 am, Jakub Wasielewski wrote:

I have a problem with e-mail forwarding in user's .mailfilter. For instance, when it's set up like: to "!addr@yahoo.com addr@yahoo.com" I mean two recipients from the same domain. Forwarding message will have "<>" as envelope sender and will be rejected by remote smtp server because of RFC2821 stating that bounce message can not have more than one recipient.

Call sendmail directly so that you can set sender:

to '|$SENDMAIL -f "$SENDER" -i "addr@yahoo.com addr@yahoo.com"'

Or, since the TO and CC commands use the SENDMAIL variable, you can define it in /etc/courier/maildroprc like so:

# Sendmail variable used by TO and CC commands import SENDER SENDMAIL="/usr/lib/courier/bin/sendmail -f \"$SENDER\""

And then just use your TO statement normally in the .mailfilter.

to "!addr@yahoo.com addr@yahoo.com"

This saves you from having to make this change everywhere.