4 messages in net.sourceforge.lists.courier-usersRe: [courier-users] Rewrite (root|mai...
FromSent OnAttachments
Michelle KonzackJan 9, 2008 6:46 am 
Sam VarshavchikJan 9, 2008 4:22 pm 
Michelle KonzackJan 16, 2008 5:29 am 
Sam VarshavchikJan 16, 2008 3:18 pm 
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] Rewrite (root|mailer-daemon|postmaster|cron)@xxxx to another E-MailActions...
From:Michelle Konzack (linu@freenet.de)
Date:Jan 16, 2008 5:29:42 am
List:net.sourceforge.lists.courier-users

Hello Sam,

Am 2008-01-09 19:23:01, schrieb Sam Varshavchik:

The only time Courier rewrites headers is when a message is sent by the sendmail command, and the -bs option is not specified. Messages received by SMTP (which includes sendmail's -bs option) are left untouched.

The sendmail man page lists various environment variables which the sendmail command uses to set the From: header. Most system-generated messages, from cron, etc???, are sent by running the sendmail command, so this may work for you. You'll need to figure out how to make arrangements so that the sendmail command, when invoked by various system processes, has the right environment variables set.

I have already set MAILTO in the cronjobs, but it seems to work only partialy... and since "sendmail" is hardcoded in "cron" I can not use any wraper scripts.

I think, renaming sendmail to sendmail-courier and then creating a wraperscript "sendmail" is not re realy good idea... (I have done this already with ssmtp since I had the need for a spool directory)