1

Topic: wblist auto add sent to address

==== 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?DL Installer
- Linux/BSD distribution name and version: Centos 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MYSQL
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro?No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
I was considering setting up my account to allow inbound from whitelist only.
My question is:
Is there a way through script or otherwise to automatically add the recipient address of my outbound mail to my inbound whitelist.
If a script,  could you tell me the best place to implement this on outbound mail.

I apologize if this has been asked before, I had searched for it but didn't find the answer.

----

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

2

Re: wblist auto add sent to address

iRedAPD ships plugin "whitelist_outbound_recipient" for this purpose.
You can find some default settings in /opt/iredapd/libs/default_settings.py, if you want to tune any of them, please copy the parameter to /opt/iredapd/settings.py and set proper value. Retsarting iredapd service is required after changed settings.

3

Re: wblist auto add sent to address

ZhangHuangbin wrote:

iRedAPD ships plugin "whitelist_outbound_recipient" for this purpose.
You can find some default settings in /opt/iredapd/libs/default_settings.py, if you want to tune any of them, please copy the parameter to /opt/iredapd/settings.py and set proper value. Retsarting iredapd service is required after changed settings.

I have attempted this but it seems to be for greylisting only, I was trying to whitelist into amavisd.wblist, amavisd.mailaddr
or am I missing something?

4

Re: wblist auto add sent to address

jwelstead wrote:
ZhangHuangbin wrote:

iRedAPD ships plugin "whitelist_outbound_recipient" for this purpose.
You can find some default settings in /opt/iredapd/libs/default_settings.py, if you want to tune any of them, please copy the parameter to /opt/iredapd/settings.py and set proper value. Retsarting iredapd service is required after changed settings.

I have attempted this but it seems to be for greylisting only, I was trying to whitelist into amavisd.wblist, amavisd.mailaddr
or am I missing something?

Perhaps some automation with script /opt/iredapd/tools/wblist_admin.py using sender and reciever address?

5

Re: wblist auto add sent to address

Feel free to improve the "whitelist_outbound_recipient" plugin to whitelist it. PR is welcome. smile