Linux - SoftwareThis 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.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,334
Rep:
bounce spam
I have an email gateway setup with fetchmail and it works great. spamassassin is also VERY accurate. I get a few false positives and a few spams that make it through but it's rare. So I'd like to know how I can
1) Delete mail that is spam
2) Bounce it, in case it happens to be legit.
For the bounce, I would not want to include the actual spam assassin results, but just the email itself, that way if a spammer actually used a valid return address, he would not know what made it spam. But this is not a big issue since I can always turn off the feature in spam assassin, since I won't be getting spam mail anymore anyway.
So how would I manage to do this, delete and bounce spam? Thanks.
There's no point in bouncing spam: spammers never use a valid return address and bouncing just gets the traffic heavier. Most msg will go off to some poor guy who has nothing to do with it and you'll end up being a spammer yourself :-\
As for deleting spam, i suppose you mua can filter emails with a X-Spam header.
Or you could install procmail and send spam to /dev/null if you're not afraid about false positives.
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,334
Original Poster
Rep:
Yeah I figured procmail could do that, but I just need to know how. I want to bounce it that way if I do get a false positive at least the person will know and ether try again or contact me a different way.
But there's an option to foward mail, so if I make an account and make the home /dev/null and make it foward to that account it will work? I heard the /dev/null in jokes and stuff but never knew it actually worked.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.