LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 09-29-2006, 07:25 AM   #1
Merlyn
Member
 
Registered: Jun 2005
Location: London
Distribution: None - yet
Posts: 51

Rep: Reputation: 15
Unhappy Unable to send mail after a server move


I'm sorry about the lack of details I'm going to give. My Linux knowledge is limited, but I'm happy to go find out more... Here's my problem:

We've recently had to move some servers on our network. They are in a new ip range. Everything seems to be ok. People can log on to our websites externally. We do have a problem sending email now, though. We have several qmail servers and a sendmail server. None of them seen to be able to be able to forward mail from other servers. For example we have a website that will email forgotten passwords. The system seems to think it successfully sends the details, but actually it fails to send them. I've tried Telneting from the websever to the mailserver. That works, but a normal message fails. Because we have moved our servers I think the mail servers must need to know the ipaddresses or machines that are allowed to send it mail to forward. Is this theory correct and how do I go about configuring these settings?

Thank you for any help. It's greatly appreciated.
 
Old 09-29-2006, 11:00 AM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,009
Blog Entries: 5

Rep: Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787
For sendmail have a look at /etc/sendmail.cf.

See if you have any hard coded server names or IP addresses.

For example the Smart Mail Relay line could have:

DSxxx.xxx.xxx.xxx

Where xxx.xxx.xxx was the old IP address. You'd want to change this from IP address to name and insure you could look up the name and get its IP address (via DNS or /etc/hosts for example). Failing that you could just hard code the new IP address of the destination relay.

Haven't worked with qmail but it likely has similar configs that need to be modified if you've hardcode IP addresses or can no longer look up host to ip mappings for some reason.

Check your /etc/resolv.conf to be sure the "nameservers" it specifies have your new IP ranges if the nameservers moved too.
 
Old 09-29-2006, 11:39 AM   #3
Merlyn
Member
 
Registered: Jun 2005
Location: London
Distribution: None - yet
Posts: 51

Original Poster
Rep: Reputation: 15
Thanks for the reply.

For that line I don't have any ip addresses attached to it:

# "Smart" relay host (may be null)
DS

But on /etc/resolv.conf, you're right. The new ip addresses are not there. If I add them what do I need to recycle/restart so it sees it.

Thanks!
 
Old 09-29-2006, 02:42 PM   #4
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,009
Blog Entries: 5

Rep: Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787
Nothing. /etc/resolv.conf is read at the time of the lookup (assuming your /etc/nsswitch.conf says to use DNS).

Are you saying the old addresses ARE there or that there are NO addresses there? If the latter then it means you likely didn't have them before so they probably aren't your issue now. If the former make sure you delete the old addresses.
 
Old 09-29-2006, 03:41 PM   #5
Merlyn
Member
 
Registered: Jun 2005
Location: London
Distribution: None - yet
Posts: 51

Original Poster
Rep: Reputation: 15
In /etc/resolv.conf are the old ip addresses. I will add the new ones and delete the old ones. Thank you for telling me about this - I would never have known. I will reply back when I have made the change and say if it was successful.

Thanks again.
 
Old 10-01-2006, 06:18 AM   #6
Merlyn
Member
 
Registered: Jun 2005
Location: London
Distribution: None - yet
Posts: 51

Original Poster
Rep: Reputation: 15
I tried adding the ip addresses to that file. Unfortunately it hasn't made a difference. Do you have any other ideas, what I can try?

Thanks.
 
Old 10-02-2006, 01:43 PM   #7
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,009
Blog Entries: 5

Rep: Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787
Check /etc/hosts on each of the systems and insure the IP addresses are updated there (especially for the the system itself). Make sure the system's entry is the first one after the one for 127.0.0.1 (localhost).
 
Old 10-03-2006, 05:49 AM   #8
Merlyn
Member
 
Registered: Jun 2005
Location: London
Distribution: None - yet
Posts: 51

Original Poster
Rep: Reputation: 15
Thank you - jlightner, but unfortunately that didn't change it either.
 
Old 10-09-2006, 03:20 PM   #9
Merlyn
Member
 
Registered: Jun 2005
Location: London
Distribution: None - yet
Posts: 51

Original Poster
Rep: Reputation: 15
Hi,

I've solved the problem. It was an issue with the DNS on a different server.

Thanks for all your help.
 
  


Reply

Tags
email, mail, qmail, sendmail


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Unable to send mail to some mail servers due smtp greetings malformed atotomex Linux - Networking 6 12-20-2005 04:38 PM
Server does'nt send mail until shutdown and LAN can't send or receive. Wolfy Linux - Networking 0 08-02-2004 07:31 PM
Unable to send Mail ! phil81 Linux - Networking 5 06-12-2004 10:37 AM
Cable Modem and E-Mail Problem (unable to send). Interceptor Linux - Hardware 0 03-14-2004 07:25 PM
Evolution: unable to send e-mail azebuski Linux - Software 2 02-01-2004 08:57 PM


All times are GMT -5. The time now is 07:15 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration