Postfix not receiving mail and not finding any error messages.

June 2, 2018 197 views
Email Debian

I have postfix and dovecot installed on Debian. I have my droplet named as an FQDN (mxwsrv1.cbuchanon.org). I have an A record for mail.cbuchanon.org pointing to the IP of my droplet. I have an MX record pointing cbuchanon.org to mail.cbuchanon.org. The host name on the server shows as mxwsrv1.

Initially, I had the port blocked and could see Google trying to connect when I sent e-mails through gmail. I opened the port and that cleared the error. I've checked that mail.cbuchanon.org points back to my server IP and am coming up empty as to how else I could trace where the issue is occurring. Any guidance would be greatly appreciated.

aliasmaps = hash:/etc/aliases
alias
database = hash:/etc/aliases
appenddotmydomain = no
biff = no

brokensaslauth_clients = yes

myorigin = /etc/mailname

inetinterfaces = all
mailbox
command = /usr/lib/dovecot/deliver -c
/etc/dovecot/conf.d/01-mail-stack-delivery.conf -m "${EXTENSION}"
mailboxsizelimit = 0
myorigin = /etc/mailname
readmedirectory = no
recipient
delimiter = +
relayhost =
smtptlssessioncachedatabase = btree:${datadirectory}/smtpscache
smtpdsaslauthenable = yes
smtpd
saslauthenticatedheader = yes
smtpdsaslpath = private/dovecot-auth
smtpdsaslsecurityoptions = noanonymous
smtpd
sasllocaldomain = $myhostname
smtpdsasltype = dovecot
smtpdtlsauthonly = yes
smtpd
tlsreceivedheader = yes
smtpdtlssessioncachedatabase = btree:${datadirectory}/smtpdscache
tlsrandomsource = dev:/dev/urandom

myhostname = mxwsrv1.cbuchanon.org

myhostname = mail.cbuchanon.org

mydestination = $myhostname, cbuchanon.org, mxwsrv1.cbuchanon.org, localhost.cbuchanon.org, localhost

mydestination = localhost, mail.cbuchanon.org, localhost.cbuchanon.org
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mydomain=cbuchanon.org

smtpdbanner = $myhostname ESMTP
smtpd
helorequired = yes
smtpd
helorestrictions = permitmynetworks,
rejectnonfqdnhelohostname, rejectinvalidhelohostname,
reject
unknownhelohostname, permit
smtpdrecipientrestrictions = rejectunknownclienthostname,
reject
unknownsenderdomain, rejectunknownrecipientdomain,
reject
unauthpipelining, permitmynetworks,
permitsaslauthenticated, rejectunauthdestination,
rejectinvalidhostname, rejectnonfqdnsender
smtpd
senderrestrictions = rejectunknownsenderdomain,
rejectsenderloginmismatch
smtpd
senderloginmaps = $virtualmailboxmaps

unknownaddressrejectcode = 550
unknown
hostnamerejectcode = 550
unknownclientreject_code = 550

1 Answer
cnbuchanon June 3, 2018
Accepted Answer

I figured it out. I mistakenly installed sendmail after installing postfix and the server was trying to use sendmail as the MTA. Thank [insert favorite deity or divinity here] I had a snapshot to revert back to.

Have another answer? Share your knowledge.