From eb2a96fbdc3d12d1ce8a84027e3873e118edec62 Mon Sep 17 00:00:00 2001 From: Daniel Winzen Date: Sat, 20 May 2017 18:39:10 +0200 Subject: [PATCH] Fix postfix setup instructions --- README.md | 6 ++++-- etc/postfix/main.cf | 3 --- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 3038304..469db45 100644 --- a/README.md +++ b/README.md @@ -32,14 +32,16 @@ usermod -aG sasl postfix This setup has two postfix instances, one for receiving and sending mail to other .onion services and one for rewriting addresses to pass them on to a clearnet facing mail relay. You may or may not want to create the second instance by running ``` postmulti -e init -postmulti -I clearnet -e create -postmulti -I clearnet -e enable +postmulti -I postfix-clearnet -e create +postmulti -i clearnet -e enable postmulti -i clearnet -p start ``` +If you created an instance, make sure to copy and modify the configuration files from etc/postfix-clearnet too After copying (and modifying) the posfix configuration, you need to create databases out of the mapping files (also each time you update those files): ``` postmap /etc/postfix/canonical /etc/postfix/sender_login_maps /etc/postfix/transport +postmap /etc/postfix-clearnet/canonical /etc/postfix-clearnet/transport #only if you have a second instance ``` To save temporary files in memory, add the following to /etc/fstab diff --git a/etc/postfix/main.cf b/etc/postfix/main.cf index ea85cbb..856f959 100644 --- a/etc/postfix/main.cf +++ b/etc/postfix/main.cf @@ -56,6 +56,3 @@ smtpd_sender_restrictions = reject_sender_login_mismatch, permit_sasl_authentica smtpd_relay_restrictions = permit_sasl_authenticated, permit_auth_destination, defer_unauth_destination, reject smtpd_recipient_limit = 10 smtpd_sender_login_maps = regexp:/etc/postfix/sender_login_maps -multi_instance_wrapper = ${command_directory}/postmulti -p -- -multi_instance_enable = yes -multi_instance_directories = /etc/postfix-clearnet