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
plu:install_postfix [2014/01/25 13:44]
gunn [Config aliases file to receive mail addressed to root]
plu:install_postfix [2018/10/16 14:02] (current)
gunn [After editing files]
Line 11: Line 11:
 postmap /​etc/​postfix/​transport postmap /​etc/​postfix/​transport
 </​code>​ </​code>​
-  * After editing master.cf or man.cf should restart postfix as root+  * After editing master.cf or main.cf should restart postfix as root
 <code bash> <code bash>
 +# systemd way
 +systemctl restart postfix
 +# System V init way
 /​etc/​init.d/​postfix restart /​etc/​init.d/​postfix restart
 </​code>​ </​code>​
Line 85: Line 88:
 nixgate ​            ​local:​ nixgate ​            ​local:​
 nixgate.localnet ​   local: nixgate.localnet ​   local:
 +nixgate.localhost ​  ​local:​
 *         ​wl2k:​localhost *         ​wl2k:​localhost
 </​file>​ </​file>​
 +  * whenever you edit the transport table as root execute the command: 
 +<code bash> 
 +   ​postmap /​etc/​postfix/​transport 
 +</​code>​
 ===== Example /​etc/​mailname file ===== ===== Example /​etc/​mailname file =====
 <​file>​ <​file>​
Line 94: Line 101:
  
 ===== Config aliases file to receive mail addressed to root ===== ===== Config aliases file to receive mail addressed to root =====
-  * FIXME + 
-  * edit // /​etc/​aliases//​ to get all mail system will send to root & postmaster +  * edit // /​etc/​aliases//​ to get all mail the system will send to root & postmaster 
-  * After editing run this as root:+    * After editing run this as root:
 <code bash> <code bash>
 newaliases newaliases
 </​code>​ </​code>​
-==== Example ​alaises ​file ====+  * Verify by checking for the creation of the ///​etc/​aliases.db//​ file 
 +<code bash> 
 +ls -salt /​etc/​aliases* 
 +</​code>​ 
 +==== Example ​/​etc/​aliases ​file ====
 <​file>​ <​file>​
 # /​etc/​aliases # /​etc/​aliases
-root: gunn+root: webman
 mailer-daemon:​ postmaster mailer-daemon:​ postmaster
-postmaster: ​gunn+postmaster: ​webman
 nobody: root nobody: root
 hostmaster: root hostmaster: root
plu/install_postfix.1390686286.txt.gz · Last modified: 2014/01/25 13:44 by gunn
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0