-   Linux - Software (
-   -   sendmail from address is root@localhost.localdomain (

procfs 09-18-2006 07:40 PM

sendmail from address is root@localhost.localdomain

I am using redhat es3 and its acting as a database serever.

I was able to configure sendmail to redirect root's mails to my email account. This part is working perfectly.


may server name is dbsrv. the maile generated are read as root@localhost.localdomain, how can I change localhost.localdomain ro read dbsrv

(If I send a mail as root its from address is root$localhost.localdomain how can I chang this to look like

Thank you



procfs 09-18-2006 08:04 PM

can we masquerade the originating mail account

mail is generated by root@localhost.localdomain to appear as root@dbserv.something

rhce_ds 09-19-2006 03:12 AM

yes go to your /etc/aliases
and modify there as

root: username

it will redirect mails of root accounts to specified user name...

In order to remove localhost.localdomain...
go to /etc/hosts
there add
your_system_ip stationip.dbserv.something

procfs 09-19-2006 07:24 AM

Hi rhce_ds
How can I change localhost.localdomain to drsrv.tpng in root@localhost.localdomain

Thank you



procfs 09-19-2006 06:26 PM

all the mails that generated by the system are localhost.localdomain even though server name is dbsrv. haw am I to change this.

all the generated mail ftom address looks like root@localhost.localdomain
how can I chang this to be root@dbsrv.tpng

I've changed MASQUERADE_AS(`')dnl
but no change.



procfs 09-19-2006 08:43 PM

ok guys I found the answer in one of the forms all you have to do is

1. vi

2. find #Dj$w.Foo.COM

3. and change that to reflect as

4. service sendmail restart



rhce_ds 09-20-2006 12:46 AM

even you can change it while making the certificate to dovecot.pem

If you edit in /etc/hosts
it will reflect your domain name from your next login.

procfs 09-24-2006 10:00 PM

Hay rhce_ds

I dont know how to set the certificate, but I tried this /etc/hosts and it did not work, so thats when I found in a form saying to chang Dj in and it worked


Best regards


rhce_ds 09-25-2006 03:35 AM

When we make certificate using dovecot then.. it will work..

procfs 09-26-2006 10:42 AM

ok rhce_ds thank you

best regards


All times are GMT -5. The time now is 06:00 AM.