Differences
This shows you the differences between two versions of the page.
postfix_config_for_outgoing_smarthost [26.12.2017 11:54] – created Pascal Suter | postfix_config_for_outgoing_smarthost [14.10.2020 18:31] (current) – Pascal Suter | ||
---|---|---|---|
Line 19: | Line 19: | ||
also make sure you're not creating an open realy server for everybody to use. for example limit your accetpable mail networks to localhost only is a good starting point (in main.cf as well): | also make sure you're not creating an open realy server for everybody to use. for example limit your accetpable mail networks to localhost only is a good starting point (in main.cf as well): | ||
mynetworks = 127.0.0.0/8 [:: | mynetworks = 127.0.0.0/8 [:: | ||
+ | make sure the necessary encryption libraries are installed | ||
+ | apt install libsasl2-modules | ||
now check your neew config and reload it: | now check your neew config and reload it: | ||
postfix check | postfix check | ||
Line 26: | Line 28: | ||
in another terminal: | in another terminal: | ||
echo "this is a test " | mail mail@psuter.ch -s test | echo "this is a test " | mail mail@psuter.ch -s test | ||
+ | |||
+ | ===== rewrite from-addresses ===== | ||
+ | in many cases, the sender domain of such a system is an internal domain and will be rejected by many spam filters. for that reason it may be necessary to rewrite the '' | ||
+ | |||
+ | to do that we can use '' | ||
+ | sender_canonical_maps = hash:/ | ||
+ | and create a map in ''/ | ||
+ | @myserver.local | ||
+ | |||
+ | instead of '' | ||
+ | |||
+ | finally use postmap to create the hash map and reload the config once more: | ||
+ | postmap / | ||
+ | postfix check | ||
+ | postfix reload | ||