Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

Rewriting the From Line on Outgoing Mail is not working

Highlighted
RajuD
Frequent Advisor

Rewriting the From Line on Outgoing Mail is not working

Hi,

 

Rewriting the From Line on Outgoing Mail is not working.  Could you please provide us the step by step method for configuring from line on outgoing mail. i followed the below procedure but no luck any idea where i stuck?

 

To rewrite From lines on an outgoing mail message, do the following:
1. Create the file /etc/mail/userdb, which contains two entries for
each mail user. The entries must be in the following format:
bkelley:mailname Bob_Kelley
Bob_Kelley:maildrop bkelley
2. Build the /etc/mail/userdb.db file with the makemap routine:
makemap btree /etc/mail/userdb.db < /etc/mail/userdb
3. Uncomment the following line in the /etc/mail/sendmail.cf file:
UserDatabaseSpec=/etc/mail/userdb.db
4. Add the i flag to all the mailer definitions, to enable UDB sender
rewriting. For example, change the mailer definition from
Mlocal, P=/usr/bin/rmail, F=lsDFMAw5:/|@m,
S=10/30, R=20/40, T=DNS/RFC822/X-Unix,
A=rmail -d $u
to
Mlocal, P=/usr/bin/rmail, F=lsDFMAw5:/|@mi,
S=10/30, R=20/40, T=DNS/RFC822/X-Unix,
A=rmail -d $u

“Education is our passport to the future, for tomorrow belongs to those who prepare for it today.”