Configured postfix for email forwarding now getting socket error
Technical details of temporary failure:
The recipient server did not accept our requests to connect. Learn more at
[(0) domain1.com. [45.79.xxx.xxx]:587: socket error]
[(0) domain1.com. [2600:3c02::f03c:91ff:xxxx:xxxx]:587: socket error]
I followed the postfix tutorials here the best I could but I must admit my linux skills are a bit rusty.
I've also noticed my SSH sessions are freezing up after a few minutes. It didn't seem to do this before… I get Network Error: Software caused connection abort
Here's my mail configuration:
root@zeus:/var/log# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
appenddotmydomain = no
biff = no
config_directory = /etc/postfix
home_mailbox = mail/
inet_interfaces = all
inet_protocols = all
mailboxsizelimit = 0
mydestination = localhost, localhost.localdomain, , localhost
myhostname = zeus.domain1.com
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 45.79.xxx.xxx
readme_directory = no
recipient_delimiter = +
relayhost =
smtptlssessioncachedatabase = btree:${datadirectory}/smtpscache
smtpdbanner = $myhostname ESMTP $mailname (Ubuntu)
smtpdrecipientrestrictions = permitsaslauthenticated permitmynetworks rejectunauth_destination
smtpdrelayrestrictions = permitsaslauthenticated permitmynetworks rejectunauth_destination
smtpdtlscert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpdtlskey_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpdtlssessioncachedatabase = btree:${datadirectory}/smtpdscache
smtpdusetls = yes
virtualaliasdomains = domain1.com, domain3.com, domain2.com
virtualaliasmaps = hash:/etc/postfix/virtual
–------------------------------
root@zeus:/var/log# netstat -ntlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 1957/mysqld
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 1880/dovecot
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 1880/dovecot
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1886/sshd
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 2060/master
tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 1880/dovecot
tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 1880/dovecot
tcp6 0 0 :::110 :::* LISTEN 1880/dovecot
tcp6 0 0 :::143 :::* LISTEN 1880/dovecot
tcp6 0 0 :::22 :::* LISTEN 1886/sshd
tcp6 0 0 :::25 :::* LISTEN 2060/master
tcp6 0 0 :::993 :::* LISTEN 1880/dovecot
tcp6 0 0 :::995 :::* LISTEN 1880/dovecot
root@zeus:/var/log# iptables -L -n -v
Chain INPUT (policy ACCEPT 2535 packets, 237K bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 2350 packets, 360K bytes)
pkts bytes target prot opt in out source destination
Hoping somebody with a little more experience could possibly shed light on any mistakes I may have made.