我已经在Linux上与dovecotconfiguration了一个postfix邮件服务器。 现在问题是当我configurationautoreply它回复两个邮件发件人

我已经在Linux上与dovecotconfiguration了一个postfix邮件服务器。 现在的问题是,当我configurationautoreply它回复两个邮件发件人。 我已经使用了post.php的Perl脚本vacation.pl自动回复邮件给发件人。 我已经configuration过,并在那个时候testing没有问题。 但是在更改数据库结构后,我改变了后缀configuration,dovecotconfiguration和vacation.pl脚本。 因为我认为在数据库查询中没有问题。

当我发送密送给某个用户时,我也遇到同样的问题。 用户将得到两封邮件。 我没有发现它在dovecot中的问题,autoreply。

我的master.cf文件如下所示。

 # ========================================================================== # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (yes) (never) (100) # ========================================================================== smtp inet n - - - - smtpd # -o content_filter=spamfilter:dummy -o content_filter=vacation:dummy -o content_filter=dfilt:dummy vacation unix - nn - - pipe flags=Rq user=vacation argv=/var/spool/vacation/vacation3.pl -f ${sender} -- ${recipient} # flags=Rq user=vacation argv=/usr/bin/perl argv=/var/spool/vacation/vacation.pl -f ${sender} -- ${recipient} pickup fifo n - n 60 1 pickup cleanup unix n - n - 0 cleanup qmgr fifo n - n 300 1 qmgr #qmgr fifo n - n 300 1 oqmgr tlsmgr unix - - n 1000? 1 tlsmgr rewrite unix - - n - - trivial-rewrite bounce unix - - n - 0 bounce defer unix - - n - 0 bounce trace unix - - n - 0 bounce verify unix - - n - 1 verify flush unix n - n 1000? 0 flush proxymap unix - - n - - proxymap proxywrite unix - - n - 1 proxymap smtp unix - - n - - smtp # When relaying mail as backup MX, disable fallback_relay to avoid MX loops relay unix - - n - - smtp -o smtp_fallback_relay= # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 showq unix n - n - - showq error unix - - n - - error retry unix - - n - - error discard unix - - n - - discard local unix - nn - - local virtual unix - nn - - virtual lmtp unix - - n - - lmtp anvil unix - - n - 1 anvil scache unix - - n - 1 scache # #spamassassin unix - nn - - pipe # flags=Rq user=spamd argv=/usr/bin/spamc -u ${user} -e /usr/sbin/sendmail -oi -f ${sender} ${recipient} dovecot unix - nn - - pipe flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/deliver -d ${recipient} #spamfilter unix - nn - - pipe # flags=Rq user=spamfilter argv=/usr/local/bin/spamfilter.sh -f ${sender} -- ${recipient} #spamfilter unix - nn - - pipe # flags=Rq user=vmail argv=/usr/bin/spamc -u ${user}@${domain} -e /usr/sbin/sendmail.postfix -oi -f ${sender} ${recipient} dfilt unix - nn - - pipe flags=Rq user=filterAlt argv=/etc/postfix/disclaimer -f ${sender} -- ${recipient} #vacation unix - nn - - pipe # flags=Rq user=vacation argv=/var/spool/vacation/vacation3.pl -f ${sender} -- ${recipient} 

你可以通过sieve插件做假期回复。 他们还将增加强大的服务器端邮件过滤function。

度假响应者的筛选文件示例:

 require ["fileinto", "vacation"]; vacation # Reply at most once a day to a same sender :days 1 :subject "Out of office reply" # List of additional recipient addresses which are included in the auto replying. # If a mail's recipient is not the envelope recipient and it's not on this list, # no vacation reply is sent for it. :addresses ["j.doe@company.dom", "john.doe@company.dom"] "I'm out of office, please contact Joan Doe instead. Best regards John Doe"; 

请参阅Dovecot筛网页以获取更多信息。

我也遇到过内容filter的问题。 在内容filter修复了发送的多条消息之后添加此行。

 -o receive_override_options=no_address_mappings 

在您的smtp声明中的所有filter之后添加该行,以便它看起来像这样..

 smtp inet n - - - - smtpd # -o content_filter=spamfilter:dummy -o content_filter=vacation:dummy -o content_filter=dfilt:dummy -o receive_override_options=no_address_mappings 

不得不承认,我只用我的spamassassinfilter进行了testing。 让我知道如果它的作品。