Problems when trying to use gmail for mail forwarding
October 2, 2011 at 8:42 pm Leave a comment
You can set up postfix to forward mail via gmail (http://www.amirwatad.com/blog/archives/2009/03/21/send-email-from-the-command-line-using-gmail-account/http://www.amirwatad.com/blog/archives/2009/03/21/send-email-from-the-command-line-using-gmail-account/). This is nice because it lets you use command line tools to send mail without you have to go the whole hog and implement a mail server.
When I tried to do this I got the following error, despite my dns plainly failing
Oct 2 21:03:20 moment postfix/smtp[14469]: 431DAE045C: to=, relay=none, delay=984, delays=984/0.04/0/0, dsn=4.4.3, status=deferred (
Host or domain name not found. Name service error for name=smtp.gmail.com type=A
: Host not found, try again)
This mail explained what was going on (http://www.sslug.dk/~chlor/postfix/http://www.sslug.dk/~chlor/postfix/). Apparently postfix does its own dns – which is a little crazy, and my resolv.conf file was missing. I think this is ever so slightly broken….
P.S Gmail will mangle your from address but it’s okay for small personal tools.
Entry filed under: Uncategorized. Tags: .
Trackback this post | Subscribe to the comments via RSS Feed