Postfix – Troubleshooting New Mail Server Sending and Receiving Issues

debiandovecotemailpostfix

I am trying to learn about mail servers and have setup one. However neither can I send, nor receive mail.
I can login to my email account and I see the folders (Inbox, Sent, Trash, etc) are being populated within the email client.
Also /var/log/syslog indicates that my user has successfully logged in via imap-login

When I click on the test button from Thunderbird before logging in, the test always fails with: "Thunderbird failed to find the settings for your email account"
I have turned off the firewall on the server completely. My DNS records I believe are properlly set up as an MX lookup returns no errors/warnings.
I have verified the mysql user specified within dovecot does have permissions over the database used for mail, the domain, alias and accounts tables have all been created.
[email protected] has been imported into the accounts table.

Any ideas?

This is the guide I followed to set it up and I am as well using Debian 9.
Thanks!

Best Answer

Looking at the /var/sys/syslog there were mysql access denied errors for the postfix db. One of the files within /etc/postfix/sql/ had a typo in the postfix password.

I can now receive mail without issues, however outgoing mail doesn't work. As the issue now differs from it initially was I am answering this so a new post can be created more specific to the current failures.