I followed these instructions in order to send mail and here's the Postfix log:
Sep 26 00:46:24 tshepang postfix/smtpd[5728]: 8EE2464931: client=localhost[127.0.0.1]
Sep 26 00:47:44 tshepang postfix/cleanup[5810]: 8EE2464931: message-id=<20110925224624.8EE2464931@tshepang>
Sep 26 00:47:44 tshepang postfix/qmgr[5772]: 8EE2464931: from=<tshepang@gmail.com>, size=350, nrcpt=1 (queue active)
Sep 26 00:48:04 tshepang postfix/smtp[5859]: 8EE2464931: to=<tshepang.test@gmail.com>, relay=none, delay=127, delays=107/0.01/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=gmail.com type=MX: Host not found, try again)
Sep 26 00:48:39 tshepang postfix/smtpd[5728]: disconnect from localhost[127.0.0.1]
Also, this may be relevant (from "/etc/postfix/main.cf"):
myhostname = tshepang
mydestination = tshepang, localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
inet_interfaces = all
inet_protocols = all
I am running this on Debian 6.
/etc/resolv.conf
for invalid/non-responding resolvers. Try to do ahost gmail.com
; see if you get results. – laebshade Sep 25 '11 at 23:46host gmail.com
givesgmail.com has address 74.125.233.24
on the line, and then;; connection timed out; no servers could be reached
on the second. But it's strange because I can ping it. – tshepang Sep 26 '11 at 00:23host -t mx gmail.com
? You're right, though, this is somewhat odd. – Shadur-don't-feed-the-AI Oct 20 '11 at 13:15relay=none
" -- postfix already recognizes there's no relay specified so it tries to send to the primary MX – Shadur-don't-feed-the-AI Oct 21 '11 at 13:52resolv.conf
, possibly due tonetwork-manager
orresolvconf
not quite playing ball. – Shadur-don't-feed-the-AI Oct 22 '11 at 07:32/etc/resolv.conf
to the question? The output you describe fromhost gmail.com
is a bit suspicious and could indicate an issue with your nameserver. - What, if any, response do you get from the commandhost -t mx gmail.com
? - Have you successfully sent mail to other systems from this computer? - Does your ISP have some kind of explicit policy that requires you to use their server as mail relay? If they do, a firewall blocking MX lookup requests might explain the weird behavior – Shadur-don't-feed-the-AI Oct 25 '11 at 07:06no servers could be reached
error fromhost
). – bahamat Jun 21 '12 at 18:48