User Tools

Site Tools


linux:postfix

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:postfix [2017/03/10 20:36]
rlunaro [Open firewall]
linux:postfix [2017/03/12 15:37] (current)
rlunaro
Line 30: Line 30:
 # See /usr/share/postfix/main.cf.dist for a commented, more complete version # See /usr/share/postfix/main.cf.dist for a commented, more complete version
  
 +
 +mail_owner = postfix
  
 # Debian specific:  Specifying a file name will cause the first # Debian specific:  Specifying a file name will cause the first
Line 45: Line 47:
  
 relay_domains = $mydestination relay_domains = $mydestination
 +
 +smtp_generic_maps = hash:/etc/postfix/generic
  
 smtpd_banner = $myhostname ESMTP $mail_name smtpd_banner = $myhostname ESMTP $mail_name
Line 56: Line 60:
  
 readme_directory = no readme_directory = no
 +compatibility_level = 2
 +
 +inet_interfaces = all
 +inet_protocols = all
 +
 +smtpd_use_tls = no
 +smtp_use_tls = no 
  
  
 </code> </code>
 +
 +
 +It's very important to configure the file ''/etc/postfix/generic'' with a remapping of the local 
 +users to complete email addresses: 
 +
 +<code>
 +# REMEMBER!!!! After making changes to this file you must run: 
 +#
 +# postmap /etc/postfix/generic
 +#
 +#
 +
 +username   username@complete.server.address.com
 +</code>
 +
 +In that way, every outgoing email is rewrited from username@localhost to username@complete.server.address.com and nowadays email servers can recognize it as a valid email 
 +address. 
 +
 +After that **don't forget to run postmap /etc/postfix/generic** in order to update the database with the fresh configuration.
  
 ==== Open firewall ==== ==== Open firewall ====
Line 64: Line 94:
  
 <code> <code>
-ufw allow 25 465 587+ufw allow 25
 </code> </code>
  
linux/postfix.1489174601.txt.gz ยท Last modified: 2017/03/10 20:36 by rlunaro