自安装 MailScanner 以来,Ubuntu Server 14 上的邮件服务器已停止工作

自安装 MailScanner 以来,Ubuntu Server 14 上的邮件服务器已停止工作

我在 Ubuntu Server 14 上安装了邮件服务器:(教程https://www.linuxcbt.com/products_linuxcbt_postfix_edition

1.Postfix + dovecot - 无需 MailScanner 即可正常运行

2.ClamAV-clamd

3.垃圾邮件杀手

4.邮件扫描器

安装 MailScanner 后邮件服务器无法工作。

几年前我在 OpenSuse11 上做过同样的事情,服务器一直运行到今天。在 Ubuntu 上我不知道为什么不想工作。

Ubuntu 和 OpenSuse 之间的区别

在 Ubuntu Server Postfix 配置文件中/etc/postfix/main.cf没有

header_checks = regexp:/etc/postfix/header_checks 

没有文件header_checks

/etc/postfix/header_checks

header_checks = regexp:/etc/postfix/header_checks当我从文件服务器工作中删除该行时main.cf

也许这是一个简单的解决方案,但是.....我不知道?

预先感谢您的帮助

主配置文件

cat main.cf

# is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_cert_file = /etc/ssl/certs/server.crt
smtpd_tls_key_file = /etc/ssl/private/server.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = mantykora.cleoni.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = mantykora.cleoni.com, localhost.cleoni.com, , localhost, cleoni.com
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.1.0/24
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = ipv4

# Wlodek 2016 02 11

home_mailbox = Maildir/
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_local_domain = cleoni.com
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtp_tls_security_level = may
smtpd_tls_security_level = may
smtp_tls_note_starttls_offer = yes
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes

smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_hostname, reject_invalid_hostname  

#Wlodek 2016 02 12 to support MailScanner

header_checks = regexp:/etc/postfix/header_checks

邮件扫描器配置文件我添加了这个https://www.mailscanner.info/postfix/#

%org-name% = Cleoni
%org-long-name% = Cleoni Unix
%web-site% = cleoni.pl

Run As User = postfix
Run As Group = postfix
MTA = postfix

Incoming Queue Dir = /var/spool/postfix/hold
Outgoing Queue Dir = /var/spool/postfix/incoming

Virus Scanners = clamav


Spam List = SBL+XBL


SpamAssassin User State Dir = /var/spool/MailScanner/spamassassin

在此处输入图片描述

相关内容