Hi All,
I want to relay email from my home FreeBSD 6.1 box running
sendmail by using gmail as the smarthost. I've been pampered
by Debian's eximconfig for too long and I am lost with my
freebsd.mc.
I've added the following in my freebsd.mc file:
define(`SMART_HOST',`smtp.gmail.com')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5
LOGIN PLAIN')dnl
define(`RELAY_MAILER',`esmtp')dnl
define(`RELAY_MAILER_ARGS', `TPC $h 587')dnl
FEATURE(`authinfo',`hash /etc/mail/auth/client-info')dnl
My /etc/mail/auth/client-info looks like this:
AuthInfo:smtp.gmail.com "U:root" "I:rajasuperman@xxxxxxxxx" "P:<password>"
I rebuilt the sendmail with "make" and "make restart" to
restart sendmail. When I send a test email to
rajasuperman@xxxxxxxxx, the following error appears in
/var/log/maillog and message delivery is deferred.
Sep 7 02:11:47 mithila sendmail[6007]: k86KfkBh006007: from=rsubr,
size=131, class=0, nrcpts=1,
msgid=<200609062041.k86KfkBh006007@xxxxxxxxxxxxxx>,
relay=root@localhost
Sep 7 02:11:48 mithila sm-mta[6010]: k86KflH8006010:
from=<rsubr@xxxxxxxxxxxxxx>, size=458, class=0, nrcpts=1,
msgid=<200609062041.k86KfkBh006007@xxxxxxxxxxxxxx>, proto=ESMTP,
daemon=Daemon0, relay=localhost [127.0.0.1]
Sep 7 02:11:48 mithila sendmail[6007]: k86KfkBh006007:
to=rajasuperman@xxxxxxxxx, ctladdr=rsubr (1001/1001), delay=00:00:02,
xdelay=00:00:01, mailer=relay, pri=30131, relay=[127.0.0.1]
[127.0.0.1], dsn=2.0.0, stat=Sent (k86KflH8006010 Message accepted for
delivery)
Sep 7 02:12:03 mithila sm-mta[6014]: k86KflH8006010:
to=<rajasuperman@xxxxxxxxx>, ctladdr=<rsubr@xxxxxxxxxxxxxx>
(1001/1001), delay=00:00:15, xdelay=00:00:15, mailer=esmtp, pri=30458,
relay=gmail.com., dsn=4.0.0, stat=Deferred: Name server: gmail.com.:
host name lookup failure
Note: I don't have any dns problems on the box, and it
has perfect access to the internet. Interestingly, any
email I send to remote domains through the smarthost always
fails with a host name lookup failure. Local delivery is
fine.
Can someone please hit me with a clue stick? Thanks in
advance for any help or suggestions.
- Raja