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:Sam Varshavchik (mrs@courier-mta.com)
Date:Jan 16, 2008 3:18:38 pm
List:net.sourceforge.lists.courier-users

Michelle Konzack writes:

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

That's fine, but that's not one of the variables that has anything to do with rewriting the From: header. It's MAILUSER and MAILHOST.