Thanks for all your quick and timely responses. We have started using another 
java milter library which helps us quarantine and release mails.
But the problem is using milter, we can quarantine the email, which goes to 
hold queue. To release that email, we have to use postsuper command from 
terminal. We have emulated that in java using Runtime library.
Is there anyway, we can send commands through milter to get list of all 
quarantined emails(in hold queue) and release emails?
We are fine to support postfix code changes to enable these two use cases. I 
would appreciate your help on this.

Regards,
Ranjan

From: Wietse Venema <wie...@porcupine.org>
Date: Monday, 27 June 2022 at 6:17 PM
To: ran...@skurelabs.com <ran...@skurelabs.com>
Cc: Postfix developers <postfix-devel@postfix.org>
Subject: Re: Quarantine message using milter
ran...@skurelabs.com:
> My bad, I don't why I did not receive any email in users group.
> Please allow me to use developers group.  As mentioned by you in
> your earlier email, I don't think milter is quarantining the emails.
> Is there any milter example I can see to know how to quarantining
> emails?

In applications that are based on the Sendmail libmilter library,
the Milter application's xxfi_eom() handler calls the smfi_quarantine()
libmilter function. The libmilter library then sends an SMFIR_QUARANTINE
request to Postfix.

https://elias.rhi.hi.is/milter/smfi_quarantine.html
https://elias.rhi.hi.is/milter/xxfi_eom.htmlo

Similar names are used in Python:
https://pythonhosted.org/pymilter/classMilter_1_1Base.html

And so on.

        Wietse

Reply via email to