I have postfix configured for mail forwarding on my linode and I'm getting the error below when sending [some] emails (it would appear most emails I send do work properly and I don't believe I have an issue receiving mail at all - weird!):
Technical details of temporary failure:
The recipient server did not accept our requests to connect. Learn more at
http://support.google.com/mail/bin/answ ... nswer=7720[(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
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
home_mailbox = mail/
inet_interfaces = all
inet_protocols = all
mailbox_size_limit = 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 =
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks reject_unauth_destination
smtpd_relay_restrictions = permit_sasl_authenticated permit_mynetworks reject_unauth_destination
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
virtual_alias_domains = domain1.com, domain3.com, domain2.com
virtual_alias_maps = 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.