I'm using Postfix and Dovecot on Debian Wheezy for sending and receiving emails. Dovecot seems to work just fine; I can connect, retrieve, move around, delete, etc., emails that already existed in the account (from past cron jobs). Postfix doesn't seem to work correctly though. This is what happens:
- Send email from email@example.com using Thunderbird (also tried K9 on Android).
- The email seems to make it to the SMTP server okay. The message gets put in my Sent folder in IMAP.
- Nothing happens after this. The recipient never receives the email.
My error log:
Aug 19 18:12:26 debian postfix/smtp: 3F920CFC2B4: to=<[MY GMAIL USERNAME]@gmail.com>, relay=none, delay=1282, delays=1219/0.01/63/0, dsn=4.4.1, status=deferred (connect to alt2.gmail-smail-smtp-in.l.google.com[18.104.22.168]:25: Connection timed out) Aug 19 18:14:56 debian postfix/qmgr: 3F920CFC2B4: from=<ian@[MYDOMAIN].com>, size=2701, nrcpt=1 (queue active) Aug 19 18:14:56 debian postfix/smtp: connect to gmail-smtp-in.l.google.com[2607:f8b0:400e:c01::1a]:25: Network is unreachable Aug 19 18:15:17 debian postfix/smtp: connect to gmail-smtp-in.l.google.com[22.214.171.124]:25: Connection timed out Aug 19 18:15:38 debian postfix/smtp: connect to alt1.gmail-smtp-in.l.google.com[126.96.36.199]:25: Connection timed out Aug 19 18:15:38 debian postfix/smtp: connect to alt1.gmail-smtp-in.l.google.com[2607:f8b0:400e:c01::1b]:25: Network is unreachable Aug 19 18:15:38 debian postfix/smtp: connect to alt2.gmail-smtp-in.l.google.com[2607:f8b0:400e:c01::1b]:25: Network is unreachable
*edited out my domain and Gmail username.
I have a Comcast residential line (static IP), and my firewall isn't a problem, the ports are open.
I also cannot send email to my Postfix server. I've tried sending emails from my Gmail accounts to my domain, and I've also tried sending emails to myself from within my domain; neither works. There are no errors in the logs and no indication that emails were ever received.
I'm using STARTTLS on both Postfix and Dovecot (certs are self-signed). I used this guide for the most part.