I'm getting spam (thanks to NameCheap not properly cloaking my email address), and I'd like to bounce the emails back to the spammers so they think my account doesn't exist. They're not forged From lines, they're web developers who are spamming me looking for work.

I'm an advanced Linux user with my own mail server. Is there some way I can take their message file and tell postfix to bounce it back saying "user does not exist"? Or even if there's some script I can run on Linux or my Mac that doesn't require postfix, that's fine too. Sadly, Mac Mail removed the bounce feature, and apparently you can't even script it anymore in AppleScript like you used to be able to do.


EDIT: Just to be clear, I am specifically looking into how to bounce an email. I don't need any tips on setting up anti-spam, as I already have SpamAssassin, Amavis, and greylistd set up. These services do nothing against real people sending unsolicited email.

  • A quick look reveals a few things to try: techrepublic.com/article/… - it doesn't "bounce" them back because bouncing it back would confirm an email server is at the IP as it's responded. Preventing the initial connection in the first place is where to begin... – Kinnectus Sep 1 '15 at 16:16
  • @BigChris I have a very robust anti-spam system in place. The email itself wasn't spammy enough to trigger SpamAssassin. I'm specifically looking to bounce the email so they take me off their list (hopefully). – ffxsam Sep 1 '15 at 16:21
  • What you want isn't always what the spammer wants... Blocking their attempts at the lowest level should help your cause. What kind of response would you be looking at returning - some sort of email response code, or an email with content? – Kinnectus Sep 1 '15 at 16:25
  • Frankly I don't care what the spammer wants. :) I'm looking to give the effect that they wrote an email address that doesn't exist. – ffxsam Sep 1 '15 at 16:33
  • 1
    @DavidRicherby the OP said the From header is not forged – nKn Sep 1 '15 at 19:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.