Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am newbie to Sendmail.I just read one good doc and tried setting up sendmail.I installed latest sendmail packages.
My /etc/mail/sendmail.mc file is :
I do not see a public address or a NAT routable private address in your setup. Also, unless you have a public IP address which lists your domain in a reverse lookup, many mail servers will reject your mail anyway. You will need to relay your outbound mail through your ISP's mail hub.
[root@pe ~]# mailq
/var/spool/mqueue is empty
Total requests: 0
[root@pe ~]#
Code:
[root@pe ~]# tail -50 /var/log/maillog
Sep 22 04:51:20 pe sm-msp-queue[4666]: m8LMWFmL004068: to=root, ctladdr=root (0/0), delay=00:49:05, xdelay=00:00:00, mailer=relay, pri=120823, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection reset by [127.0.0.1]
Sep 22 05:51:20 pe sm-msp-queue[5190]: m8LMWFmL004068: to=root, ctladdr=root (0/0), delay=01:49:05, xdelay=00:00:00, mailer=relay, pri=210823, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: 451 qq temporary problem (#4.3.0)
Sep 22 06:51:20 pe sm-msp-queue[5715]: m8LMWFmL004068: to=root, ctladdr=root (0/0), delay=02:49:05, xdelay=00:00:00, mailer=relay, pri=300823, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection reset by [127.0.0.1]
Sep 22 07:51:20 pe sm-msp-queue[6239]: m8LMWFmL004068: to=root, ctladdr=root (0/0), delay=03:49:05, xdelay=00:00:00, mailer=relay, pri=390823, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection reset by [127.0.0.1]
Sep 22 08:51:20 pe sm-msp-queue[6763]: m8LMWFmL004068: to=root, ctladdr=root (0/0), delay=04:49:05, xdelay=00:00:00, mailer=relay, pri=480823, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection reset by [127.0.0.1]
Sep 22 08:51:20 pe sm-msp-queue[6763]: m8LMWFmL004068: m8M3LKOS006763: sender notify: Warning: could not send message for past 4 hours
Sep 22 08:51:20 pe sm-msp-queue[6763]: m8M3LKOS006763: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=32129, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection reset by [127.0.0.1]
Sep 22 09:51:20 pe sm-msp-queue[7287]: m8M3LKOS006763: to=root, delay=01:00:00, xdelay=00:00:00, mailer=relay, pri=122129, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: 451 qq temporary problem (#4.3.0)
Sep 22 09:51:21 pe sm-msp-queue[7287]: m8LMWFmL004068: to=root, ctladdr=root (0/0), delay=05:49:06, xdelay=00:00:00, mailer=relay, pri=570823, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (ok 1222057281 qp 7290)
Sep 22 10:51:21 pe sm-msp-queue[7824]: m8M3LKOS006763: to=root, delay=02:00:01, xdelay=00:00:01, mailer=relay, pri=212129, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: 451 qq temporary problem (#4.3.0)
Sep 22 11:51:21 pe sm-msp-queue[8350]: m8M3LKOS006763: to=root, delay=03:00:01, xdelay=00:00:00, mailer=relay, pri=302129, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection reset by [127.0.0.1]
Sep 22 12:51:21 pe sm-msp-queue[8939]: m8M3LKOS006763: to=root, delay=04:00:01, xdelay=00:00:00, mailer=relay, pri=392129, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection reset by [127.0.0.1]
Sep 22 13:51:21 pe sm-msp-queue[9463]: m8M3LKOS006763: to=root, delay=05:00:01, xdelay=00:00:00, mailer=relay, pri=482129, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection reset by [127.0.0.1]
Sep 22 14:51:21 pe sm-msp-queue[10184]: m8M3LKOS006763: to=root, delay=06:00:01, xdelay=00:00:00, mailer=relay, pri=572129, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection reset by [127.0.0.1]
Sep 22 15:51:21 pe sm-msp-queue[10708]: m8M3LKOS006763: to=root, delay=07:00:01, xdelay=00:00:00, mailer=relay, pri=662129, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection reset by [127.0.0.1]
Sep 22 16:51:21 pe sm-msp-queue[11235]: m8M3LKOS006763: to=root, delay=08:00:01, xdelay=00:00:00, mailer=relay, pri=752129, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection reset by [127.0.0.1]
Sep 22 17:42:54 pe sendmail[11704]: alias database /etc/aliases rebuilt by root
Sep 22 17:42:54 pe sendmail[11704]: /etc/aliases: 78 aliases, longest 10 bytes, 802 bytes total
Sep 22 17:42:55 pe sendmail[11709]: starting daemon (8.13.1): SMTP+queueing@01:00:00
Sep 22 17:42:55 pe sendmail[11709]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Sep 22 17:42:55 pe sendmail[11709]: daemon MTA: problem creating SMTP socket
Sep 22 17:42:55 pe sm-msp-queue[11718]: starting daemon (8.13.1): queueing@01:00:00
Sep 22 17:42:55 pe sm-msp-queue[11719]: m8M3LKOS006763: to=root, delay=08:51:35, xdelay=00:00:00, mailer=relay, pri=842129, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection reset by [127.0.0.1]
Sep 22 17:43:00 pe sendmail[11709]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Sep 22 17:43:00 pe sendmail[11709]: daemon MTA: problem creating SMTP socket
Sep 22 17:43:05 pe sendmail[11709]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Sep 22 17:43:05 pe sendmail[11709]: daemon MTA: problem creating SMTP socket
Sep 22 17:43:10 pe sendmail[11709]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Sep 22 17:43:10 pe sendmail[11709]: daemon MTA: problem creating SMTP socket
Sep 22 17:43:15 pe sendmail[11709]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Sep 22 17:43:15 pe sendmail[11709]: daemon MTA: problem creating SMTP socket
Sep 22 17:43:20 pe sendmail[11709]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Sep 22 17:43:20 pe sendmail[11709]: daemon MTA: problem creating SMTP socket
Sep 22 17:43:25 pe sendmail[11709]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Sep 22 17:43:25 pe sendmail[11709]: daemon MTA: problem creating SMTP socket
Sep 22 17:43:30 pe sendmail[11709]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Sep 22 17:43:30 pe sendmail[11709]: daemon MTA: problem creating SMTP socket
Sep 22 17:43:35 pe sendmail[11709]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Sep 22 17:43:35 pe sendmail[11709]: daemon MTA: problem creating SMTP socket
Sep 22 17:43:40 pe sendmail[11709]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Sep 22 17:43:40 pe sendmail[11709]: daemon MTA: problem creating SMTP socket
Sep 22 17:43:45 pe sendmail[11709]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Sep 22 17:43:45 pe sendmail[11709]: daemon MTA: problem creating SMTP socket
Sep 22 17:43:45 pe sendmail[11709]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: server SMTP socket wedged: exiting
Sep 22 17:50:13 pe sendmail[11847]: m8MCKCV5011847: from=root, size=34, class=0, nrcpts=1, msgid=<200809221220.m8MCKCV5011847@pe.im.logica.com>, relay=root@localhost
Sep 22 17:50:13 pe sendmail[11847]: m8MCKCV5011847: to=localhost, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30034, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection reset by [127.0.0.1]
Sep 22 17:50:41 pe sendmail[11853]: m8MCKftL011853: from=root, size=55, class=0, nrcpts=2, msgid=<200809221220.m8MCKftL011853@pe.im.logica.com>, relay=root@localhost
Sep 22 17:50:41 pe sendmail[11853]: m8MCKftL011853: to=root@localhost,localhost, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=60055, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection reset by [127.0.0.1]
Sep 22 17:55:48 pe sendmail[11900]: m8MCPm6D011900: from=root, size=57, class=0, nrcpts=2, msgid=<200809221225.m8MCPm6D011900@pe.im.logica.com>, relay=root@localhost
Sep 22 17:55:48 pe sendmail[11900]: m8MCPm6D011900: to=root@localhost,10.14.236.169, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=60057, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection reset by [127.0.0.1]
[root@pe ~]#
Code:
[root@pe ~]# mail -v oman@gmail.com < /dev/null
No message, no subject; hope that's ok
oman@gmail.com... Connecting to [127.0.0.1] via relay...
oman@gmail.com... Deferred: Connection reset by [127.0.0.1]
Closing connection to [127.0.0.1]
[root@pe ~]#
What I can see from the results, it seems like your "sendmail restart" does not execute propperly, since the smtp port is running allready when sendmail wants to start up again.
" opendaemonsocket: daemon MTA: cannot bind: Address already in use
"
Your mail queue is clean, so your mail is sent out ... or not ?
What is your current issues.
IF YOU CAN, restart the server , and see if you still have your current issues, if so , list the current issues still ok ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.