LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-18-2011, 05:22 PM   #1
kaplan71
Member
 
Registered: Nov 2003
Posts: 809

Rep: Reputation: 39
sendmail receiving problems


Hi there --

I am running an ESMTP sendmail 8.13.8/8.13.8 server on a CentOS 64-bit distribution. The server is able to send out messages, but is unable to receive them. I have confirmed this by trying to send messages to various accounts on the server and monitoring the /var/log/maillog file with the tail -f command. Additionally, I have checked the time stamp of several /var/spool/mail/<userid> files, and none have today's date.

I checked the /etc/mail/sendmail.mc file, and focused my attention on one of the DAEMON_OPTIONS settings. Prior to making any changes, I made backup copies of the sendmail.cf and sendmail.mc files in the /etc/mail directory. The one in question is shown below:


Code:
dnl # The following causes sendmail to only listen on the IPv4 loopback address
dnl # 127.0.0.1 and not on any other network devices. Remove the loopback
dnl # address restriction to accept email from the internet or intranet.
dnl #
dnl # DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
I believe that is the cause of the issue, and I changed the line question to read as it is shown. The original format of the DAEMON_OPTIONS line is the following:

Code:
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
After I made the change, I ran the following command to have the changes go into effect:

Code:
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
The text of the file scrolled down the screen, and ended with a command prompt. I then ran the service sendmail restart command. The daemon stopped and restarted without issue.

I tried sending an e-mail from an external account to the server, but there was no indication the message got through. Is there something wrong with my syntax, or is there an additional step that needs to be done?

Thanks.
 
Old 04-18-2011, 05:50 PM   #2
technodweeb
Member
 
Registered: Dec 2006
Location: South Dakota
Distribution: Red Hat, Ubuntu
Posts: 32

Rep: Reputation: 2
I am not proficient with sendmail. However you may find this approach useful. Try using telnet 1.2.3.4 25 using your server IP address. This will give you more feedback as to what is happening and do so immediately. I believe it should show a 220 response code. This would just be a starting point to verify a smtp connection can be made. Hope this is some help for you.
 
Old 04-19-2011, 12:28 PM   #3
kaplan71
Member
 
Registered: Nov 2003
Posts: 809

Original Poster
Rep: Reputation: 39
It turns out the syntax is correct, there was simply a delay on the mail server gateway at our site that caused the e-mails to take longer than expected to get through.
 
  


Reply


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
Sendmail not receiving mail Raidmax Slackware 4 08-20-2007 03:00 PM
Sendmail not receiving messages theret79 Linux - Software 1 06-21-2006 10:02 AM
Receiving mails using sendmail mageshbabu.m Linux - Networking 2 01-19-2006 03:00 PM
Sendmail not receiving on FC2; other problems henryhund Linux - General 8 07-26-2004 03:01 PM
problems with sendmail receiving mail isostat1 Linux - Newbie 2 01-12-2004 08:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

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