Public bug reported: This is with Postfix 2.9.1-5 on Ubuntu 12.04 LTS
--- Setup to reproduce - Configure postfix to use mysql for virtual alias maps - Specify a DNS hostname instead of an IP address or localhost for "hosts:" --- Symptoms: All postfix mail routing actions fail. The log contains: postfix/trivial-rewrite[20176]: warning: connect to mysql server my.example.com: Unknown MySQL server host 'my.example.com' (2) warning: mysql:/etc/postfix/mysql-virtual_aliases.cf: table lookup problem warning: virtual_alias_domains lookup failure The same configuration works fine if you specify an IP address instead of a DNS hostname. --- Cause: libresolv is missing from the postfix chroot jail. That causes the mysql client library used by postfix to not be able to resolve any DNS names. --- Workaround: sudo cp -p /lib/x86_64-linux-gnu/libresolv* /var/spool/postfix/lib/x86_64-linux-gnu/ sudo postfix restart --- Expected fix: Fix the postfix installation routines to include libresolv in the chroot jail. I do not know enough about this to provide a ready-made patch, unfortunately. ** Affects: postfix (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1023550 Title: Postfix missing libresolv in chroot jail To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/1023550/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs