Page 1 of 1

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

Posted: 23 Aug 2021 14:57
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

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

Posted: 19 Oct 2021 19:04
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 */

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

Posted: 19 Oct 2021 20:06
by andregrehs
That's exactly what I needed. Thank you so much for your help. Success on your journey, friend. :clap: :clap: :clap:

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

Posted: 20 Oct 2021 06:43
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

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

Posted: 23 Apr 2025 16:39
by The_Penguin
Hi all. Does this still apply to MailWatch for MailScanner v1.2.23 running on eFa-5.0.0-11?
I tried it and it didn't change for me unless I missed something. I did restart MailScanner and httpd.

Thanks.

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

Posted: 24 Apr 2025 06:53
by Mail2GoCa
Hi Penguin,

Yes it's still the same.

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 */

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

Posted: 24 Apr 2025 14:49
by The_Penguin
Thanks for the confirmation.
Turns out I missed the existing entry in the file and created a new one.
Corrected that and it's working as desired.

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

Posted: 24 Apr 2025 14:54
by Mail2GoCa
Excellent. Glad you're all set.