![]() |
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] |
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 |
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 |
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.
|
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 -- |
Fixed.
from : define(`SMART_HOST', `10.3.9.161')dnl to : define(`SMART_HOST', `hostname')dnl Working Fine now. |
All times are GMT -5. The time now is 10:06 AM. |