cancel
Showing results for 
Search instead for 
Did you mean: 

sendmail configuration

 
SOLVED
Go to solution
Highlighted
Valued Contributor

sendmail configuration

i have configured sendmail.cf in RHEL 4.7. it is sending mail properly. but when i receive the mail it is coming as root@localhost.toweraustralia.com.au

I want to have the node name / hostname instead of localhsot. ie

root@dmsdev1.toweraustralia.com.au

Which parameter i need to change.
7 REPLIES 7
Highlighted
Honored Contributor

Re: sendmail configuration

Highlighted
Valued Contributor

Re: sendmail configuration

My requirement is opposite. i want to publish local user name and server name.
Highlighted
Honored Contributor
Solution

Re: sendmail configuration

IIRC, the easiest way to change @localhost.toweraustralia.com.au to @dmsdev1.toweraustralia.com.au is putting

dmsdev1.toweraustralia.com.au

as first entry into /etc/hosts, like this

127.0.0.1 dms...com.au localhost localhost.localdomain
Highlighted
Esteemed Contributor

Re: sendmail configuration

Hi ,

you can review the following URL link for how to well confgure the sendmail.cf file

http://www.sendmail.org/m4/readme.html

Hope this helps you

Thanks
Haytham Hosny
Haytham Hosny
Highlighted
Exalted Contributor

Re: sendmail configuration

Shalom,

I would suggest you use the /etc/mail/virtusertable and /etc/mail/genericstable

These two tables control outbound aliases.

You can make
root@localhost.toweraustralia.com.au
be root@toweraustralia.com.au

Or any address you like.

You will need to recompile the sendmail.cf file using m4 directives as explained at http://www.sendmail.org

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Highlighted
Respected Contributor

Re: sendmail configuration

I allways edit the passswd file.
Change the second word "root" to the your systemname.
Highlighted
Valued Contributor

Re: sendmail configuration

I have applied Vitaly Karasik's solution and it worked.