Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-09-2010, 10:45 PM   #1
LQ Newbie
Registered: Jan 2010
Posts: 29

Rep: Reputation: 0
Postfix not forwarding e-mails properly

I have Postfix set up to forward e-mails to two different addresses. This is my /etc/postfix/virtual:

I'm forwarding the message back to myself because that's the only way I know if the original message is even getting delivered in the first place.

The problem is that the e-mail isn't making it into my GMail inbox. I've checked my spam folder and it isn't there. And bafflingly, according to the logs, the message does seem to be getting sent:

Sep 10 02:34:38 localhost postfix/smtpd[12698]: connect from[]
Sep 10 02:34:38 localhost postfix/smtpd[12698]: C14292AB44:[]
Sep 10 02:34:38 localhost postfix/cleanup[12703]: C14292AB44: message-id=<>
Sep 10 02:34:38 localhost postfix/qmgr[10529]: C14292AB44: from=<>, size=2328, nrcpt=2 (queue active)
Sep 10 02:34:38 localhost postfix/local[12704]: C14292AB44: to=<>, relay=local, delay=0.07, delays=0.06/0.01/0/0, dsn=2.0.0, status=sent (delivered to maildir)
Sep 10 02:34:40 localhost postfix/smtp[12705]: C14292AB44: to=<>, orig_to=<>,[]:25, delay=1.9, delays=0.06/0.05/0.07/1.7, dsn=2.0.0, status=sent (250 2.0.0 OK 1284086080 s15si17695951ybm.23)
Sep 10 02:34:40 localhost postfix/qmgr[10529]: C14292AB44: removed
Sep 10 02:35:08 localhost postfix/smtpd[12698]: disconnect from[]
The third-to-last line is what I'm talking about.

Can anyone shed some light on what's going on?

Old 09-10-2010, 04:28 PM   #2
Senior Member
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
Gmail can be touchy when it comes to spam and what they consider to be legitimate MTA's. Troubles include having a dynamic IP, not having an SPF record, etc. This doesn't seem to be the problem in this case.

I would temporarily change the mapping so that mail isn't automatically sent to your gmail account and then send yourself a message to you gmail account from your domain. Does that get through? If not, I would contact gmail support with the log information and ask them what is going on as you are getting a proper accepted code and queue ID from their server.
Old 09-10-2010, 04:32 PM   #3
LQ Newbie
Registered: Jan 2010
Posts: 29

Original Poster
Rep: Reputation: 0
Interestingly, when I send an e-mail to from an account that's NOT GMail, the message gets forwarded to my GMail account just fine.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] forwarding e-mails to external account e.g persy SUSE / openSUSE 2 05-12-2010 07:20 AM
To restrict a user to send mails only to 3 e-mails IDs using postfix mail server sharath41 Linux - Newbie 2 07-21-2008 08:38 PM
Forwarding on sent mails in sendmail qaiser.ijaz Red Hat 0 09-15-2007 12:07 AM
auto forwarding root mails farhan Linux - Networking 2 10-24-2003 02:00 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:16 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration