As I have trouble with sending emails to Gmail (I wrote about it in a different thread), I try to configure Postfix to send mail to Gmail via a different mail server as a relay. However, for reasons too long to explain here, I would like Postfix to refer to that server via hostname that I defined in /etc/hosts file and not via actual DNS hostname.
My first attempt, with using the following line in the transport map: gmail.com smtp:[aws] where "aws" is the host name defined in /etc/hosts, resulted in failure to send email, with the following error message from Postfix: <......@gmail.com>: Host or domain name not found. Name service error for name=aws type=AAAA: Host found but no data record of requested type I found in the documentation that I have to add the parameter "smtp_host_lookup=native" to main.cf to make Postfix use system configured name resolution instead of trying to resolve names by itself. So I did it, reloaded Postfix and got the following error: <......@gmail.com>: unable to look up host aws: No address associated with hostname So I tried to change the name both in the transport map and in /etc/hosts file from "aws" to "aws.local" to make it look more like a domain name :). This time I got the following: <......@gmail.com>: unable to look up host aws.local: Name or service not known What am I doing wrong? -- Regards, Jaroslaw Rafa r...@rafa.eu.org -- "In a million years, when kids go to school, they're gonna know: once there was a Hushpuppy, and she lived with her daddy in the Bathtub."