Dont send back attachments when rejecting e-mail

gramzon

Active Member
Dec 4, 2017
34
5
58
Croatia
cPanel Access Level
Root Administrator
I have an Exim transport set up for ESET Mail Scanner which I have set up to reject e-mails with password protected files.
When an e-mail is rejected the mailer-daemon sends back this message along with all the attachments in the e-mail.

Code:
This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  [email protected]
    local delivery failed
The problem here is if the e-mail is sent to another user within the same host, the e-mail will be stuck in the mail delivery queue.
Eg:
- [email protected] sends a password protected file to [email protected]
- e-mail to [email protected] is rejected and mailer-daemon sends reject message back to [email protected]
- since the reject e-mail contains the original attachments, reject message to [email protected] is again rejected
- now the reject message is frozen in the mail delivery queue

Is it possible to configure Exim to not send back attachments with the reject message?
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
I'm not sure whether or not this is possible without stripping the attachment during the initial processing. The best place to ask this though would be the exim users mailing list here: Mailing lists for Exim