1

Topic: [iRedAPD] Custom plugin for quarantaine (or queue) mails

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3.2 MARIADB edition
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Debian GNU/Linux 10
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hello,

i'm writing a plugin with a custom whitelist (with a list of approved senders). Is it possible to queue mails or "quarantaine" them somewhere ? The SMTP_ACTIONS available seems only reject or accept mails.

Thanks for your great job !

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: [iRedAPD] Custom plugin for quarantaine (or queue) mails

You can use the FILTER action to send the message to your own content_filter:
http://www.postfix.org/access.5.html

3

Re: [iRedAPD] Custom plugin for quarantaine (or queue) mails

ZhangHuangbin wrote:

You can use the FILTER action to send the message to your own content_filter:
http://www.postfix.org/access.5.html

Thanks for your answer. With the doc you quoted, I would be interested by the "HOLD" function. How can I use it with my iredapd plugin ? The goal is to purpose a web interface to see waiting message, check if it ok, and whitlist the sender.

Thanks again !

4

Re: [iRedAPD] Custom plugin for quarantaine (or queue) mails

I've done what I want just with a simple "return HOLD".

Do you think it's the best way to do what I would like, or perhaps the FILTER method is efficient ?

Thanks