Error:
MailScanner: Attempt to hide real filename extension (document.xml.rel)
This is becuase M$ Office 2007 documents (.docx, .xlsx etc, etc.) seem to be archived XML documents and MailScanner does not like that.
The solution is to put this in filename.rules.conf
allow \.xml\.rel$ - -
allow \.rel$ - -
allow \.docx$ - -
allow \.xlsx$ - -
allow \.xml\d*\.rel$ - -
allow \.x\d+\.rel$ - -
allow [...]
If you have multiple mail relays and are (like me) using postfix and MailScanner here is a (very) simple bash script to cynronize the configs. Just put it in your crontab.
SERVER=server.domain.tld
# Sync files for postfix
/usr/bin/rsync root@$SERVER:/etc/postfix/main.cf /etc/postfix/main.cf
/usr/bin/rsync root@$SERVER:/etc/postfix/relay_domains /etc/postfix/relay_domains
/usr/bin/rsync root@$SERVER:/etc/postfix/relay_recipients /etc/postfix/relay_recipients
/usr/bin/rsync root@$SERVER:/etc/postfix/sender_access /etc/postfix/sender_access
/usr/bin/rsync root@$SERVER:/etc/postfix/transport /etc/postfix/transport
/usr/bin/rsync root@$SERVER:/etc/postfix/virtual /etc/postfix/virtual
# postmap
/usr/sbin/postmap /etc/postfix/relay_domains
/usr/sbin/postmap /etc/postfix/relay_recipients
/usr/sbin/postmap /etc/postfix/sender_access
/usr/sbin/postmap /etc/postfix/transport
/usr/sbin/postmap /etc/postfix/virtual
# sync files [...]