This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
networking:linux:postfix_smarthost [2016/10/08 12:32] gcooper |
networking:linux:postfix_smarthost [2019/05/20 08:20] gcooper |
||
---|---|---|---|
Line 43: | Line 43: | ||
postconf -e ' | postconf -e ' | ||
- | / | + | systemctl restart |
</ | </ | ||
Line 61: | Line 61: | ||
< | < | ||
- | yum install cyrus-sasl-plain | + | yum install cyrus-sasl-plain |
</ | </ | ||
Line 73: | Line 73: | ||
< | < | ||
- | SMTPHOST=your.mailserver.domain:587 | + | #smtp.isp.com |
+ | < | ||
</ | </ | ||
Line 84: | Line 85: | ||
< | < | ||
postconf -e ' | postconf -e ' | ||
- | / | + | postfix reload |
</ | </ | ||
Line 91: | Line 92: | ||
**Envelope-From**: | **Envelope-From**: | ||
- | Some servers require the '' | + | <note warning>Some mail servers require the '' |
< | < | ||
Line 102: | Line 103: | ||
< | < | ||
- | # Use the empty regexp | + | # Use the empty regex '//' |
- | // pbx@yourdomain.tld | + | // validsender@yourdomain.tld |
</ | </ | ||
Line 113: | Line 114: | ||
</ | </ | ||
- | ===== Script for FreePBX Distro ===== | + | ===== FreePBX Distro ===== |
:!: Includes **SMTP authentication**, | :!: Includes **SMTP authentication**, | ||
Line 124: | Line 125: | ||
FILE=/ | FILE=/ | ||
# Your valid mail server - colon and port number optional | # Your valid mail server - colon and port number optional | ||
- | SMTPHOST=yourhost.yourdomain.com:587 | + | SMTPHOST=yoursmtphost.yourdomain.tld:587 |
# SMTP auth credentials - username may have @ | # SMTP auth credentials - username may have @ | ||
USERPASS=yoursmtpusername: | USERPASS=yoursmtpusername: | ||
CANONICAL=/ | CANONICAL=/ | ||
# Must be a valid authorized sender e-mail address in your domain | # Must be a valid authorized sender e-mail address in your domain | ||
- | SENDER=pbx@yourdomain.com | + | SENDER=validsender@yourdomain.tld |
# Trusted CAs aren't configured by default?! | # Trusted CAs aren't configured by default?! | ||
CAFILE=/ | CAFILE=/ | ||
- | yum install cyrus-sasl-plain | + | #yum install cyrus-sasl-plain |
#apt-get install libsasl2-modules | #apt-get install libsasl2-modules | ||
Line 165: | Line 166: | ||
postconf -e " | postconf -e " | ||
- | / | + | postfix reload |
</ | </ |