linux_wiki:configure_a_system_to_forward_all_email_to_a_central_mail_server

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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/05/10 22:37]
billdozor [Null Client Setup]
linux_wiki:configure_a_system_to_forward_all_email_to_a_central_mail_server [2018/05/19 15:30]
billdozor [Null Client Setup]
Line 46: Line 46:
 postconf | grep <keyword> postconf | grep <keyword>
  
-# configure+# configure - important
 postconf -e 'relayhost = [192.168.1.151]' postconf -e 'relayhost = [192.168.1.151]'
 +
 +# configure - probably already defaults (or set to localhost)
 postconf -e 'inet_interfaces = loopback-only' postconf -e 'inet_interfaces = loopback-only'
 postconf -e 'mydestination =' postconf -e 'mydestination ='
Line 157: 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
 </code> </code>
  
  • linux_wiki/configure_a_system_to_forward_all_email_to_a_central_mail_server.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)