linux:mailconfigwithpostfix
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:mailconfigwithpostfix [2014/05/22 15:40] – [test receiving mail] admin | linux:mailconfigwithpostfix [2022/10/29 16:15] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 4: | Line 4: | ||
http:// | http:// | ||
{{: | {{: | ||
- | ====== | + | ====== |
===== install and config postfix for sending and receiving mail ===== | ===== install and config postfix for sending and receiving mail ===== | ||
==== install ==== | ==== install ==== | ||
Line 40: | Line 40: | ||
</ | </ | ||
The **myorigin** parameter specifies the domain that appears in mail that is posted on this machine. Follow this configuration, | The **myorigin** parameter specifies the domain that appears in mail that is posted on this machine. Follow this configuration, | ||
+ | |||
+ | To **secure the mailserver was can't be used by other server**, you can config inet_interfaces to localhost:< | ||
+ | inet_interfaces = localhost | ||
+ | </ | ||
=== 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 | ||
</ | </ | ||
=== test sending mail === | === test sending mail === | ||
Line 90: | Line 95: | ||
</ | </ | ||
==== config user anh.vochi@gmail.com can send mail to sale@babies.vn, | ==== config user anh.vochi@gmail.com can send mail to sale@babies.vn, | ||
- | With above steps, we can send mail to root@babies.vn. But we can't send mail to sale@babies.vn. Below are steps forward emails of sale@babies.vn to root or root@babies.vn(root is UNIX system account) | + | Default |
=== config === | === config === | ||
[/ | [/ | ||
Line 96: | Line 101: | ||
| | ||
[/ | [/ | ||
- | sale@babies.vn | + | sale@babies.vn |
=== Active changes in config === | === Active changes in config === | ||
- run scripts below:< | - run scripts below:< |
linux/mailconfigwithpostfix.1400773246.txt.gz · Last modified: 2022/10/29 16:15 (external edit)