Release Block Attachments with Sendmail
Posted: 20 Oct 2016 13:47
I've tried searching the site and can't seem to find the answer to my particular situation. I'm trying to test releasing attachments using sendmail but the message never goes out. 127.0.0.1 is already whitelisted, so it's not a problem with the message being re flagged as bad content. The SMTP logs on the Exchange server don't even show a connection from EFA for this message and nothing that I can see in the maillog. Here is the setup for the quarantine:
With this set: (QUARANTINE_USE_SENDMAIL', false) I can receive the attachment but it is breaking the email chain which will cause problems with the email archive service we use.
If I can get this working, we are going to set up EFA on a much larger scale to handle filtering for all of our clients. We like the idea of giving our clients the ability to release their own messages/attachments. Any help would be appreciated.
Code: Select all
/* Quarantine settings */
// The quarantine flag is only available on MailScanner >=4.43
// it will dramtically improved the speed of quarantine operations
// but requires that you use the quarantine_maint.php in place of
// the clean.quarantine script provided with MailScanner.
define('QUARANTINE_USE_FLAG', true);
define('QUARANTINE_DAYS_TO_KEEP', 60);
define('QUARANTINE_MAIL_HOST', '127.0.0.1');
define('QUARANTINE_FROM_ADDR', 'spamfilter@domain.com');
define('QUARANTINE_REPORT_FROM_NAME', 'EFA - Email Filter Appliance');
define('QUARANTINE_REPORT_SUBJECT', 'Message Quarantine Report');
define('QUARANTINE_SUBJECT', 'Message released from quarantine');
define('QUARANTINE_MSG_BODY', 'Please find the original message that was quarantined attached to this mail.
Regards,
Postmaster');
define('QUARANTINE_REPORT_HOSTURL', 'http://'.chop(`hostname`).'/mailscanner/');
define('QUARANTINE_REPORT_DAYS', 7);
// 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', false);
define('QUARANTINE_SENDMAIL_PATH', '/usr/sbin/sendmail');
If I can get this working, we are going to set up EFA on a much larger scale to handle filtering for all of our clients. We like the idea of giving our clients the ability to release their own messages/attachments. Any help would be appreciated.