LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   sendmail from address is root@localhost.localdomain (http://www.linuxquestions.org/questions/linux-software-2/sendmail-from-address-is-root%40localhost-localdomain-484792/)

procfs 09-18-2006 07:40 PM

sendmail from address is root@localhost.localdomain
 
Hi

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.

Problem

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 root@dbsrv.com)

Thank you

Regards

Asanka

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

Regards

Asanka

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(`dbsrv.com')dnl
but no change.

Regards

Asanka

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 sendmail.cf

2. find #Dj$w.Foo.COM

3. and change that to reflect as

Djmydomain.com

4. service sendmail restart


Regards

Asanka

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 sendmail.cf and it worked

Thanks

Best regards

Asanka

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

Asnka


All times are GMT -5. The time now is 11:42 PM.