• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 771
  • Last Modified:

Can't Get External Mail

I can send email via Webmin > Sendmail, and get it via MS Outlook and POP3, but I can't get any mail from external sources. I suspect it's the sendmail.cf file.

Following the docs, I commented out the line "DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')" in sendmail.mc, and then compiled the .mc file as follows:

m4 /etc/mail/sendmail.mc > /etc/sendmail.cf

However, it seems to me that sendmail.cf should actually reside in /etc/mail/ rather than directly under /etc/.

Is this correct? I'm having an awful time trying to get Sendmail to accept mail from anywhere other than locally!

MTIA, Max Hugen
0
maxhugen
Asked:
maxhugen
  • 27
  • 13
1 Solution
 
chicagoanCommented:
Are you starting sendmail as a daemon? "sendmail -db".
Check ps -x and telnet to port 25 to verify it's running.
Is this mail for local users or are your trying to relay (which is turned OFF by default) What do your log entries say if you send mail to postmaster@your.domain?

sendmail.cf should be in /etc
0
 
maxhugenAuthor Commented:
Hi there

Thanks for your help.

I think it is being correctly started as a daemon. From ps -x:

    14817 ?        S      0:00 sendmail

In /etc/rc.d/init.d/sendmail, sendmail is started by the lines:

    if [ -f /etc/sysconfig/sendmail ] ; then
        . /etc/sysconfig/sendmail
    else
        DAEMON=no
        QUEUE=1h
    fi
    daemon /usr/sbin/sendmail $([ "$DAEMON" = yes ] && echo -bd) \
                              $([ -n "$QUEUE" ] && echo -q$QUEUE)

The file /etc/sysconfig/sendmail has the lines:
    DAEMON=yes
    QUEUE=1h

Port 25 seems to be open, I tried telnet www.mydomain.com 25 and got the response "Recipient names must be specified".

This Linux 7.2 box is an internet server running Apache etc. It is also our POP3 mail server; I use an ISP's SMTP server as I'm on cable, so normally I would have outbound relaying denied.

If I send an email directly from Sendmail (using Webmin), I get the email in MS Outlook using our POP3 mail server. But if I send an email to myself from Outlook, I don't receive it.

Any suggestions would be really welcome; I'm very confused!

Many thanks, Max Hugen
0
 
maxhugenAuthor Commented:
Oh, forgot to mention, I don't know where sendmail's logs are either!
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
chicagoanCommented:
The logs should be in /var/log.
Set your outlook to use it as a relay, send mail to root@<your linux box> and post the relevant log entries.
0
 
maxhugenAuthor Commented:
Thank you, I found the logs: maillog, maillog.1 ... maillog.3

Renamed (mv) maillog to maillog.4

Sent - from Outlook - an email to root@mydomain.com. No maillog file was created.

Can't find any info about Outlook about relaying. I tried sending an email from our Sendmail program via mail.mydomain.com, instead of to my ISP's SMTP server.

Outlook was unable to send it.

:(



0
 
chicagoanCommented:
set your outging mail server to the box you're trying to troubleshoot (use outlook express if you don;t want to jazz with your outlook settings)
0
 
maxhugenAuthor Commented:
That's basically what i did... I created a new mail account, set the smtp server to my box, and then selected this account to send a test email.

I have the Linux firewall temporarily set to ACCEPT ALL, so I don't think the port is being blocked in any manner, but I still am not 100% sure that I have Sendmail's config files correctly set...

Thanks for your patience!
0
 
chicagoanCommented:
if you can telnet to the box @ port 25, the firewall's not blocking. did you use the IP address in outlook when you set the mail relay? is this the same machine you can telnet from?
0
 
maxhugenAuthor Commented:
Yes, it's the same workstation.

In Outlook, I set the smtp server to mail.mydomain.com.

Ive just telnetted to this address, again I get a response.
0
 
chicagoanCommented:
Set your SMTP server to be the linux machine's IP address  and send a message to root@that.domain

0
 
maxhugenAuthor Commented:
Yes, it's the same workstation.

In Outlook, I set the smtp server to mail.mydomain.com.

Ive just telnetted to this address, again I get a response.
0
 
maxhugenAuthor Commented:
Here's some output from the log, you can see where I sent email directly from Sendmail (not Outlook), and then the POP3 requests:

Feb 23 14:20:21 www ipop3d[15735]: pop3 service init from 144.132.241.231
Feb 23 14:21:34 www sendmail[15753]: h1N3LW315753: from=maxhugen@hugen.com.au, size=295, class=0, nrcpts=1, msgid=<200302230321.h1N3LW315753@www.hugen.com.au>, relay=root@localhost
Feb 23 14:21:34 www sendmail[15756]: h1N3LW315753: to=maxhugen@hugen.com.au, ctladdr=maxhugen@hugen.com.au (501/12), delay=00:00:02, xdelay=00:00:00, mailer=local, pri=30295, dsn=2.0.0, stat=Sent
Feb 23 14:21:40 www ipop3d[15760]: pop3 service init from 144.132.241.231
Feb 23 14:21:40 www ipop3d[15760]: Login user=admin host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=0/0
Feb 23 14:21:40 www ipop3d[15760]: Logout user=admin host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=0 ndele=0
Feb 23 14:21:41 www ipop3d[15761]: pop3 service init from 144.132.241.231
Feb 23 14:21:41 www ipop3d[15761]: Login user=maxhugen host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=2/2
Feb 23 14:21:41 www ipop3d[15761]: Logout user=maxhugen host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=2 ndele=0
Feb 23 14:22:11 www ipop3d[15762]: pop3 service init from 144.132.241.231
Feb 23 14:22:11 www ipop3d[15762]: Login user=admin host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=0/0
Feb 23 14:22:11 www ipop3d[15762]: Logout user=admin host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=0 ndele=0
Feb 23 14:22:11 www ipop3d[15763]: pop3 service init from 144.132.241.231
Feb 23 14:22:11 www ipop3d[15763]: Login user=maxhugen host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=2/2
Feb 23 14:22:11 www ipop3d[15763]: Logout user=maxhugen host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=2 ndele=0
Feb 23 14:22:24 www ipop3d[15764]: pop3 service init from 144.132.241.231

Cheers, Max
0
 
maxhugenAuthor Commented:
Here's some output from the log, you can see where I sent email directly from Sendmail (not Outlook), and then the POP3 requests:

Feb 23 14:20:21 www ipop3d[15735]: pop3 service init from 144.132.241.231
Feb 23 14:21:34 www sendmail[15753]: h1N3LW315753: from=maxhugen@hugen.com.au, size=295, class=0, nrcpts=1, msgid=<200302230321.h1N3LW315753@www.hugen.com.au>, relay=root@localhost
Feb 23 14:21:34 www sendmail[15756]: h1N3LW315753: to=maxhugen@hugen.com.au, ctladdr=maxhugen@hugen.com.au (501/12), delay=00:00:02, xdelay=00:00:00, mailer=local, pri=30295, dsn=2.0.0, stat=Sent
Feb 23 14:21:40 www ipop3d[15760]: pop3 service init from 144.132.241.231
Feb 23 14:21:40 www ipop3d[15760]: Login user=admin host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=0/0
Feb 23 14:21:40 www ipop3d[15760]: Logout user=admin host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=0 ndele=0
Feb 23 14:21:41 www ipop3d[15761]: pop3 service init from 144.132.241.231
Feb 23 14:21:41 www ipop3d[15761]: Login user=maxhugen host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=2/2
Feb 23 14:21:41 www ipop3d[15761]: Logout user=maxhugen host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=2 ndele=0
Feb 23 14:22:11 www ipop3d[15762]: pop3 service init from 144.132.241.231
Feb 23 14:22:11 www ipop3d[15762]: Login user=admin host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=0/0
Feb 23 14:22:11 www ipop3d[15762]: Logout user=admin host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=0 ndele=0
Feb 23 14:22:11 www ipop3d[15763]: pop3 service init from 144.132.241.231
Feb 23 14:22:11 www ipop3d[15763]: Login user=maxhugen host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=2/2
Feb 23 14:22:11 www ipop3d[15763]: Logout user=maxhugen host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=2 ndele=0
Feb 23 14:22:24 www ipop3d[15764]: pop3 service init from 144.132.241.231

Cheers, Max
0
 
maxhugenAuthor Commented:
Here's some output from the log, you can see where I sent email directly from Sendmail (not Outlook), and then the POP3 requests:

Feb 23 14:20:21 www ipop3d[15735]: pop3 service init from 144.132.241.231
Feb 23 14:21:34 www sendmail[15753]: h1N3LW315753: from=maxhugen@hugen.com.au, size=295, class=0, nrcpts=1, msgid=<200302230321.h1N3LW315753@www.hugen.com.au>, relay=root@localhost
Feb 23 14:21:34 www sendmail[15756]: h1N3LW315753: to=maxhugen@hugen.com.au, ctladdr=maxhugen@hugen.com.au (501/12), delay=00:00:02, xdelay=00:00:00, mailer=local, pri=30295, dsn=2.0.0, stat=Sent
Feb 23 14:21:40 www ipop3d[15760]: pop3 service init from 144.132.241.231
Feb 23 14:21:40 www ipop3d[15760]: Login user=admin host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=0/0
Feb 23 14:21:40 www ipop3d[15760]: Logout user=admin host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=0 ndele=0
Feb 23 14:21:41 www ipop3d[15761]: pop3 service init from 144.132.241.231
Feb 23 14:21:41 www ipop3d[15761]: Login user=maxhugen host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=2/2
Feb 23 14:21:41 www ipop3d[15761]: Logout user=maxhugen host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=2 ndele=0
Feb 23 14:22:11 www ipop3d[15762]: pop3 service init from 144.132.241.231
Feb 23 14:22:11 www ipop3d[15762]: Login user=admin host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=0/0
Feb 23 14:22:11 www ipop3d[15762]: Logout user=admin host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=0 ndele=0
Feb 23 14:22:11 www ipop3d[15763]: pop3 service init from 144.132.241.231
Feb 23 14:22:11 www ipop3d[15763]: Login user=maxhugen host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=2/2
Feb 23 14:22:11 www ipop3d[15763]: Logout user=maxhugen host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=2 ndele=0
Feb 23 14:22:24 www ipop3d[15764]: pop3 service init from 144.132.241.231

Cheers, Max
0
 
maxhugenAuthor Commented:
Here's some output from the log, you can see where I sent email directly from Sendmail (not Outlook), and then the POP3 requests:

Feb 23 14:20:21 www ipop3d[15735]: pop3 service init from 144.132.241.231
Feb 23 14:21:34 www sendmail[15753]: h1N3LW315753: from=maxhugen@hugen.com.au, size=295, class=0, nrcpts=1, msgid=<200302230321.h1N3LW315753@www.hugen.com.au>, relay=root@localhost
Feb 23 14:21:34 www sendmail[15756]: h1N3LW315753: to=maxhugen@hugen.com.au, ctladdr=maxhugen@hugen.com.au (501/12), delay=00:00:02, xdelay=00:00:00, mailer=local, pri=30295, dsn=2.0.0, stat=Sent
Feb 23 14:21:40 www ipop3d[15760]: pop3 service init from 144.132.241.231
Feb 23 14:21:40 www ipop3d[15760]: Login user=admin host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=0/0
Feb 23 14:21:40 www ipop3d[15760]: Logout user=admin host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=0 ndele=0
Feb 23 14:21:41 www ipop3d[15761]: pop3 service init from 144.132.241.231
Feb 23 14:21:41 www ipop3d[15761]: Login user=maxhugen host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=2/2
Feb 23 14:21:41 www ipop3d[15761]: Logout user=maxhugen host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=2 ndele=0
Feb 23 14:22:11 www ipop3d[15762]: pop3 service init from 144.132.241.231
Feb 23 14:22:11 www ipop3d[15762]: Login user=admin host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=0/0
Feb 23 14:22:11 www ipop3d[15762]: Logout user=admin host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=0 ndele=0
Feb 23 14:22:11 www ipop3d[15763]: pop3 service init from 144.132.241.231
Feb 23 14:22:11 www ipop3d[15763]: Login user=maxhugen host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=2/2
Feb 23 14:22:11 www ipop3d[15763]: Logout user=maxhugen host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=2 ndele=0
Feb 23 14:22:24 www ipop3d[15764]: pop3 service init from 144.132.241.231

Cheers, Max
0
 
chicagoanCommented:
That's great... but... if you want to get mail to this usrs on this box you need:
A: Sendmail (or some MTA) to be running, accepting connections, and delivering mail to the local users.
B: MX records in NDS (and a routable address)
By setting the IP address of box to be your mail relay in Outlook you can check the 1st requirement and move on to the 2nd.
0
 
maxhugenAuthor Commented:
Here's some output from the log, you can see where I sent email directly from Sendmail (not Outlook), and then the POP3 requests:

Feb 23 14:20:21 www ipop3d[15735]: pop3 service init from 144.132.241.231
Feb 23 14:21:34 www sendmail[15753]: h1N3LW315753: from=maxhugen@hugen.com.au, size=295, class=0, nrcpts=1, msgid=<200302230321.h1N3LW315753@www.hugen.com.au>, relay=root@localhost
Feb 23 14:21:34 www sendmail[15756]: h1N3LW315753: to=maxhugen@hugen.com.au, ctladdr=maxhugen@hugen.com.au (501/12), delay=00:00:02, xdelay=00:00:00, mailer=local, pri=30295, dsn=2.0.0, stat=Sent
Feb 23 14:21:40 www ipop3d[15760]: pop3 service init from 144.132.241.231
Feb 23 14:21:40 www ipop3d[15760]: Login user=admin host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=0/0
Feb 23 14:21:40 www ipop3d[15760]: Logout user=admin host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=0 ndele=0
Feb 23 14:21:41 www ipop3d[15761]: pop3 service init from 144.132.241.231
Feb 23 14:21:41 www ipop3d[15761]: Login user=maxhugen host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=2/2
Feb 23 14:21:41 www ipop3d[15761]: Logout user=maxhugen host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=2 ndele=0
Feb 23 14:22:11 www ipop3d[15762]: pop3 service init from 144.132.241.231
Feb 23 14:22:11 www ipop3d[15762]: Login user=admin host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=0/0
Feb 23 14:22:11 www ipop3d[15762]: Logout user=admin host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=0 ndele=0
Feb 23 14:22:11 www ipop3d[15763]: pop3 service init from 144.132.241.231
Feb 23 14:22:11 www ipop3d[15763]: Login user=maxhugen host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=2/2
Feb 23 14:22:11 www ipop3d[15763]: Logout user=maxhugen host=CPE-144-132-241-231.nsw.bigpond.net.au [144.132.241.231] nmsgs=2 ndele=0
Feb 23 14:22:24 www ipop3d[15764]: pop3 service init from 144.132.241.231

Cheers, Max
0
 
maxhugenAuthor Commented:
Sorry, don't know why my last post repeated so many times.

Re (B), we have an MX record... this Linux box is a replacement for another machine on which the HDD crashed, and Sendmail had been working there for years.

Re (A), I just don't know... I've just seen some hiccups when starting/stopping the service, too. Here's the output from the console:

[root@www log]# /etc/rc.d/init.d/sendmail stop
Shutting down sendmail:                                    [FAILED]

[root@www log]# /etc/rc.d/init.d/sendmail start
Starting sendmail:                                         [  OK  ]

[root@www log]# /etc/rc.d/init.d/sendmail stop
Shutting down sendmail: /etc/rc.d/init.d/sendmail: kill: (16234) - No such pid
/etc/rc.d/init.d/sendmail: kill: (16231) - No such pid
                                                           [  OK  ]
[root@www log]# /etc/rc.d/init.d/sendmail start
Starting sendmail:                                         [  OK  ]

[root@www log]# /etc/rc.d/init.d/sendmail stop
Shutting down sendmail: /etc/rc.d/init.d/sendmail: kill: (16295) - No such pid
/etc/rc.d/init.d/sendmail: kill: (16294) - No such pid
                                                           [  OK  ]
[root@www log]# /etc/rc.d/init.d/sendmail stop
Shutting down sendmail:                                    [  OK  ]

[root@www log]# /etc/rc.d/init.d/sendmail start
Starting sendmail:                                         [  OK  ]

[root@www log]# /etc/rc.d/init.d/sendmail stop
Shutting down sendmail: /etc/rc.d/init.d/sendmail: kill: (16395) - No such pid
/etc/rc.d/init.d/sendmail: kill: (16394) - No such pid
                                                           [  OK  ]
[root@www log]# /etc/rc.d/init.d/sendmail stop
Shutting down sendmail:                                    [FAILED]

[root@www log]# /etc/rc.d/init.d/sendmail stop
Shutting down sendmail:                                    [  OK  ]

[root@www log]# /etc/rc.d/init.d/sendmail start
Starting sendmail:                                         [  OK  ]

There seem to be some issues with shutting down Sendmail correctly at times, but I've no idea why!

Have you any suggestions please?

Thanks, Max
0
 
maxhugenAuthor Commented:
Sorry, don't know why my last post repeated so many times.

Re (B), we have an MX record... this Linux box is a replacement for another machine on which the HDD crashed, and Sendmail had been working there for years.

Re (A), I just don't know... I've just seen some hiccups when starting/stopping the service, too. Here's the output from the console:

[root@www log]# /etc/rc.d/init.d/sendmail stop
Shutting down sendmail:                                    [FAILED]

[root@www log]# /etc/rc.d/init.d/sendmail start
Starting sendmail:                                         [  OK  ]

[root@www log]# /etc/rc.d/init.d/sendmail stop
Shutting down sendmail: /etc/rc.d/init.d/sendmail: kill: (16234) - No such pid
/etc/rc.d/init.d/sendmail: kill: (16231) - No such pid
                                                           [  OK  ]
[root@www log]# /etc/rc.d/init.d/sendmail start
Starting sendmail:                                         [  OK  ]

[root@www log]# /etc/rc.d/init.d/sendmail stop
Shutting down sendmail: /etc/rc.d/init.d/sendmail: kill: (16295) - No such pid
/etc/rc.d/init.d/sendmail: kill: (16294) - No such pid
                                                           [  OK  ]
[root@www log]# /etc/rc.d/init.d/sendmail stop
Shutting down sendmail:                                    [  OK  ]

[root@www log]# /etc/rc.d/init.d/sendmail start
Starting sendmail:                                         [  OK  ]

[root@www log]# /etc/rc.d/init.d/sendmail stop
Shutting down sendmail: /etc/rc.d/init.d/sendmail: kill: (16395) - No such pid
/etc/rc.d/init.d/sendmail: kill: (16394) - No such pid
                                                           [  OK  ]
[root@www log]# /etc/rc.d/init.d/sendmail stop
Shutting down sendmail:                                    [FAILED]

[root@www log]# /etc/rc.d/init.d/sendmail stop
Shutting down sendmail:                                    [  OK  ]

[root@www log]# /etc/rc.d/init.d/sendmail start
Starting sendmail:                                         [  OK  ]

There seem to be some issues with shutting down Sendmail correctly at times, but I've no idea why!

Have you any suggestions please?

Thanks, Max
0
 
maxhugenAuthor Commented:
Have just found that shortly after shutting down Sendmail, it restarts!!!
0
 
chicagoanCommented:
You're opening up a host of other issues. Why not nail down the issue of sendmail accepting mail when it's running and then start looking at your scripts. A standard installation of Redhat works just fine for local users, you ought need to nothing to get started.
0
 
chicagoanCommented:
You're opening up a host of other issues. Why not nail down the issue of sendmail accepting mail when it's running and then start looking at your scripts. A standard installation of Redhat works just fine for local users, you ought need to nothing to get started.
0
 
maxhugenAuthor Commented:
Have just found that shortly after shutting down Sendmail, it restarts!!!
0
 
maxhugenAuthor Commented:
I did a relatively standard install of Redhat 7.2, and yes, Sendmail works just fine for local users.

But something is certainly amiss here; I cannot get mail from external sources, and now I find that Sendmail is somehow mystreriously restarting on it's own???

I just haven't any idea of where to go next; I wandering around in circles.

0
 
chicagoanCommented:
It starts a copy for every message in the queue when running as a daemon. When you say you can't get mail from external sources you have to determine if the mail is getting to the box (DNS, routing etc.) and if the box is accepting it. Please set your mail client to use the box as it's outgoing mail relay and send an email to root.
0
 
maxhugenAuthor Commented:
I did a relatively standard install of Redhat 7.2, and yes, Sendmail works just fine for local users.

But something is certainly amiss here; I cannot get mail from external sources, and now I find that Sendmail is somehow mystreriously restarting on it's own???

I just haven't any idea of where to go next; I wandering around in circles.

0
 
maxhugenAuthor Commented:
I've just read one of the messages in /var/spool/mqueue, its an error msg:

V4
T1045802455
K1045973521
N9
P840363
I3/3/32313
Mreply: read error from mail.domain.com.
Fwb
$_root@localhost
Sroot
Aroot@www.hugen.com.au
RPFD:mis@domain.com
H?P?Return-Path: <g>
H??Received: (from root@localhost)
     by www.hugen.com.au (8.11.6/8.11.6) id h1L4etI05056;
     Fri, 21 Feb 2003 15:40:55 +1100
H?D?Date: Fri, 21 Feb 2003 15:40:55 +1100
H?F?From: root <root>
H?x?Full-Name: root
H?M?Message-Id: <200302210440.h1L4etI05056@www.hugen.com.au>
H??To: mis@domain.com
H??Subject: ALERT news/nntp: news (Fri Feb 21 15:40:55)
H??X-Mailer: /usr/lib/mon/alert.d/mail.alert
.


A couple of the lines look to me like I've got a misconfiguration somewhere:

Mreply: read error from mail.domain.com.
    (this shouldn't be mail.domain.com?????)
Aroot@www.hugen.com.au
    (this shouldn't have the 'www' in it????)


What do you think?

Thanks, Max
0
 
maxhugenAuthor Commented:
I've just read one of the messages in /var/spool/mqueue, its an error msg:

V4
T1045802455
K1045973521
N9
P840363
I3/3/32313
Mreply: read error from mail.domain.com.
Fwb
$_root@localhost
Sroot
Aroot@www.hugen.com.au
RPFD:mis@domain.com
H?P?Return-Path: <g>
H??Received: (from root@localhost)
     by www.hugen.com.au (8.11.6/8.11.6) id h1L4etI05056;
     Fri, 21 Feb 2003 15:40:55 +1100
H?D?Date: Fri, 21 Feb 2003 15:40:55 +1100
H?F?From: root <root>
H?x?Full-Name: root
H?M?Message-Id: <200302210440.h1L4etI05056@www.hugen.com.au>
H??To: mis@domain.com
H??Subject: ALERT news/nntp: news (Fri Feb 21 15:40:55)
H??X-Mailer: /usr/lib/mon/alert.d/mail.alert
.


A couple of the lines look to me like I've got a misconfiguration somewhere:

Mreply: read error from mail.domain.com.
    (this shouldn't be mail.domain.com?????)
Aroot@www.hugen.com.au
    (this shouldn't have the 'www' in it????)


What do you think?

Thanks, Max
0
 
maxhugenAuthor Commented:
I've just read one of the messages in /var/spool/mqueue, its an error msg:

V4
T1045802455
K1045973521
N9
P840363
I3/3/32313
Mreply: read error from mail.domain.com.
Fwb
$_root@localhost
Sroot
Aroot@www.hugen.com.au
RPFD:mis@domain.com
H?P?Return-Path: <g>
H??Received: (from root@localhost)
     by www.hugen.com.au (8.11.6/8.11.6) id h1L4etI05056;
     Fri, 21 Feb 2003 15:40:55 +1100
H?D?Date: Fri, 21 Feb 2003 15:40:55 +1100
H?F?From: root <root>
H?x?Full-Name: root
H?M?Message-Id: <200302210440.h1L4etI05056@www.hugen.com.au>
H??To: mis@domain.com
H??Subject: ALERT news/nntp: news (Fri Feb 21 15:40:55)
H??X-Mailer: /usr/lib/mon/alert.d/mail.alert
.


A couple of the lines look to me like I've got a misconfiguration somewhere:

Mreply: read error from mail.domain.com.
    (this shouldn't be mail.domain.com?????)
Aroot@www.hugen.com.au
    (this shouldn't have the 'www' in it????)


What do you think?

Thanks, Max
0
 
chicagoanCommented:
looks like you have news (nntp) running there along with alert... mail.domain.com's in your sendmail.cf, change it to yourhost.domain.com but that doesn't affect functionality, it's cosmetic here. Looks like alert is trying to send mail to non-exsitent user and can't return the mail to itself. (run mailq to see the queued up mail) you have to configure alert (or kill it)
0
 
maxhugenAuthor Commented:
I've just read one of the messages in /var/spool/mqueue, its an error msg:

V4
T1045802455
K1045973521
N9
P840363
I3/3/32313
Mreply: read error from mail.domain.com.
Fwb
$_root@localhost
Sroot
Aroot@www.hugen.com.au
RPFD:mis@domain.com
H?P?Return-Path: <g>
H??Received: (from root@localhost)
     by www.hugen.com.au (8.11.6/8.11.6) id h1L4etI05056;
     Fri, 21 Feb 2003 15:40:55 +1100
H?D?Date: Fri, 21 Feb 2003 15:40:55 +1100
H?F?From: root <root>
H?x?Full-Name: root
H?M?Message-Id: <200302210440.h1L4etI05056@www.hugen.com.au>
H??To: mis@domain.com
H??Subject: ALERT news/nntp: news (Fri Feb 21 15:40:55)
H??X-Mailer: /usr/lib/mon/alert.d/mail.alert
.


A couple of the lines look to me like I've got a misconfiguration somewhere:

Mreply: read error from mail.domain.com.
    (this shouldn't be mail.domain.com?????)
Aroot@www.hugen.com.au
    (this shouldn't have the 'www' in it????)


What do you think?

Thanks, Max
0
 
maxhugenAuthor Commented:
Thanks, I just worked out that these messages are being produced by the MON Services Monitoring software. I hadn't finished setting this up, as the Sendmail issue has priority.

Looks like I'll have to go right back to the beginning of the Sendmail install, and check everything again.

Thanks again, Max
0
 
dfpmCommented:
maxhugen...
DAEMON_OPTIONS is important.
If you comment that, you will not be able to listen to any axternal mail.
Instead of commenting, you have to set up it the right way.

Instead of 127.0.0.1, set it to the ip of each of your interfaces.
DAEMON_OPTIONS(`Port=smtp,Addr=192.168.1.1, Name=MTA')DAEMON_OPTIONS(`Port=smtp,Addr=64.25.196.4, Name=MTA')

...or just set it to listen everything
DAEMON_OPTIONS(`Port=smtp,Addr=0.0.0.0, Name=MTA')

Bye
0
 
chicagoanCommented:
commenting out DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA' would do it. His machine was listening on port25, though it had an odd 'recipients must be specified' response instead of the usual sendmail banner... make me think permissions might be hosed?
0
 
maxhugenAuthor Commented:
Hi guys

Thanks for the suggestions.

In my /etc/mail/sendmail.mc I did have the DAEMON_OPTIONS commented out.

I've now tried using the following:
    dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')
    DAEMON_OPTIONS(`Port=smtp,Addr=0.0.0.0, Name=MTA')

I then used m4:
    m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

Pls note that I read at the sendmail.org site that "Beginning with 8.10, sendmail uses /etc/mail/sendmail.cf" (not /etc/sendmail.cf).

However, when I checked the sendmail.cf file, I could not find the DAEMON_OPTIONS setting in it ????

Could I be doing something wrong with the m4 command?

Cheers, Max
0
 
maxhugenAuthor Commented:
I've just noticed that I did not have 'dnl' at end of the DAEMON_OPTIONS line in sendmail.mc, I've now added it and recompiled it with m4.

When I checked sendmail.cf, I found the entry:
    # SMTP daemon options
    O DaemonPortOptions=Port=smtp,Addr=0.0.0.0, Name=MTA
I think this is OK?

Then I checked permissions... everything in /etc/mail has the same permissions and owner, eg:
    -rw-r--r--   1 root  root  46347 Feb 24 08:36 sendmail.cf

However, when I checked the daemon itself, I noticed a strange permission:
    -r-sr-xr-x   1 root  root  451076 Aug 31  2001 /usr/sbin/sendmail
Note the 's' in the permissions? Is that correct? (and what does it mean?)

In any event, I stopped and started sendmail again, using:
    /etc/rc.d/init.d/sendmail stop
    /etc/rc.d/init.d/sendmail start

Still not getting any external email though.

Aaaarrrggh!   :(

Cheers, max
(I feel so stupid!)

0
 
maxhugenAuthor Commented:
Sorry for barrage of emails... but I must get this sorted out!

Just checked with ISP where our servers are co-located, he confirmed that our MX record is OK. He suggested that I try sending an email via our smtp server (ie, sendmail), and that if it doesn't work, it must be the config, as the MX records aren't used for outbound mail.

Well, I tried it again, and Outlook is just hung trying to send the email, still showing "connecting to server...", so I guess it must be the config somewhere.

Cheers, Max
0
 
chicagoanCommented:
"s" is Unix Domain Socket allowing some other program to talk to senmail - usually for control

see http://www.sendmail.net/000705securitygeneral.shtml#02 for checking your permissions

you can set where the .cf file is with the -c options but you want it where the vendor put it originally as there may be other apps looking at it - you're right sendmail.cf and aliases s/b in  /etc/mail as of 8.10
0
 
maxhugenAuthor Commented:
HALLELUJAH !!!!

At last, after another full 8 hour day, I finally found the problem! Can't believe it, I've probably spent 40 hours on this alone.

It turns out that /etc/xinetd.conf was starting sendmail too:
    service smtp
    {
        socket_type = stream
        user = root
        server = /usr/sbin/sendmail
        wait = no
    }

Once I commented this out - it just bloody worked! As I haven't touched this file, I guess it was the original from the RedHat 7.2 setup.

The first clue was when I noticed messages in maillog like:
    Feb 24 13:55:39 www sendmail[5737]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
    Feb 24 13:55:39 www sendmail[5737]: daemon MTA: problem creating SMTP socket

It's strange that these msgs weren't in there before when I checked - and I went back through the log just to be sure. Maybe the msgs weren't thrown until I added the "DAEMON_OPTIONS(`Port=smtp,Addr=0.0.0.0, Name=MTA')" into sendmail.cf?

While searching for this error, the answer finally came from Todd Miller at http://naughty.monkey.org/openbsd/archive/misc/0201/msg00022.html.

Very helpful too, were comments by jlevie on this website, who seems to be quite a cool honcho judging by the frequency of his answers to questions! The post that I found very helpful was at http://www.experts-exchange.com/Operating_Systems/Linux/Q_20404760.html.

But most of all, I'm very grateful to the "chicagoan" who kept helping, and didn't give up on me!

Cheers, Max
0
 
chicagoanCommented:
I think all I did was keep your head in the game. After all, there's nothing time and money can't fix!
0
 
maxhugenAuthor Commented:
Very helpful, kept me going until the answer appeared!
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 27
  • 13
Tackle projects and never again get stuck behind a technical roadblock.
Join Now