Topic: Adding header to intentionally send mail to spam
I have a web server that sends out emails for certain user events, like if a user opts in or hits a contact form. I am implementing certain spam filters in the site itself , and if a contact message is flagged as spam, I want that message to be delivered into my spam box. My mail runs on iredmail. Is there a mail header I can insert that will tell spamassassin that the message has already been flagged as spam and it should be delivered into the spam folder? Some of these requests only use an email address and IP address, and I don't think I can inject the user's IP address for iredmail to block it via an RBL.
Any help is appreciated.
Dan
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.