Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sendmail senders 1

Status
Not open for further replies.

phorbiuz

Technical User
Jul 22, 2004
67
GB
OK, anyone know if this can be done.

I have a server which uses Sendmail to send mails if check scripts finds a problem. It has a domain set by the Dj entry such as:

Djuk.company.com

So, when an id sends a mail the recipient will see sender's such as:

root@uk.company.com
joebloggs@uk.company.com

However, what we want to do is substitute the user name for the hostname, so the examples above would become:

root@uk.company.com -> server1@uk.company.com
joebloggs@uk.company.com -> server1@uk.company.com

Anyone know if/how this can be done?

Thanks.
 
it sounds like you want to use the userdb feature to remap the sender name to something else... but you want it to just be the hostname for everyone or certain users? if just certain users i spose you could just create a script that generates the userdb table on each host rewriting root = hostname

you can google for sendmail userdb feature to get more details.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top