Topic: Bounce ClamAV-intercepted emails back to the originator
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.8
- Linux/BSD distribution name and version: Debian Stretch
- 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.
====
When ClamAV catches a virus in an outbound email message it properly intercepts the message and quarantines the file, and sends a warning message from postmaster@<mydomain> to root@<mydomain>. This is all great, but I would prefer to send the warning message back to the originator of the message rather than the user 'root' (otherwise, with no bounce the user has no way of knowing that the message was intercepted and will never arrive at the destination.)
I found the template for the warning message in /usr/sbin/amavisd-new but I've been unable to figure out how to change the recipient from 'root' to the actual originator of the message. Can anyone help?
TIA for any tips.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.