X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdeck_id%7D%7D/cards/%7B%7Bcard_id%7D%7D/form?a=blobdiff_plain;f=all_new_2018%2Flinkable_etc_files%2Fmail%2Fetc%2Fpostfix%2Fmain.cf;h=7074961920965bc4104695cd6892f10668682677;hb=6ebf7555f45713e31593ebf15c16624965b6c39f;hp=dbb2b5dce0e618141317bf6259c53105888f8c63;hpb=6d6eb420342c2962063f92f8fc5e8b23e5cb1dbf;p=config diff --git a/all_new_2018/linkable_etc_files/mail/etc/postfix/main.cf b/all_new_2018/linkable_etc_files/mail/etc/postfix/main.cf index dbb2b5d..7074961 100644 --- a/all_new_2018/linkable_etc_files/mail/etc/postfix/main.cf +++ b/all_new_2018/linkable_etc_files/mail/etc/postfix/main.cf @@ -31,10 +31,10 @@ smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination myorigin = /etc/mailname -myhostname = $myorigin +myhostname = REPLACE_myhostname_ECALPER alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases -mydestination = $myhostname, localhost.plomlompom.com, localhost +mydestination = $myhostname localhost.$mydomain localhost REPLACE_mydomain_if_domainwide_ECALPER relayhost = mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 mailbox_size_limit = 0 @@ -50,4 +50,10 @@ smtpd_sasl_path = private/auth # connect to opendkim smtpd_milters = inet:localhost:12301 -non_smtpd_milters = inet:localhost:12301 \ No newline at end of file +non_smtpd_milters = inet:localhost:12301 + +# transport mail to dovecot; not strictly needed, as even without this +# postfix will throw mail to /var/mail/USER to be found by dovecot for +# serving via IMAP etc.; but using dovecot's LMTP server for delivery +# allows us to do stuff like dovecot-side sieve filtering. +mailbox_transport = lmtp:inet:127.0.0.1:2424 \ No newline at end of file