[Linux-disciples] Modifying headers of outbound msgs in postfix

Adam Rosi-Kessel adam at rosi-kessel.org
Tue Sep 21 12:08:27 EDT 2004


Off the cuff, I think the easiest way would be to actually deliver it
locally to procmail and have procmail do the rewrite and forward.  There
may be a way to do it entirely with postfix, but the only rewriting I'm
aware of with postfix is address rewrite (see man canonical), not other
parts of the header.

On Tue, Sep 21, 2004 at 11:57:57AM -0400, Stephen R Laniel wrote:
> I'm going to be hosting a friend's company's website, and
> I'll also be setting up a few email addresses for them.
> Those email addresses will all forward to the home email
> addresses of people within the company. To avoid confusion
> on the other end, I'd like to change the subject line of
> messages destined for those email addresses so that they
> look something like
> 
> 	Subject: [companyName] [old subject]
> 
> If the message were coming to a local shell account, I'd use
> Postfix for this. If the recipient were a mailing list, we'd
> get the '[companyName]' prefix for free. But what if the
> receipient is in /etc/aliases and nowhere else?
> 
> Presumably I can get Postfix to do this. But having done no
> Postfix admin before now, I'm not sure how to do it. Can the
> more Postfix-aware among you help me out?
-- 
Adam Rosi-Kessel
http://adam.rosi-kessel.org


More information about the Linux-disciples mailing list