Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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: is hosted on Linode. sends an email to

the mail is forwarded to

my email hosting ( sees it's spam and sends a message to 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 and the original sender is correctly identified.

share|improve this question

The solution is not to forward the mail.

share|improve this answer

You need to tell about the forwarding so they can add it to their list of "trusted domains".

Read this: and (particularly TrustedRelays is very clear)

The issue is, they don't know that your linode isn't the source of the spam. Everything past the first untrusted host could be lies inserted by the spammer - which is why spam handling software ignores every Received header other than the ones it knows were added by hosts under the control of, or trusted by, the final destination.

If they won't do it for you - then sorry, mailq is right. Don't do that.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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