Configured postfix for email forwarding now getting socket error

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">http://support.google.com/mail/bin/answer.py?answer=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

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.

2 Replies

It looks like your mail client is trying to send mail through Gmail, not your postfix server. But obscuring your IP address makes it difficult for us to do any troubleshooting.

I'm using Gmail to send the email and have all of the addresses forwarding to my gmail address…and using the gmail "Send mail as:" feature so my domain email addresses still show up in the "from" field.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct