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
Last revision Both sides next revision
plu:install_postfix [2014/01/17 09:50]
gunn [Configure postfix]
plu:install_postfix [2018/10/16 13:58]
gunn [Example transport file]
Line 3: Line 3:
   * Three files to edit/create in /​etc/​postfix - master.cf, main.cf, transport   * Three files to edit/create in /​etc/​postfix - master.cf, main.cf, transport
   * Also check/​modify /​etc/​mailname file   * Also check/​modify /​etc/​mailname file
-  * The examples below are using //nixgate// for a machine name & //webman// as user+  * The examples below are using //nixgate// for a machine name & //webman// as user name. 
 +    * Change your machine & user names appropriate to your system.
  
 ==== After editing files ==== ==== After editing files ====
Line 10: 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>
 /​etc/​init.d/​postfix restart /​etc/​init.d/​postfix restart
Line 52: Line 53:
 alias_maps = hash:/​etc/​aliases alias_maps = hash:/​etc/​aliases
 alias_database = hash:/​etc/​aliases alias_database = hash:/​etc/​aliases
-myorigin = /​etc/​mailname 
 mydestination = nixgate, nixgate.localnet,​ localhost.localnet,​ localhost mydestination = nixgate, nixgate.localnet,​ localhost.localnet,​ localhost
 relayhost =  relayhost = 
Line 64: Line 64:
 # Added for paclink-unix config # Added for paclink-unix config
 transport_maps = hash:/​etc/​postfix/​transport transport_maps = hash:/​etc/​postfix/​transport
 +</​file>​
 +  * When starting postfix if it complains about IPV6 then do the following:
 +    * Add this line to main.cf
 +<​file>​
 +inet_protocols = ipv4
 +</​file>​
 +  * Change the //​mynetworks//​ line in main.cf to:
 +<​file>​
 +mynetworks = 127.0.0.0/​8 ​
 </​file>​ </​file>​
  
 +  *  Now [[plu:​install_postfix#​after_editing_files | restart Postfix]]
 +  * [[http://​www.postfix.org/​IPV6_README.html | postfix IPV6 reference]]
 ===== Example transport file ===== ===== Example transport file =====
   * This is a very simple example that assumes that the machine that postfix is installed on is **only** concerned with winlink mail.   * This is a very simple example that assumes that the machine that postfix is installed on is **only** concerned with winlink mail.
 +  * In the example below //nixgate// is a host machine name.
 <​file>​ <​file>​
 # #
Line 73: Line 85:
 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 81: Line 97:
 </​file>​ </​file>​
  
 +===== Config aliases file to receive mail addressed to root =====
 +
 +  * edit // /​etc/​aliases//​ to get all mail the system will send to root & postmaster
 +    * After editing run this as root:
 +<code bash>
 +newaliases
 +</​code>​
 +  * Verify by checking for the creation of the ///​etc/​aliases.db//​ file
 +<code bash>
 +ls -salt /​etc/​aliases*
 +</​code>​
 +==== Example /​etc/​aliases file ====
 +<​file>​
 +# /​etc/​aliases
 +root: webman
 +mailer-daemon:​ postmaster
 +postmaster: webman
 +nobody: root
 +hostmaster: root
 +usenet: root
 +news: root
 +webmaster: root
 +www: root
 +ftp: root
 +abuse: root
 +noc: root
 +security: root
 +</​file>​
plu/install_postfix.txt · Last modified: 2018/10/16 14:02 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