1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-11-26 02:57:04 +00:00

set the postfix helo string to the machine's hostname, overriding the Debian default 'localhost', since some MTAs require a hostname there

This commit is contained in:
Joshua Tauberer 2014-01-27 15:43:03 +00:00
parent 08e7c315c9
commit 5b4af391d5

View File

@ -61,11 +61,12 @@ tools/editconf.py /etc/postfix/main.cf \
tools/editconf.py /etc/postfix/main.cf \ tools/editconf.py /etc/postfix/main.cf \
smtpd_recipient_restrictions=permit_sasl_authenticated,permit_mynetworks,"reject_rbl_client zen.spamhaus.org","check_policy_service inet:127.0.0.1:10023" smtpd_recipient_restrictions=permit_sasl_authenticated,permit_mynetworks,"reject_rbl_client zen.spamhaus.org","check_policy_service inet:127.0.0.1:10023"
# Have postfix listen on all network interfaces, and set the name of the local machine # Have postfix listen on all network interfaces, set our name (the Debian default seems to be localhost),
# to localhost for xxx@localhost mail, but I don't think this will have any effect because # and set the name of the local machine to localhost for xxx@localhost mail (but I don't think this will have any effect because
# there is no true local mail delivery. # there is no true local mail delivery).
tools/editconf.py /etc/postfix/main.cf \ tools/editconf.py /etc/postfix/main.cf \
inet_interfaces=all \ inet_interfaces=all \
myhostname=$PUBLIC_HOSTNAME\
mydestination=localhost mydestination=localhost
# Handle all local mail delivery by passing it directly to dovecot over LMTP. # Handle all local mail delivery by passing it directly to dovecot over LMTP.