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 13:25] – niziak | linux:postfix [2020/06/16 13:21] – niziak | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Postfix ====== | ||
+ | |||
====== relay only for one user ====== | ====== relay only for one user ====== | ||
<file |/ | <file |/ | ||
- | cloudservice@example.org | + | # Specify zero or more " |
+ | cloudservice@example.org | ||
</ | </ | ||
- | cd / | + | cd / |
- | <file | main.cf> | + | <file | / |
- | # By default this is standalone mail server, so relayhost= is empty | + | [smtp.gmail.com]: |
- | relayhost = | + | </ |
+ | <code bash> | ||
+ | cd / | ||
+ | sudo chown root:root / | ||
+ | sudo chmod 0600 / | ||
+ | </ | ||
+ | |||
+ | <file | main.cf> | ||
+ | ... | ||
# 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 | ||
</ | </ | ||
+ | |||
<code bash> | <code bash> | ||
Test email: | Test email: | ||
- | cat /etc/issue | mailx -r " | + | <code bash>cat /etc/issue | mailx -r " |
+ | |||
+ | ====== Issues ====== | ||
+ | |||
+ | (SASL authentication failed; cannot authenticate to server smtp.server.org[11.22.33.44]: | ||
+ | solution: smtp_sasl_security_options = noanonymous | ||