meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
linux:postfix [2018/08/01 11:43] – niziak | linux:postfix [2020/06/16 11:21] – niziak | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Postfix ====== | ||
+ | |||
====== relay only for one user ====== | ====== relay only for one user ====== | ||
Line 18: | Line 20: | ||
<file | main.cf> | <file | main.cf> | ||
- | # By default this is standalone mail server, so relayhost= is empty | + | ... |
- | relayhost = | + | |
# A sender-dependent override for the global relayhost parameter setting | # A sender-dependent override for the global relayhost parameter setting | ||
sender_dependent_relayhost_maps = hash:/ | sender_dependent_relayhost_maps = hash:/ | ||
+ | smtp_sender_dependent_authentication = yes | ||
+ | smtp_sasl_auth_enable = yes | ||
+ | smtp_sasl_password_maps = hash:/ | ||
+ | smtp_sasl_security_options = noanonymous | ||
</ | </ | ||
- | |||
- | |||
Line 31: | Line 33: | ||
Test email: | Test email: | ||
- | cat /etc/issue | mailx -r " | + | <code bash>cat /etc/issue | mailx -r " |
====== Issues ====== | ====== Issues ====== | ||
(SASL authentication failed; cannot authenticate to server smtp.server.org[11.22.33.44]: | (SASL authentication failed; cannot authenticate to server smtp.server.org[11.22.33.44]: | ||
+ | solution: smtp_sasl_security_options = noanonymous | ||