zx1905cc
By:
zx1905cc

Postfix/Dovecot on VPS. Can not send message using any mail client (Thunderbird etc.)

November 7, 2014 1.4k views

I have installed Postfix and Dovecot with Webmin on an Ubuntu 14.04 Nginx server.
After much trial and error it almost works, I can send mail to myself at Gmail/Yahoo without issue.
Here is the problem, I can receive mail using Thunderbird but not send.
LOG:
Nov 7 03:33:46 learnfacts postfix/smtpd[4707]: connect from XXX.146.200.192.cli ent.dyn.strong-sf67.as22781.net[XXX.200.146.206]
Nov 7 03:33:59 learnfacts dovecot: pop3-login: Login: user=<support>, method=PL AIN, rip=192.200.146.206, lip=XXX.131.190.126, mpid=4717, TLS, session=<a9qjezwH 6gDAyJLO>
Nov 7 03:34:01 learnfacts dovecot: pop3(support): Disconnected: Logged out top= 0/0, retr=0/0, del=0/0, size=0
Nov 7 03:34:24 learnfacts postfix/smtpd[4707]: lost connection after UNKNOWN fr om XXX.146.200.192.client.dyn.strong-sf67.as22781.net[XXX.200.146.206]
Nov 7 03:34:24 learnfacts postfix/smtpd[4707]: disconnect from XXX.146.200.192. client.dyn.strong-sf67.as22781.net[192.200.146.206]
Nov 7 03:34:38 learnfacts postfix/smtpd[4707]: connect from XXX.146.200.192.cli ent.dyn.strong-sf67.as22781.net[XXX.200.146.206]
Nov 7 03:36:19 learnfacts postfix/smtpd[4707]: lost connection after UNKNOWN fr om XXX.146.200.192.client.dyn.strong-sf67.as22781.net[XXX.200.146.206]
Nov 7 03:36:19 learnfacts postfix/smtpd[4707]: disconnect from XXX.146.200.192. client.dyn.strong-sf67.as22781.net[XXX.200.146.206]

This is result after trying to send email form Thunderbird, in this instance I am using a proxy but get similar result when using my normal IP. I tried using a proxy thinking my ISP might be blocking something.

Here is Postfix postconf -n :

aliasdatabase = hash:/etc/aliases
alias
maps = hash:/etc/aliases
appenddotmydomain = no
biff = no
configdirectory = /etc/postfix
mailbox
sizelimit = 0
mydestination = mail.mydomain.info, mydomain.info, localhost.info, localhost, localhost.localdomain
myhostname = myhostname
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128,
myorigin = /etc/mailname
readme
directory = no
recipientdelimiter = +
smtp
tlssessioncachedatabase = btree:${datadirectory}/smtpscache
smtpd
banner = $myhostname ESMTP $mailname (Ubuntu)
smtpd
helorequired = yes
smtpd
recipientrestrictions = permitinetinterfaces
smtpd
relayrestrictions = permitmynetworks permitsaslauthenticated deferunauthdestination
smtpdtlscertfile = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd
tlskeyfile = /etc/ssl/private/ssl-cert-snakeoil.key
smtpdtlssessioncachedatabase = btree:${datadirectory}/smtpdscache
smtpdusetls = yes
virtualaliasdomains = mydomain.info
virtualaliasmaps = hash:/etc/postfix/virtual

I have made a dumb newbie mistake and set my Hostname same as my domain name
xxxxx.info (host) and xxxxx.info (domain) would that cause an issue?

I am a senior citizen and learning as I go!

1 comment
  • One thing: it is not completely necessary to use your VPS as the smtp server. You can use any smtp server to send mail.

    At my house, I just use my ISP's smtp server. It works fine.

    Thunderbird lets you have multiple SMTP servers, and you can just pick one of them as the default for each email you add.

    might save you some time..

Be the first one to answer this question.