get a copy of rejected message
Benedict.White at cse-ltd.co.uk
Tue Mar 12 14:19:57 CET 2019
I don't believe that is possible.
Postfix has to accept the message (and close the connection to the SMTP client) before the email gets to AmavisD.
As such a rejection message to the client (as opposed to an NDR) isn't possible once it has been passed to AmavisD.
Legal Disclaimer: This message and any attachment may be confidential and privileged. If you are not the intended recipient please notify the sender and delete this e-mail and any attachment from your system. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. All information given in this e-mail is provided in good faith but not binding for legal reasons.
From: amavis-users [mailto:amavis-users-bounces+benedict.white=cse-ltd.co.uk at amavis.org] On Behalf Of Patrick Proniewski
Sent: 12 March 2019 13:10
To: amavis-users at amavis.org
Subject: get a copy of rejected message
I'm using amavisd as a before-queue-content-filter with postfix, so that I can reject immediately spams before they enter the mail queue. I'm pretty sure it's not possible, but decided to ask anyway in case I'm wrong :)
-> is it possible to tell amavisd to reject the message AND to send a copy of it to a dedicated address?
That would be like quarantine to an email address but with reject status to the smtp client.
More information about the amavis-users