If I send an email and forward with postfix from the forwarded address it doesn't go through.

February 3, 2014 1.3k views
I have postfix setup to forward all emails sent to my website to my gmail account. It works for all email addresses except my gmail account. (Works for other gmails) /etc/postfix/virtual looks like this: @web.com name@gmail.com I can send mail from console. And other email addresses are forwarded. Except my gmail. Is google blocking this because they think I am spoofing the header? Or is it on my end? Is there an easy way to fix this? (I'd like to limit my email install just to postfix, I'm only forwarding, nothing else)
6 Answers
Is there anything in postfix's error logs?
sudo tail -30 /var/log/mail.log

Have you checked your Spam/Junk folder?
Feb 3 16:26:45 localhost postfix/smtpd[3295]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Feb 3 16:26:45 localhost postfix/smtpd[3295]: warning: database /etc/postfix/virtual.db is older than source file /etc/postfix/virtual
Feb 3 16:26:45 localhost postfix/smtpd[3295]: connect from mail-qc0-f175.google.com[209.85.216.175]
Feb 3 16:26:45 localhost postfix/trivial-rewrite[3298]: warning: database /etc/postfix/virtual.db is older than source file /etc/postfix/virtual
Feb 3 16:26:45 localhost postfix/cleanup[3299]: warning: database /etc/postfix/virtual.db is older than source file /etc/postfix/virtual
Feb 3 16:26:45 localhost postfix/smtpd[3295]: B0741E2544: client=mail-qc0-f175.google.com[209.85.216.175]
Feb 3 16:26:45 localhost postfix/cleanup[3299]: B0741E2544: message-id=
Feb 3 16:26:45 localhost postfix/qmgr[1082]: B0741E2544: from=, size=1723, nrcpt=1 (queue active)
Feb 3 16:26:45 localhost postfix/smtpd[3295]: disconnect from mail-qc0-f175.google.com[209.85.216.175]
Feb 3 16:26:47 localhost postfix/smtp[3300]: B0741E2544: to=, orig_to=, relay=gmail-smtp-in.l.google.com[173.194.68.27]:25, delay=1.6, delays=0.24/0.01/0.94/0.38, dsn=2.0.0, status=sent (250 2.0.0 OK 1391462807 b79si15765833qge.29 - gsmtp)
Feb 3 16:26:47 localhost postfix/qmgr[1082]: B0741E2544: removed


Check out https://groups.google.com/d/msg/mailing.postfix.users/bLGqzTkdmQ8/otC5IFHt7a4J and http://www.getshifting.com/wiki/fixpostfixdatabaseolder.

Feb 3 16:26:47 localhost postfix/smtp[3300]: B0741E2544: to=, orig_to=, relay=gmail-smtp-in.l.google.com[173.194.68.27]:25, delay=1.6, delays=0.24/0.01/0.94/0.38, dsn=2.0.0, status=sent (250 2.0.0 OK 1391462807 b79si15765833qge.29 - gsmtp)
Looks like it was forwarded properly. Check the Spam folder.
Its definitely not in my gmail spam folder. Any other help would be greatly appreciated, this has me stumped.

Thanks.
Try running newaliases and then rebooting your droplet.
I have a definitely same problem like ced.koehler, but I can't also find any solution.
I tried 'newaliases' and rebooting too, but the problem isn't solved.
Have another answer? Share your knowledge.