Package: postfix Version: 2.11.3-1 Severity: normal If I understand correctly, setting smtp_host_lookup dns,native
should allow postfix to resolve hostnames from /etc/hosts if they are not resolvable via DNS. However, this does not seem to work in practice: [0] root@thinkpad:/etc/postfix# grep lookup main.cf smtp_host_lookup = dns,native [0] root@thinkpad:/etc/postfix# /usr/sbin/postfix reload postfix/postfix-script: refreshing the Postfix mail system [0] root@thinkpad:/etc/postfix# echo test | mailx nikol...@rath.org [0] root@thinkpad:/etc/postfix# mailq -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient------- D617DC0AE3 266 Sat Jan 31 00:07:23 r...@thinkpad.rath.org (Host or domain name not found. Name service error for name=ebox type=A: Host not found, try again) nikol...@rath.org -- 0 Kbytes in 1 Request. [0] root@thinkpad:/etc/postfix# ping ebox PING ebox (192.168.12.1) 56(84) bytes of data. 64 bytes from ebox (192.168.12.1): icmp_seq=1 ttl=64 time=15.7 ms -- System Information: Debian Release: 8.0 APT prefers testing-updates APT policy: (500, 'testing-updates'), (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages postfix depends on: ii adduser 3.113+nmu3 ii cpio 2.11+dfsg-4 ii debconf [debconf-2.0] 1.5.55 ii dpkg 1.17.23 ii libc6 2.19-13 ii libdb5.3 5.3.28-7~deb8u1 ii libsasl2-2 2.1.26.dfsg1-12 ii libsqlite3-0 3.8.7.1-1 ii libssl1.0.0 1.0.1k-1 ii lsb-base 4.1+Debian13+nmu1 ii netbase 5.3 ii ssl-cert 1.0.35 Versions of packages postfix recommends: ii python 2.7.8-2 Versions of packages postfix suggests: ii bsd-mailx [mail-reader] 8.1.2-0.20141216cvs-1 pn dovecot-common <none> ii emacs24 [mail-reader] 24.4+1-4.1 ii icedove [mail-reader] 31.3.0-1 ii libsasl2-modules 2.1.26.dfsg1-12 ii mutt [mail-reader] 1.5.23-3 pn postfix-cdb <none> pn postfix-doc <none> pn postfix-ldap <none> pn postfix-mysql <none> pn postfix-pcre <none> pn postfix-pgsql <none> pn procmail <none> pn resolvconf <none> pn sasl2-bin <none> pn ufw <none> -- debconf information: postfix/sqlite_warning: postfix/mailbox_limit: 0 postfix/relayhost: postfix/mailname: /etc/mailname postfix/relay_restrictions_warning: postfix/procmail: postfix/bad_recipient_delimiter: postfix/chattr: false postfix/destinations: postfix/tlsmgr_upgrade_warning: * postfix/main_mailer_type: No configuration postfix/kernel_version_warning: postfix/not_configured: postfix/recipient_delim: + postfix/mydomain_warning: postfix/mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 postfix/protocols: postfix/rfc1035_violation: false postfix/root_address: postfix/retry_upgrade_warning:
# Basic config myhostname=thinkpad mydomain=rath.org append_dot_mydomain = yes # Local delivery for: mydestination = $myhostname $myhostname.$mydomain localhost # Only relay from local mynetworks_style = host allow_percent_hack = no backwards_bounce_logfile_compatibility = no default_process_limit = 3 delay_warning_time = 24h mailbox_size_limit = 512000000 message_size_limit = 64000000 parent_domain_matches_subdomains = no inet_protocols = ipv4 # Smarthost smtp_use_tls = yes # Brackets: Don't use MX entry relayhost = [ebox]:587 #relayhost = 192.168.12.1:587 smtp_host_lookup = dns,native smtp_tls_cert_file = /etc/postfix/client.crt smtp_tls_key_file = /etc/postfix/client.key smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt smtp_tls_loglevel = 0 # Allow plain login smtp_sasl_security_options = # No NIS alias_maps = hash:/etc/aliases readme_directory = /usr/share/doc/postfix html_directory = /usr/share/doc/postfix/html