Fix postfix setup instructions

This commit is contained in:
Daniel Winzen
2017-05-20 18:39:10 +02:00
parent 75223792ea
commit eb2a96fbdc
2 changed files with 4 additions and 5 deletions

View File

@ -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

View File

@ -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