User Tools

Site Tools


linux:mailconfigwithpostfix

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
linux:mailconfigwithpostfix [2014/05/22 15:40] – [test receiving mail] adminlinux:mailconfigwithpostfix [2016/02/15 09:27] – [What domain name to use in outbound mail] admin
Line 4: Line 4:
 http://postfix.state-of-mind.de/patrick.koetter/smtpauth/sasldb_configuration.html\\ http://postfix.state-of-mind.de/patrick.koetter/smtpauth/sasldb_configuration.html\\
 {{:linux:postfix.ppt|postfix slide show}} {{:linux:postfix.ppt|postfix slide show}}
-====== mailserver config ======+====== Mailserver config ======
 ===== install and config postfix for sending and receiving mail ===== ===== install and config postfix for sending and receiving mail =====
 ==== install ==== ==== install ====
Line 40: Line 40:
 </code> </code>
 The **myorigin** parameter specifies the domain that appears in mail that is posted on this machine. Follow this configuration, send mail as "user@$mydomain" The **myorigin** parameter specifies the domain that appears in mail that is posted on this machine. Follow this configuration, send mail as "user@$mydomain"
 +
 +To **secure the mailserver was can't be used by other server**, you can config inet_interfaces to localhost:<code bash>
 +inet_interfaces = localhost
 +</code>
 === what domains this machine will deliver locally === === what domains this machine will deliver locally ===
 The **mydestination** parameter specifies what domains this machine will deliver locally, instead of forwarding to another machine. The **mydestination** parameter specifies what domains this machine will deliver locally, instead of forwarding to another machine.
Line 56: Line 60:
 <code bash> <code bash>
 yum install mailx yum install mailx
 +yum install sendmail
 </code> </code>
 === test sending mail === === test sending mail ===
Line 90: Line 95:
 </code> </code>
 ==== config user [email protected] can send mail to [email protected], base on UNIX system account==== ==== config user [email protected] can send mail to [email protected], base on UNIX system account====
-With above steps, we can send mail to [email protected]. But we can't send mail to [email protected]. Below are steps forward emails of [email protected] to root or [email protected](root is UNIX system account)+Default , we can send mail to [email protected]. But we can't send mail to [email protected]. Below are steps forward emails of [email protected] to sale UNIX system account(sale is UNIX system account)
 === config === === config ===
 [/etc/postfix/main.cf] [/etc/postfix/main.cf]
Line 96: Line 101:
      
 [/etc/postfix/virtual] [/etc/postfix/virtual]
-  [email protected] root+  [email protected] sale, [email protected], [email protected], [email protected]
 === Active changes in config === === Active changes in config ===
   - run scripts below:<code bash>   - run scripts below:<code bash>
linux/mailconfigwithpostfix.txt · Last modified: 2022/10/29 16:15 by 127.0.0.1