Ff6c66de8d00dad0497ff37bf5f4ab1abd164cc7
By:
alecfunes

Debian 8.5 - Postfix - Dovecot: setup completed - mails don't reach destination mail address

July 14, 2016 1.1k views
Email Debian

I have deployed a fresh Debian 8.5 image from DO, and both Postfix (2.11.3) and Dovecot (2.2.13) according to these tutorials:
--- How To Set Up a Postfix E-Mail Server with Dovecot
(https://www.digitalocean.com/community/tutorials/how-to-set-up-a-postfix-e-mail-server-with-dovecot)
--- How To Set Up a Postfix Email Server with Dovecot: Dynamic Maildirs and LMTP
(https://www.digitalocean.com/community/tutorials/how-to-set-up-a-postfix-email-server-with-dovecot-dynamic-maildirs-and-lmtp)

Then, sending test mails from the command line with "mail xxxxxx@hotmail.com", they don't reach that account, and there are no errors in [/var/log/] mail.log, mail.err, mail.warn, syslog.

I'm lost :(
Need your quick help in order to be able to get my mail server running...!

Thanks in advance,
Alec.

3 comments
  • A few places I would check to start troubleshooting this:

    Are you receiving any bounce messages?

    Are there any messages in your log files for the send attempts, are they rejected immediately?

    Have you set up SPF records for your domain authorizing your server to send messages for it?

    by Keshav Pareek
    Here we'll show you how to create a SPF record for your domain with Google Apps.
  • Ryan, hi!
    No bounce messages.
    No messages in the log files ... "at that moment" (I will explain this below).
    I haven't set up SPF records, I didn't know what they are, I know now thanks to you ;)

    Ok, about no messages in the log files: after some actions I took, all of them useless, I restarted Postfix and... the same error "fatal: unknown service: smtp/tcp" message came back !
    So the solving action ln -snf /etc/services /var/spool/postfix/etc/services wasn't effective anymore. I unlinked and directly copied the file and the error was solved again.

    Then, I execute "postfix flush", "postfix restart", sent a test mail, and I got the error "Host or domain name not found. Name service error for name=domain.com".
    I execute "cp /etc/resolv.conf /var/spool/postfix/etc/resolv.conf" and problem solved (source: "http://superuser.com/questions/975337/postfix-error-host-or-domain-name-not-found").

    At this moment I have all the test mails caught as SPAM by Hotmail, but I saw somewhere somebody had the same problem posted, so... I will go for it ;)

    Also I have to check which of all these changes is affected by an OS reboot ... ;)

    Thanks Ryan!

  • Alec,

    Were you able to determine what was effected by a reboot?

1 Answer

This question was answered by @ryanpq:

A few places I would check to start troubleshooting this:

Are you receiving any bounce messages?

Are there any messages in your log files for the send attempts, are they rejected immediately?

Have you set up SPF records for your domain authorizing your server to send messages for it?

View the original comment

by Keshav Pareek
Here we'll show you how to create a SPF record for your domain with Google Apps.
Have another answer? Share your knowledge.