Index

Subject : LUG: Configuring sendmail to do SMART HOST

From : Austin Page <japage2@ncsu.[redacted]>

Date : Thu, 29 Jan 2009 18:33:35 -0500


Hey Guys,
I was wondering if there were any sendmail experts out there. I am
trying to send mail (mainly logs) to my ncsu email address, from a
fedora 10 box. To do this, i am trying to use the sendmail smart host
feature. However, every time i send a message, it seems to not be able
to connect to the smtp server. I am using the make script in the
/etc/mail folder to m4 hash the config files, and I am restarting
sendmail via the service command in between each make. Here is the
relevant config/log data:

/etc/mail/authinfo:
AuthInfo:smtp.ncsu.edu "U:japage2" "P:123secret" "M:LOGIN PLAIN"

/etc/mail/sendmail.mc:
...
define(`SMART_HOST', `smtp.ncsu.edu')dnl
FEATURE(authinfo)dnl
...

/var/log/maillog after test email...
$>mail -s test japage2@ncsu.[redacted]
...
Jan 29 18:08:25 localhost sendmail[29122]: n0TN8PYU029122: from=root,
size=212, class=0, nrcpts=1,
msgid=<200901292308.n0TN8PYU029122@localhost.[redacted]>,
relay=root@localhost
Jan 29 18:08:25 localhost sendmail[29123]: n0TN8P9M029123:
from=<root@localhost.[redacted]>, size=470, class=0, nrcpts=1,
msgid=<200901292308.n0TN8PYU029122@localhost.[redacted]>, proto=ESMTP,
daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Jan 29 18:08:25 localhost sendmail[29122]: n0TN8PYU029122:
to=japage2@ncsu.[redacted], ctladdr=root (0/0), delay=00:00:00,
xdelay=00:00:00, mailer=relay, pri=30212, relay=[127.0.0.1] [127.0.0.1],
dsn=2.0.0, stat=Sent (n0TN8P9M029123 Message accepted for delivery)
Jan 29 18:16:07 localhost sendmail[29104]: n0TMpQO1028556:
to=<japage2@ncsu.[redacted]>, ctladdr=<root@localhost.[redacted]> (0/0),
delay=00:24:41, xdelay=00:08:00, mailer=relay, pri=210470,
relay=smtp.ncsu.edu. [152.1.1.170], dsn=4.0.0, stat=Deferred: Connection
timed out with smtp.ncsu.edu.
Jan 29 18:16:25 localhost sendmail[29125]: n0TN8P9M029123:
to=<japage2@ncsu.[redacted]>, ctladdr=<root@localhost.[redacted]> (0/0),
delay=00:08:00, xdelay=00:08:00, mailer=relay, pri=120470,
relay=smtp.ncsu.edu. [152.1.224.170], dsn=4.0.0, stat=Deferred:
Connection timed out with smtp.ncsu.edu.

$> sendmail -bv root@localhost
root@localhost... deliverable: mailer local, user root

$>sendmail -bv japage2@ncsu.[redacted]
japage2@ncsu.[redacted]... deliverable: mailer relay, host smtp.ncsu.edu, user
japage2@ncsu.[redacted]

$>ifconfig
eth0 Link encap:Ethernet HWaddr 00:24:8C:03:91:19
inet addr:152.7.26.7 Bcast:152.7.27.255 Mask:255.255.252.0
...

$>ping smtp.ncsu.edu
PING smtp.ncsu.edu (152.1.1.171) 56(84) bytes of data.
64 bytes from uni12mr.unity.ncsu.edu (152.1.1.171): icmp_seq=1 ttl=252
time=0.726 ms

Any help would be infinitely helpful. I have been hitting my head
against this problem for hours now, and I cant seem to make head or tail
of it. Thank you very much in advance.

Austin Page


Replies :