rastan n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 19 Mar 2005 Posts: 1
|
Posted: Sat Apr 30, 2005 11:46 pm Post subject: Postfix: How to fudge the "From:" header for root |
|
|
Greetings,
I run postfix on several of my gentoo boxes. The problem I have is that some automated scripts (from cron, etc.) don't put the server name in the FROM: header of emails, making it confusing which server the email actually came from
Is there some setting or alias mapping in postfix where all email sent from root has the "From:" header changed from root@servername to "ServerName" <root@servername>? Basically I want my inbox to stop looking like this:
Subject From:
message1 root
message2 root
message3 root
to looking like this:
Subject From:
message1 Server1
message2 Server2
message3 Server3
I know about sendmail -F, but some scripts use their own SMTP engine, and I don't want to have to alter every possible script that might send from root to fix this.
I also know about client-side email filters, but the best this can do is drop emails from different servers into different folders, and I dont get a high enough volume of mail from a large group of servers to justify the effort.
Thanks for any help,
-Justin Grote |
|