Original sender is not correctly identified when spam is forwarded

Posted by Stephan Burlot on Server Fault See other posts from Server Fault or by Stephan Burlot
Published on 2011-01-09T09:54:34Z Indexed on 2012/06/30 21:19 UTC
Read the original article Hit count: 329

Filed under:
|
|
|

I have a forwarding rule with Postfix that forwards all messages to my main email address.

When a spam message is sent to one of my emails, it is forwarded but the sender is shown as being the forwarding domain, not the spammer's domain.

Real example:

mywebsite.com is hosted on Linode.

[email protected] sends an email to [email protected]

the mail is forwarded to [email protected]

my email hosting (anotherwebsite.com) sees it's spam and sends a message to [email protected] and Linode reports a TOS violation.

I have modified my postfix settings so I now use RBL, but if a message goes through, it may happen again.

How can I prevent this to happen again? Is there some settings to change on Postfix so the original sender is correctly identified?

Thanks Stephan

EDIT: The steps I did to prevent this to happen again are:

  • Add RBL checking to Postfix
  • Add postgrey to Postfix
  • And finally fix the MX record which was incorrect.

I checked with a test email on Spamcop.net and the original sender is correctly identified.

© Server Fault or respective owner

Related posts about postfix

Related posts about spam