Paul R. Ganci: > On 06/14/2016 04:28 AM, Wietse Venema wrote: > > Paul R. Ganci: > >> anyone know what I am missing in that it seems postfix did resolve the > >> IP address when communicating with the mysql database? > > The host lookup is done by the MSQL library. > That doesn't seem correct to me because with hosts = > server-1.example.comin/etc/postfix/local_recipient_map.cf > > postmap -q sally@example.commysql:/etc/postfix/local_recipient_map.cf > > works correctly > > but the postfix daemon query fails (both requests work with an IP > address). If the MYSQL library was handling the host name resolution > then why does the postmap -q query succeed? Shouldn't both queries fail?
Perhaps you are running postmap as ROOT; Postfix runs as on-root. Perhaps you have chroot enabled in master.cf. This is the default on debian/ubuntu. See http://www.postfix.org/DEBUG_README.html#no_chroot Change the master.cf entry should to this: smtp inet n - n - - smtpd -----------------------------------^^^ Using chroot requires additional setup. Wietse