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 "[EMAIL PROTECTED] [EMAIL PROTECTED]"
> > 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 "[EMAIL PROTECTED]
> [EMAIL PROTECTED]"' 

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 "[EMAIL PROTECTED] [EMAIL PROTECTED]"

This saves you from having to make this change everywhere.

-- 
Bowie


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to