Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Currently I have setup Slicehost as my relayhost for mail. Postfix is my MTA. This is how I have configured forwarding:

virtual_alias_maps = hash:/etc/postfix/virtual

my virtual file has: abc@mydomain.com abc@gmail.com

But the mail is being forwarded as spam. In case I send mail directly from abc@mydomain.com to abc@gmail.com it appears in the inbox,but the forwarding results in the mail ending in spam. What could be the problem?

share|improve this question

closed as off-topic by Jenny D, Katherine Villyard, Ward, mdpc, Wesley Apr 16 at 23:37

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions must be relevant to professional system administration. Server Fault is dedicated to professional system and network administrators. End user and enthusiast questions are off-topic (contact your system administrator or hire a professional to help you out). Please see the Help Center for more information." – Jenny D, Katherine Villyard, Ward, mdpc, Wesley
If this question can be reworded to fit the rules in the help center, please edit the question.

4 Answers 4

At first guess, I'd say that joschi is on the right track...what's your $myorigin?

Or, perhaps the output of postconf -n?

share|improve this answer
    
+1, always post "postconf -n" when troubleshooting postfix. –  pauska Nov 14 '09 at 12:20

Your problem could be caused by SPF or similar mechanisms. When your MTA forwards the mails to GMail, the SPF records of the original sender's domain do not match your domain and thus GMail thinks it is spam. The proper solution to this (given SPF is really the problem) would be using SRS.

See the SPF FAQ on forwarding for details. You can also check the SPF records of the incoming mail's domain using the SPF Record Testing Tools.

share|improve this answer
    
Thanks guys I solved the problem. –  Sujay Oct 15 '09 at 21:09

You can look into raw headers at GMail (top right menu -> Show original).

Usually there is a line or two, explaining why Google thinks your message is SPAM, if the problem is in the SPF.

share|improve this answer

You need to use SRS (Sender Rewriting Scheme) to avoid forwarded E-Mails classified as SPAM.

Here's a tutorial on how to setup SRS with postfix on Ubuntu: http://www.ameir.net/blog/archives/71-installing-srs-extensions-on-postfix-ubuntudebian.html

Summarized:

  1. Install pfixtools
  2. Set up the secret file and whitelisted addresses
  3. Add pfixtools to the postfix configuration
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.