Sunday Feb 18, 2007

Linux sendmail not sending mail and no error messages

Can I get a big "Doh!" from the crowd? I'm trying to upgrade my domain server from Fedora Core 4 to Fedora Core 6. I want to isolate what I will need to change to go to Solaris. Everything is kinda going okay, network addresses did not change after a reboot.

But sendmail is queuing my outgoing mail and not logging anything. And it was telling me what was going wrong, but the verbage was just too weird.

Make my changes to sendmail.mc and make:

[root@adept mail]# make
WARNING: 'sendmail.mc' is modified. Please install package sendmail-cf to update your configuration.

This actually means do the following:

[tdh@adept doc]> sudo yum install sendmail-cf

I just couldn't parse it correctly. Here is how I found my "Doh!" moment:

The mail queues have entries: [root@adept mail]# mailq /var/spool/mqueue (4 requests) -----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient----------- l1J0feON002810\* 9 Sun Feb 18 18:41 <root@adept.internal.excfb.com> <tdh@sun.com> ...

Some testing:

[root@adept mail]# sendmail -v loghyr@loghyr.com kdjfjklfs . loghyr@loghyr.com... Connecting to [127.0.0.1] via relay... 220 adept.internal.excfb.com ESMTP Sendmail 8.13.8/8.13.8; Sun, 18 Feb 2007 18:52:31 -0600 >>> EHLO adept.internal.excfb.com 250-adept.internal.excfb.com Hello [127.0.0.1], pleased to meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-8BITMIME 250-SIZE 250-DSN 250-ETRN 250-AUTH DIGEST-MD5 CRAM-MD5 250-DELIVERBY 250 HELP >>> MAIL From:<root@adept.internal.excfb.com> SIZE=10 AUTH=root@adept.internal.excfb.com 250 2.1.0 <root@adept.internal.excfb.com>... Sender ok >>> RCPT To:<loghyr@loghyr.com> >>> DATA 250 2.1.5 <loghyr@loghyr.com>... Recipient ok 354 Enter mail, end with "." on a line by itself >>> . 250 2.0.0 l1J0qV2d002864 Message accepted for delivery loghyr@loghyr.com... Sent (l1J0qV2d002864 Message accepted for delivery) Closing connection to [127.0.0.1] >>> QUIT 221 2.0.0 adept.internal.excfb.com closing connection

Note that it is talking to 127.0.0.1 and that is not right. What does the sendmail config files look like:

[root@adept mail]# ls -la send\*
-rw-r--r--   1 root root 58203 Feb 11 10:58 sendmail.cf
-rw-r--r--   1 root root  7257 Feb 18 17:29 sendmail.mc
-rw-r--r--   1 root root  7209 Feb 18 17:19 sendmail.mc.stock

Okay, that hasn't changed today.

[root@adept mail]# make
WARNING: 'sendmail.mc' is modified. Please install package sendmail-cf to update your configuration.

I then get the "Doh!" and install sendmail-cf as shown above!

[root@adept mail]# make
[root@adept mail]# ls -la send\*
-rw-r--r-- 1 root root 59161 Feb 18 18:54 sendmail.cf
-rw-r--r-- 1 root root 58203 Feb 11 10:58 sendmail.cf.bak
-rw-r--r-- 1 root root  7257 Feb 18 17:29 sendmail.mc
-rw-r--r-- 1 root root  7209 Feb 18 17:19 sendmail.mc.stock
[root@adept mail]# service sendmail restart
Shutting down sm-client:                                   [  OK  ]
Shutting down sendmail:                                    [  OK  ]
Starting sendmail:                                         [  OK  ]
Starting sm-client:                                        [  OK  ]

Still not delivering and I am suspicious of why is it trying to talk to domains directly:

l1J0o9AP002853       33 Sun Feb 18 18:50 <tdh@adept.internal.excfb.com>
                 (Deferred: Connection timed out with www.loghyr.com.)
                                         <loghyr@loghyr.com>

I have to send outgoing mail through cox.net. Look what I have in my sendmail.mc:

[root@adept mail]# grep cox.net sendmail.mc
dnl define(`SMART_HOST', `smtp.central.cox.net')dnl

Bzzt, fix it!

And that flushes a bunch of requests after a make and restart!


Originally posted on Kool Aid Served Daily
Copyright (C) 2007, Kool Aid Served Daily
About

tdh

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today