LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Sendmail wont accept mails from localhost (https://www.linuxquestions.org/questions/linux-server-73/sendmail-wont-accept-mails-from-localhost-750902/)

Zangai 08-28-2009 11:39 AM

Sendmail wont accept mails from localhost
 
Hiya,

My sendmail doesn't accept connection from my own host, let me show you the maillog:
Code:

Aug 28 18:42:52 tzxtech sm-msp-queue[8578]: n7SFavhl008331: to=root, delay=01:05:54, xdelay=00:00:00, mailer=relay, pri=391249, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Aug 28 18:42:52 tzxtech sm-msp-queue[8578]: n7SFg6ZI008346: to=root, delay=01:00:46, xdelay=00:00:00, mailer=relay, pri=391249, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Aug 28 18:42:52 tzxtech sm-msp-queue[8578]: n7SFxYaQ008381: to=root, delay=00:43:18, xdelay=00:00:00, mailer=relay, pri=391249, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Aug 28 18:42:52 tzxtech sm-msp-queue[8578]: n7R74tLZ005690: to=postmaster, delay=1+09:37:57, xdelay=00:00:00, mailer=relay, pri=7439728, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Aug 28 18:42:52 tzxtech sm-msp-queue[8578]: n7QL4tLZ005293: to=postmaster, delay=1+19:37:57, xdelay=00:00:00, mailer=relay, pri=9602519, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Aug 28 18:42:52 tzxtech sm-msp-queue[8578]: n7QHJtLZ005171: to=postmaster, delay=1+23:22:57, xdelay=00:00:00, mailer=relay, pri=10411126, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Aug 28 18:42:52 tzxtech sm-msp-queue[8578]: n7QGTtLZ005149: to=postmaster, delay=2+00:12:57, xdelay=00:00:00, mailer=relay, pri=10581345, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Aug 28 18:42:52 tzxtech sm-msp-queue[8578]: n7PMYtLZ004429: to=postmaster, delay=2+18:07:57, xdelay=00:00:00, mailer=relay, pri=14459706, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Aug 28 18:42:52 tzxtech sm-msp-queue[8578]: n7PMYtLa004429: to=postmaster, delay=2+18:07:57, xdelay=00:00:00, mailer=relay, pri=14462495, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Aug 28 18:42:52 tzxtech sm-msp-queue[8578]: n7PDnsLZ003519: to=root, delay=3+02:52:58, xdelay=00:00:00, mailer=relay, pri=16321476, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Aug 28 18:42:52 tzxtech sm-msp-queue[8578]: n7PDnsLa003519: to=root, delay=3+02:52:57, xdelay=00:00:00, mailer=relay, pri=16321498, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Aug 28 18:42:52 tzxtech sm-msp-queue[8578]: n7PDnsLb003519: to=root, delay=3+02:52:57, xdelay=00:00:00, mailer=relay, pri=16321522, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Aug 28 18:42:52 tzxtech sm-msp-queue[8578]: n7P9cIxe002696: to=root, ctladdr=root (0/0), delay=3+07:04:34, xdelay=00:00:00, mailer=relay, pri=17310232, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Aug 28 18:42:52 tzxtech sm-msp-queue[8578]: n7P9bPAg002690: to=root, ctladdr=root (0/0), delay=3+07:05:27, xdelay=00:00:00, mailer=relay, pri=17310254, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Aug 28 18:42:52 tzxtech sm-msp-queue[8578]: n7P9c2Ac002695: to=root, ctladdr=root (0/0), delay=3+07:04:50, xdelay=00:00:00, mailer=relay, pri=17310278, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Aug 28 18:42:52 tzxtech sm-msp-queue[8578]: n7OMtKhM026595: to=postmaster, delay=3+17:47:32, xdelay=00:00:00, mailer=relay, pri=19560000, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Aug 28 18:42:52 tzxtech sm-msp-queue[8578]: n7OMtKhO026595: to=postmaster, delay=3+17:47:32, xdelay=00:00:00, mailer=relay, pri=19585456, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Aug 28 18:42:52 tzxtech sm-msp-queue[8578]: n7OMtKhN026595: to=postmaster, delay=3+17:47:32, xdelay=00:00:00, mailer=relay, pri=19585456, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Aug 28 18:42:52 tzxtech sm-msp-queue[8578]: n7OLFKhM026533: to=postmaster, delay=3+19:27:32, xdelay=00:00:00, mailer=relay, pri=19946918, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Aug 28 18:42:52 tzxtech sm-msp-queue[8578]: n7O7UKhM025530: to=postmaster, delay=4+09:12:32, xdelay=00:00:00, mailer=relay, pri=22915522, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Aug 28 18:42:52 tzxtech sm-msp-queue[8578]: n7NJ0KhM024779: to=postmaster, delay=4+21:42:32, xdelay=00:00:00, mailer=relay, pri=25618314, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Aug 28 18:42:52 tzxtech sm-msp-queue[8578]: n7NIZKhM024760: to=postmaster, delay=4+22:07:32, xdelay=00:00:00, mailer=relay, pri=25709721, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Aug 28 18:42:52 tzxtech sm-msp-queue[8578]: n7NHjKhM024726: to=postmaster, delay=4+22:57:32, xdelay=00:00:00, mailer=relay, pri=25891141, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Aug 28 18:42:52 tzxtech sm-msp-queue[8578]: n7OMtKhQ026595: to=postmaster, delay=3+17:47:31, xdelay=00:00:00, mailer=relay, pri=27919211, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Aug 28 18:42:52 tzxtech sm-msp-queue[8578]: n7OMtKhP026595: to=postmaster, delay=3+17:47:31, xdelay=00:00:00, mailer=relay, pri=27919211, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

I have been looking al over the internet for solution to this problem, but no luck as of yet.

Anybody got an idea?

okcomputer44 08-28-2009 05:23 PM

Hi,

what about the access file?

Has it got the 127.0.0.1 ? Could you check it?

Take a look the sendmail.mc you must have somewhere this too:

Quote:

DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
Take a look this sendmail.mc sample file to check yours.

http://home.freeuk.net/wimp/linux/sa...ndmail.mc.html

Laz

Zangai 08-29-2009 05:49 AM

Quote:

Originally Posted by okcomputer44 (Post 3661362)
Hi,

what about the access file?

Has it got the 127.0.0.1 ? Could you check it?

Take a look the sendmail.mc you must have somewhere this too:


Take a look this sendmail.mc sample file to check yours.

http://home.freeuk.net/wimp/linux/sa...ndmail.mc.html

Laz

/etc/mail/access:
Code:

localhost.localdomain          RELAY
localhost                      RELAY
127.0.0.1                      RELAY

/etc/mail/sendmail.cf:
Code:

O DaemonPortOptions=Port=25, Name=MTA
O DaemonPortOptions=Port=2525, Name=MTA
O DaemonPortOptions=Port=smtps, Name=MSA-SSL, M=E

Using 2525 to bypass ISP block, in combination with no-ip mail reflector.
No IP address passed, which means it is listening on 0.0.0.0, verified by:

Code:

root@tzxtech:/etc/mail# netstat -an | grep 0.0.0.0:25*
tcp        0      0 0.0.0.0:25              0.0.0.0:*              LISTEN
tcp        0      0 0.0.0.0:2525            0.0.0.0:*              LISTEN



All times are GMT -5. The time now is 09:13 AM.