LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 0
sendmail not working


Hi All,

I modified /etc/mail/sendmail.mc 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/sendmail.mc
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

Then executed the below steps:

m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
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=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

I am able to perform the below commands successfully:

1) telnet localhost 25
2) telnet 127.0.0.1 25

Not sure if any problems with sendmail.mc, 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
Trying 127.0.0.1...
Connected to localhost.localdomain. (127.0.0.1).
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 [127.0.0.1], pleased to meet you
mail from: netcool@localhost
250 2.1.0 netcool@localhost... Sender ok
rcpt to: krisnaa.p@abcd.com
250 2.1.5 krisnaa.p@abcd.com... Recipient ok
data
354 Enter mail, end with "." on a line by itself
test message
.
250 2.0.0 n6QEew0E005626 Message accepted for delivery
quit
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: to=krisnaa.p@abcd.com, ctladdr=netcool@localhost (500/501), delay=00:00:57, xdelay=00:00:00, mailer=relay, pri=120013, relay=ad.abcdsim.local. [10.100.5.154], 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.

127.0.0.1 localhost.localdomain localhost
10.200.4.155 abcd0493 abcd0493.abcdsim.local

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

Best Regards,
Krisna
 
Old 07-27-2009, 08:50 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

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


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:33 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