1752677 Members
5876 Online
108789 Solutions
New Discussion юеВ

sendmail configuration

 
SOLVED
Go to solution
Khashru
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
Ivan Krastev
Honored Contributor

Re: sendmail configuration

Khashru
Valued Contributor

Re: sendmail configuration

My requirement is opposite. i want to publish local user name and server name.
Vitaly Karasik_1
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
haytham_hosny
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
Steven E. Protter
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
wobbe
Respected Contributor

Re: sendmail configuration

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

Re: sendmail configuration

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