User Tools

Site Tools


networking:linux:postfix_smarthost

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
Last revision Both sides next revision
networking:linux:postfix_smarthost [2019/05/20 08:18]
gcooper
networking:linux:postfix_smarthost [2021/11/30 08:00]
gcooper
Line 18: Line 18:
   * Blacklisted IP address   * Blacklisted IP address
   * Etc.   * Etc.
 +
 +You need a package installed (CentOS, Ubuntu):
 +
 +<file>
 +yum install cyrus-sasl-plain
 +</file>
 +
 +<file>
 +apt install libsasl2-modules
 +</file>
  
 You can copy and paste the following into an editor, then adjust the $SMTPHOST and $USERPASS variables for your needs. Then, as root, paste it to the command line:  You can copy and paste the following into an editor, then adjust the $SMTPHOST and $USERPASS variables for your needs. Then, as root, paste it to the command line: 
Line 121: Line 131:
   - **Edit** for your needs   - **Edit** for your needs
   - **Paste** into FreePBX Distro CLI as ''root''   - **Paste** into FreePBX Distro CLI as ''root''
 +
 +This package must be installed on older FreePBX Distro installations:
 +
 +<file>
 +yum install cyrus-sasl-plain
 +</file>
 +
 +Copy, edit, then paste in the CLI:
  
 <file> <file>
 FILE=/etc/postfix/password FILE=/etc/postfix/password
 # 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:yoursmtpuserpassword USERPASS=yoursmtpusername:yoursmtpuserpassword
 CANONICAL=/etc/postfix/canonical CANONICAL=/etc/postfix/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=/etc/ssl/certs/ca-bundle.trust.crt CAFILE=/etc/ssl/certs/ca-bundle.trust.crt
- 
-#yum install cyrus-sasl-plain 
-#apt-get install libsasl2-modules 
  
 # This will overwrite any existing contents # This will overwrite any existing contents
networking/linux/postfix_smarthost.txt · Last modified: 2021/11/30 08:01 by gcooper