How to prevent EFA to change the "mail from" address when deliver quarantined messages

Questions and answers about how to do stuff
Post Reply
andregrehs
Posts: 5
Joined: 09 Aug 2017 14:32

How to prevent EFA to change the "mail from" address when deliver quarantined messages

Post by andregrehs »

Hi!

When i choose to deliver quarantined messages to final recipient, the EFA change the original mail from address to no-reply@antispam.example.com, and deliver the original message attached at the e-mail.

How i prevent this?

I want that the EFA, when the admin choose to deliver the quarantined message, deliver the message to recipent as original, without change the mail from address.


MailWatch Version: 1.2.16
Operating System Version: CentOS Linux 7 (Core)
Postfix Version: 3.5.9
MailScanner Version: 5.4.1
ClamAV Version: 0.103.3
SpamAssassin Version: 3.4.6
PHP Version: 7.4.21
MySQL Version: 10.2.30-MariaDB
GeoIP Database Version: No database downloaded
Mail2GoCa
Posts: 31
Joined: 10 Oct 2018 09:11

Re: How to prevent EFA to change the "mail from" address when deliver quarantined messages

Post by Mail2GoCa »

Edit /var/www/html/mailscanner/conf.php and look for the below code and make sure that "QUARANTINE_USE_SENDMAIL" is set to true.

Code: Select all

// Set QUARANTINE_USE_SENDMAIL to true to send released email as original email using sendmail,
// false to send it as an attachment to a release message.
define('QUARANTINE_USE_SENDMAIL', true);
define('QUARANTINE_SENDMAIL_PATH', '/usr/sbin/sendmail');
/* End Quarantine settings */
andregrehs
Posts: 5
Joined: 09 Aug 2017 14:32

Re: How to prevent EFA to change the "mail from" address when deliver quarantined messages

Post by andregrehs »

That's exactly what I needed. Thank you so much for your help. Success on your journey, friend. :clap: :clap: :clap:
User avatar
Aryfir
Posts: 21
Joined: 04 Sep 2020 13:52

Re: How to prevent EFA to change the "mail from" address when deliver quarantined messages

Post by Aryfir »

Login to this forum just to say THANK YOU Mail2GoCa.....Didn't know that the config is in web folder

Regards,
Ary Firman
Post Reply