php Dovecot筛过滤器不工作

8zzbczxx  于 2023-11-16  发布在  PHP
关注(0)|答案(2)|浏览(137)

我有一个问题,dovecot-sieve是不为我工作从Roundcube内。在Roundcube网络界面的过滤器选项卡以及度假选项卡。我可以编辑,保存,启用和禁用过滤器刚刚好,但尽管度假过滤器被启用和设置为正确的日期(S),没有消息被发送。我可以从接口内发送刚刚好时,从Roundcube内创建HTML消息,这个问题似乎只是筛开始度假信息。据我所知,(不太擅长这种事情),我应该有一切正确设置.请参阅我的简历下面,我只包括适当的代码片段:
/etc/dovecot/conf.d/90-sieve.conf:

plugin {
 sieve = ~/.dovecot.sieve
 sieve = ~/.dovecot.sieve
 sieve_global_dir = /var/lib/dovecot/sieve/
 sieve_before          = /etc/dovecot/common.sieve
 sieve_extenesions = +vacation
}

字符串
/etc/dovecot/conf.d/20-managesieve.conf:

protocols = $protocols sieve

service managesieve-login {
 inet_listener sieve {
    port = 4190
  }


/etc/dovecot/dovecot.conf:

protocols = imap pop3 lmtp sieve imaps


/var/website.com/plugins/managesieve/config.inc.php:

$config['managesieve_port'] = 4190;
$config['managesieve_host'] = 'localhost';
$config['managesieve_auth_type'] = null;
$config['managesieve_auth_cid'] = null;
$config['managesieve_auth_pw'] = null;
$config['managesieve_usetls'] = false;
$config['managesieve_default'] = '/etc/dovecot/sieve/global';
$config['managesieve_script_name'] = 'managesieve';
$config['managesieve_replace_delimiter'] = '';
$config['managesieve_disabled_extensions'] = array();
$config['managesieve_debug'] = true;
$config['managesieve_kolab_master'] = false;
$config['managesieve_filename_extension'] = '.sieve';
$config['managesieve_filename_exceptions'] = array();
$config['managesieve_domains'] = array();
$config['managesieve_vacation'] = 1;
$config['managesieve_notify_methods'] = array('mailto');


/var/website.com/config/config.inc.php:

$config['plugins'] = array('managesieve','jqueryui');
$config['smtp_server'] = 'localhost';
$config['default_host'] = 'localhost';
$config['force_https'] = true;


另外,我也可以看到它在端口4190上运行:

#netstat -tunlp | grep :4190 
tcp        0      0 0.0.0.0:4190            0.0.0.0:*               LISTEN      11214/dovecot        
tcp6       0      0 :::4190                 :::*                    LISTEN      11214/dovecot

lb3vh1jj

lb3vh1jj1#

我也有同样的问题。我已经为LDA配置了mail_plugins,但实际上是在使用LMTP!一旦我为LMTP配置了mail_plugins = $mail_plugins筛选,假期消息就开始了。

xmjla07d

xmjla07d2#

Dovecot必须启用LDA或LMTP。请参阅https://doc.dovecot.org/configuration_manual/sieve/troubleshooting/。LMTP是更好的选择。
还可以通过设置mail_debug = yes来启用/etc/dovecot/conf.d/10-logging.conf下的日志记录。然后tail -f /var/log/syslog来跟踪到底发生了什么。

相关问题