W dniu 2017-11-10 o 16:27, James H. Markowitz pisze:
I have not personally used this, but milter-regex documentation says about "quarantine" command:
quarantine <message>
Subsequent matching rules cause the mail to be quarantined in
sendmail(8).
According to Sendmail docs:
Messages quarantined are stored in the sendmail queue (mqueue),
but are not run on normal queue displays or runs unless specifically requested with -qQ
Quarantined queue files are named with an hf prefix instead of a qf prefix.
Restricted mail queue runs and displays can be done based on the quarantined reason using -qQtext.
It seems that it may be not so difficult to process quarantined messages on basis of custom script using file name prefix hf and/or quarantine reason (milter-regex message configured for quarantine action).
Or [my supposition, not knowledge] may sandmail configuration allow storing quarantined messages in dedicated queue with option of processing them with custom mailer?
Piotr