邮件中文乱码:
1.png

检查源码,发现编码是:ANSI_X3.4-1968
2.2.png

手动切换编码为UTF-8,中文正常显示:
3.png

但不能每次都手动切换,看看邮件原始文件发现omv用的是postfix,用FileZilla通过SFTP修改文件:/etc/postfix/main.cf,把最后一行的“smtputf8_enable = no”改成
smtputf8_enable = yes
~~
然后用putty连进omv,输入"postfix reload"重新读取下配置文件main.cf就可以了:

4.png

参考链接:
Enabling Postfix SMTPUTF8 support
http://www.postfix.org/SMTPUTF8_README.html#enabling

更新:
发送上面的修改无效后,我找到了真正的解决方法:
打开/etc/clamav/virusevent.d/10mail

  /usr/bin/mail -s "VIRUS ALERT: ${CLAM_VIRUSEVENT_VIRUSNAME}" ${OMV_CLAMAV_CLAMD_VIRUSEVENT_RECIPIENT} <<EOF
A virus has been detected: ${CLAM_VIRUSEVENT_FILENAME}

的mail后面增加一行:-a "Content-Type: text/plain; charset=UTF-8",即变成

    /usr/bin/mail  -a "Content-Type: text/plain; charset=UTF-8" -s "VIRUS ALERT: ${CLAM_VIRUSEVENT_VIRUSNAME}" ${OMV_CLAMAV_CLAMD_VIRUSEVENT_RECIPIENT} <<EOF
A virus has been detected: ${CLAM_VIRUSEVENT_FILENAME}

终于可以了

5.png