i have an issue with release from quarantine.
All messages was detected as text/x-mail because of prepending the greylist-header.
Code: Select all
[root@primor 1FFA7600CB.AB28A]# head -5 message
X-Greylist: from auto-whitelisted by SQLgrey-1.8.0
Received: from mail.domain.de (mamail.domain.de [x.x.x.x])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(No client certificate requested)
by relay.domain.de (Postfix) with ESMTPS id 1FFA7600CB
[root@primor 1FFA7600CB.AB28A]# file -bi message
text/x-mail; charset=us-ascii
[root@primor 1FFA7600CB.AB28A]# tail -n +2 message > message2
[root@primor 1FFA7600CB.AB28A]# file -bi message2
message/rfc822; charset=us-ascii
Code: Select all
/var/www/html/mailscanner/functions.php
3460 // We can only release message/rfc822 files in this way.
3461 $cmd = QUARANTINE_SENDMAIL_PATH . ' -i -f ' . MAILWATCH_FROM_ADDR . ' ' . escapeshellarg($to) . ' < ';
3462 foreach ($num as $key => $val) {
3463 if (preg_match('/message\/rfc822/', $list[$val]['type'])) {
Regards
/jk