Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux_wiki:configure_a_system_to_forward_all_email_to_a_central_mail_server [2018/04/17 23:33] billdozor [Null Client Testing] |
linux_wiki:configure_a_system_to_forward_all_email_to_a_central_mail_server [2018/05/19 15:30] billdozor [Null Client Setup] |
||
---|---|---|---|
Line 40: | Line 40: | ||
\\ | \\ | ||
Configure postfix parameters | Configure postfix parameters | ||
+ | * Option A: Use postconf (faster if you have an idea what parameters you need to configure)< | ||
+ | postconf relayhost | ||
- | | + | # check all settings |
+ | postconf | grep < | ||
+ | |||
+ | # configure - important | ||
+ | postconf -e ' | ||
+ | |||
+ | # configure - probably already defaults (or set to localhost) | ||
+ | postconf -e ' | ||
+ | postconf -e ' | ||
+ | postconf -e ' | ||
+ | </ | ||
+ | | ||
# Relayhost to forward mail to | # Relayhost to forward mail to | ||
Line 55: | Line 68: | ||
mydomain = example.com | mydomain = example.com | ||
</ | </ | ||
- | * Option B: Use postconf< | ||
- | postconf relayhost | ||
- | # check all settings | ||
- | postconf | grep < | ||
- | |||
- | # configure | ||
- | postconf -e ' | ||
- | postconf -e ' | ||
- | postconf -e ' | ||
- | postconf -e ' | ||
- | </ | ||
\\ | \\ | ||
Line 114: | Line 116: | ||
vim / | vim / | ||
+ | # listening interfaces | ||
inet_interfaces = all | inet_interfaces = all | ||
+ | |||
+ | # Accept mail for these domains | ||
mydestination = example.com, | mydestination = example.com, | ||
Line 154: | Line 159: | ||
Send a test message | Send a test message | ||
<code bash> | <code bash> | ||
- | echo "This is the subject body" | mail -s "This is a postfix forward test" root@server2.example.com | + | echo "Did it work?" | mail -s "This is a postfix forward test" root@server2.example.com |
</ | </ | ||