LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-18-2006, 07:40 PM   #1
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Rep: Reputation: 34
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

Last edited by procfs; 09-19-2006 at 07:23 PM.
 
Old 09-18-2006, 08:04 PM   #2
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Original Poster
Rep: Reputation: 34
can we masquerade the originating mail account

mail is generated by root@localhost.localdomain to appear as root@dbserv.something
 
Old 09-19-2006, 03:12 AM   #3
rhce_ds
LQ Newbie
 
Registered: Sep 2006
Posts: 7

Rep: Reputation: 0
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
 
Old 09-19-2006, 07:24 AM   #4
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Original Poster
Rep: Reputation: 34
Hi rhce_ds
How can I change localhost.localdomain to drsrv.tpng in root@localhost.localdomain

Thank you

Regards

Asanka
 
Old 09-19-2006, 06:26 PM   #5
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Original Poster
Rep: Reputation: 34
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

Last edited by procfs; 09-19-2006 at 07:07 PM.
 
Old 09-19-2006, 08:43 PM   #6
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Original Poster
Rep: Reputation: 34
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
 
Old 09-20-2006, 12:46 AM   #7
rhce_ds
LQ Newbie
 
Registered: Sep 2006
Posts: 7

Rep: Reputation: 0
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.
 
Old 09-24-2006, 10:00 PM   #8
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Original Poster
Rep: Reputation: 34
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
 
Old 09-25-2006, 03:35 AM   #9
rhce_ds
LQ Newbie
 
Registered: Sep 2006
Posts: 7

Rep: Reputation: 0
When we make certificate using dovecot then.. it will work..
 
Old 09-26-2006, 10:42 AM   #10
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Original Poster
Rep: Reputation: 34
ok rhce_ds thank you

best regards

Asnka
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail--changing domain from localhost.localdomain andrewstr Linux - Software 3 02-21-2006 01:19 PM
sendmail using localhost.localdomain joe.biz Linux - Software 1 10-27-2005 05:47 PM
could not lookup internet address for localhost.localdomain verstapp Linux - Networking 1 03-15-2004 03:44 PM
sendmail and @localhost.localdomain deadlock Linux - Networking 4 12-17-2003 08:08 AM
sendmail Deferred: Connection refused by localhost.localdomain. 360 Linux - Software 6 03-31-2003 01:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration