Configuration of Server root email - Change Address and Name on outgoing email

Posted by JTWOOD on Server Fault See other posts from Server Fault or by JTWOOD
Published on 2012-07-29T17:37:33Z Indexed on 2013/07/02 17:07 UTC
Read the original article Hit count: 241

Filed under:

As a newbie Postfix user, I've gotten so far and now I am stuck with a SMALL problem.

I would like to configure my local network servers to send alerts and like using the following:

1) From address: [email protected]

2) From name: Hostname

I can get #1 to work fine using smtp_generic_maps

The problem is that on my email client, the name is listed as "root" - as in the header shows the following:

Date: Sun, 29 Jul 2012 13:21:01 -0400 (EDT)

From: [email protected] (root)

To: undisclosed-recipients:;

I'd like to change it to "From: [email protected] (Zeus)"

I imagine that this can be done in the headers_check, but so far I haven't gotten anything to work and before I waste a ton of time trying to get this to work, I'd like to make sure I am on the right track.

My aliasing and genericmaps are set up correctly (As far as I can see and know - the results are correct!). I just want to change that last bit in the From field to reflect the hostname.

I would also like to add something in the subject of the outgoing messages for easy filtering - something like Subject: [Zeus.domain] - "Original Subject"

Any suggestions are much appreciated. Thanks!

© Server Fault or respective owner

Related posts about postfix