LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-28-2009, 11:39 AM   #1
Zangai
LQ Newbie
 
Registered: Dec 2007
Posts: 15

Rep: Reputation: 0
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?
 
Old 08-28-2009, 05:23 PM   #2
okcomputer44
Member
 
Registered: Jun 2008
Location: /home/laz
Distribution: CentOS/Debian
Posts: 246

Rep: Reputation: 53
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
 
Old 08-29-2009, 05:49 AM   #3
Zangai
LQ Newbie
 
Registered: Dec 2007
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by okcomputer44 View Post
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
 
  


Reply



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
[SOLVED] Sendmail - Accept mails to unknown users and route specific user kingkashif Linux - Server 2 07-31-2009 05:23 PM
Can't receive mails from localhost using MozillaMail tooparam Linux - Newbie 1 02-08-2006 12:41 PM
yahoo wont accept my email? stitchman Slackware 1 12-15-2005 10:34 AM
How do I config Sendmail to accept connects /only/ from localhost marvin Linux - Security 4 05-09-2001 07:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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