tutorial:mail:postfixredir

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
tutorial:mail:postfixredir [2013-08-18 00:45]
root
tutorial:mail:postfixredir [2018-06-03 14:10] (current)
Line 4: Line 4:
  
 ===== Problem ===== ===== Problem =====
-  * I want to use postfix on a virtual server as a backup incase my Exchange is down. Postfix should accept every mail and deliver it to the Exchange server instantly or wait until the Exchange server is available.+  * I want to use postfix on a virtual server as a backup in case my Exchange is down. Postfix should accept every mail and deliver it to the Exchange server instantly or wait until the Exchange server is available.
  
 ===== Requirements ===== ===== Requirements =====
Line 18: Line 18:
  
 ===== Step 2 ===== ===== Step 2 =====
-  * Create and open the file /etc/postfix/transport +  * Create and open the file ''%%/etc/postfix/transport%%'' 
-  * Insert ''%%domain.com smtp:exchangehost.name%%''+  * Insert ''%%domain.com smtp:exchangehost.name%%'' for every domain you want to relay on its own line.
   * Run ''%%postmap /etc/postfix/transport%%''   * Run ''%%postmap /etc/postfix/transport%%''
  
Line 25: Line 25:
  
 ===== Step 3 ===== ===== Step 3 =====
-  * Edit /etc/postfix/main.cf +  * Edit ''%%/etc/postfix/main.cf%%'' 
-  * Insert ''%%relay_domains = domain.com%%''+  * Insert ''%%relay_domains = domain.com%%''. If you want multiple domains, separate them with a space. 
 +  * Insert ''%%transport_maps = hash:/etc/postfix/transport%%''
   * Run ''%%/etc/init.d/postfix reload%%''   * Run ''%%/etc/init.d/postfix reload%%''
  • tutorial/mail/postfixredir.1376779544.txt.gz
  • Last modified: 2018-06-03 14:10
  • (external edit)