Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-26-2009, 01:39 PM   #1
LQ Newbie
Registered: Jul 2009
Posts: 1

Rep: Reputation: 0
sendmail not working

Hi All,

I modified /etc/mail/ to include the following changes:

Modified the line to include ADCB's SMTP Address
define(`SMART_HOST', `ad.abcdsim.local')dnl

Commented the below line in the file /etc/mail/
dnl DAEMON_OPTIONS(`Port=smtp,Addr=, Name=MTA')dnl

Then executed the below steps:

m4 /etc/mail/ > /etc/mail/
Restart sendmail service

But when i run /bin/mail or /usr/sbin/sendmail commands, i receive the following error in the /var/log/maillog as

Jul 26 18:40:58 adcb0293 sendmail[5626]: n6QEew0E005626: from=root, size=48, class=0, nrcpts=1, msgid=<200907261440.n6QEew0E005626@abcd0493@abcdsim.local>, relay=netcool@localhost
Jul 26 18:40:58 abcd0493 sendmail[5626]: n6QEew0E005626: to=netcool@localhost, ctladdr=root,(0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30048, relay=[] [], dsn=4.0.0, stat=Deferred: Connection refused by []

I am able to perform the below commands successfully:

1) telnet localhost 25
2) telnet 25

Not sure if any problems with, but when i tried to send email after executing telnet localhost 25 and from this session i am able to send email. Like

telnet localhost 25
Connected to localhost.localdomain. (
Escape character is '^]'.
220 abcd0493.abcdsim.local ESMTP Sendmail 8.13.1/8.13.1; Sun, 26 Jul 2009 18:52:18 +0400
helo Krishna
250 abcd093.abcdsim.local Hello localhost.localdomain [], pleased to meet you
mail from: netcool@localhost
250 2.1.0 netcool@localhost... Sender ok
rcpt to:
250 2.1.5 Recipient ok
354 Enter mail, end with "." on a line by itself
test message
250 2.0.0 n6QEew0E005626 Message accepted for delivery
221 2.0.0 abcd0493.abcdsim.local closing connection
Connection closed by foreign host.

And in the /var/log/maillog, i can see the entries like

Jul 26 18:56:27 adcb0293 sendmail[5676]: STARTTLS=client, relay=ad.abcdsim.local., version=TLSv1/SSLv3, verify=FAIL, cipher=AES128-SHA, bits=128/128
Jul 26 18:56:27 abcd0493 sendmail[5676]: n6QEqIMH005672:, ctladdr=netcool@localhost (500/501), delay=00:00:57, xdelay=00:00:00, mailer=relay, pri=120013, relay=ad.abcdsim.local. [], dsn=2.0.0, stat=sent (<200907261455.n6QEqIMH005672@abcd0493.abcdsim.local> Queued mail for delivery)

Any my /etc/hosts looks like

# Do not remove the following line, or various programs
# that requires network functionality will fail. localhost.localdomain localhost abcd0493 abcd0493.abcdsim.local

I am unable to figure out where the mistake is. Please help me on this issues.

Best Regards,
Old 07-27-2009, 09:50 AM   #2
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,889

Rep: Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608
Commented the below line in the file /etc/mail/
dnl DAEMON_OPTIONS(`Port=smtp,Addr=, Name=MTA')dnl
You don't need to comment it out. Just remove the Addr part, so sendmail listens on all available interfaces:
DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl


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
Changing port in sendmail, sendmail not working. flschou Linux - Newbie 4 01-16-2008 10:03 AM
sendmail is not working & on $prompt the cmd sendmail hangs Pavan mahoorker Linux - Software 1 04-04-2006 04:57 PM
Help Getting Sendmail working Like I want it shilo Slackware 14 06-07-2004 02:34 PM
Sendmail seems working but not Swift&Smart Linux - Software 2 05-14-2003 08:14 AM
Sendmail not working at all. EL3CTRO Linux - Networking 13 05-03-2003 07:06 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:27 PM.

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