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 11-01-2011, 08:04 AM   #1
k_balaa
LQ Newbie
 
Registered: Apr 2011
Location: India
Posts: 28

Rep: Reputation: 0
Sendmail Issue..


Unable send a mail to user

My SMTP server ip is : 10.3.9.161.

Added in /etc/mail/sendmail.mc

DAEMON_OPTIONS(`Port=smtp,Addr=10.3.9.161, Name=MTA') dnl

df -h | mail -s “disk space report” bala@123.com

tail -f /var/log/maillog
Nov 1 18:24:42 rilpg12 sendmail[20578]: pA1IOgCM020578: from=root, size=407, class=0, nrcpts=3, msgid=<201111011824.pA1IOgCM020578@rilpg12>, relay=root@localhost
Nov 1 18:24:42 rilpg12 sendmail[20578]: pA1IOgCM020578: to=space,report.,balamurugan.kumaresan@ril.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=90407, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
 
Old 11-01-2011, 08:30 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,897

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Hi,

If you want sendmail to listen on both local loopback interface and the public IP, you should use:
Code:
DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl
Regards
 
Old 11-01-2011, 10:30 PM   #3
k_balaa
LQ Newbie
 
Registered: Apr 2011
Location: India
Posts: 28

Original Poster
Rep: Reputation: 0
Thanks ,but not working...

Nov 2 09:02:59 rilpg12 sendmail[25810]: daemon MTA: problem creating SMTP socket
Nov 2 09:03:04 rilpg12 sendmail[25810]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Cannot assign requested address
Nov 2 09:03:04 rilpg12 sendmail[25810]: daemon MTA: problem creating SMTP socket
Nov 2 09:03:04 rilpg12 sendmail[25810]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: server SMTP socket wedged: exiting


-- Sendmail.mc

define(`SMART_HOST', `10.3.9.161')dnl
DAEMON_OPTIONS(`Port=smtp,Addr=10.3.9.161, Name=MTA') dnl
DAEMON_OPTIONS(`Port=smtp, Name=MTA') dnl
 
Old 11-01-2011, 11:37 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,065

Rep: Reputation: 295Reputation: 295Reputation: 295
Looks like sendmail is having trouble binding to port 25. You might want to check with netstat and make sure that nothing else is bound to that port.
 
Old 11-02-2011, 12:05 AM   #5
k_balaa
LQ Newbie
 
Registered: Apr 2011
Location: India
Posts: 28

Original Poster
Rep: Reputation: 0
nmap -sS -O 127.0.0.1
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2011-11-02 10:37 GMT
Interesting ports on alpha1.localdomain (127.0.0.1):
Not shown: 1667 closed ports
PORT STATE SERVICE
21/tcp open ftp
22/tcp open ssh
25/tcp open smtp
--
 
Old 11-02-2011, 12:43 AM   #6
k_balaa
LQ Newbie
 
Registered: Apr 2011
Location: India
Posts: 28

Original Poster
Rep: Reputation: 0
Fixed.

from : define(`SMART_HOST', `10.3.9.161')dnl
to : define(`SMART_HOST', `hostname')dnl

Working Fine now.
 
  


Reply

Tags
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
sendmail Issue? your_shadow03 Linux - Server 3 10-05-2009 02:32 PM
Sendmail issue! crash_override_me Linux - Server 4 08-18-2008 02:16 AM
Sendmail issue (did not issue MAIL/EXPNVRFY/ETRN ...) Blackout_08 Linux - Server 0 08-08-2007 01:10 PM
Sendmail issue mogundepo Linux - General 1 07-12-2006 10:45 AM
sendmail issue iquadri1 Linux - Networking 1 09-29-2001 02:02 PM


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