<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi!</p>
<p><br /></p>
<p>Could you try enabling local6.debug channel in syslog, so that you could see additional Sieve debugging information?. Can you then post that log?</p>
<p><br /></p>
<p>Cheers!</p>
<div> </div>
<p><br /></p>
<p>El 2019-02-15 12:32, J Pilfold-Bagwell escribió:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"><span style="white-space: nowrap;">Hi All,</span><br /> <br /> I have a Centos 7 box running with the latest default cyrus install from the Centos 7 repo, i.e. cyrus-imapd-2.4.17-13.el7.x86_64 .<br /> <br /> The problem I have is that sieve doesn't seem to pay any attention to the scripts.  I have sieve running, I can successfully log in to it using sieveshell, create, upload and activate scripts, but they don't seem to be applied to the incoming mail.  First I was trying the vacation and reject scripts so checked that the correct sendmail is in use but it fails on fileinto as well.<br /> <br /> <span style="white-space: nowrap;">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span><br /> <br /> <span style="white-space: nowrap;">imapd.conf looks like this:</span><br /> <br /> <span style="white-space: nowrap;">[root@mail admin]# cat /etc/imapd.conf</span><br /> <span style="white-space: nowrap;">configdirectory: /var/lib/imap</span><br /> <span style="white-space: nowrap;">partition-default: /var/spool/imap</span><br /> <span style="white-space: nowrap;">admins: cyradmin</span><br /> <span style="white-space: nowrap;">sieve_admins: cyradmin</span><br /> <span style="white-space: nowrap;">sievedir: /var/lib/imap/sieve</span><br /> <span style="white-space: nowrap;">sendmail: /usr/sbin/sendmail</span><br /> <span style="white-space: nowrap;">hashimapspool: true</span><br /> <span style="white-space: nowrap;">sasl_pwcheck_method: auxprop</span><br /> <span style="white-space: nowrap;">sasl_auxprop_plugin: sasldb</span><br /> <span style="white-space: nowrap;">sasl_mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5</span><br /> <span style="white-space: nowrap;">allowplaintext: yes</span><br /> <span style="white-space: nowrap;">allowusermoves: yes</span><br /> <span style="white-space: nowrap;">defaultdomain: mail</span><br /> <span style="white-space: nowrap;">lmtp_downcase_rcpt: yes</span><br /> <br /> <span style="white-space: nowrap;">tls_cert_file: /etc/ssl/certs/cyrus-imapd/newcert.pem</span><br /> <span style="white-space: nowrap;">tls_key_file: /etc/ssl/certs/cyrus-imapd/newkey.pem</span><br /> <span style="white-space: nowrap;">tls_ca_file: /etc/ssl/certs/cyrus-imapd/cacert.pem</span><br /> <span style="white-space: nowrap;">tls_ca_path: /etc/ssl/certscyrus-imapd</span><br /> <br /> <span style="white-space: nowrap;">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span><br /> <br /> <span style="white-space: nowrap;">cyrus.conf:</span><br /> <br /> <span style="white-space: nowrap;"># standard standalone server implementation</span><br /> <br /> <span style="white-space: nowrap;">START {</span><br /> <span style="white-space: nowrap;">  # do not delete this entry!</span><br /> <span style="white-space: nowrap;">  recover    cmd="ctl_cyrusdb -r"</span><br /> <br /> <span style="white-space: nowrap;">  # this is only necessary if using idled for IMAP IDLE</span><br /> <span style="white-space: nowrap;">  idled        cmd="idled"</span><br /> <span style="white-space: nowrap;">}</span><br /> <br /> <span style="white-space: nowrap;"># UNIX sockets start with a slash and are put into /var/lib/imap/sockets</span><br /> <span style="white-space: nowrap;">SERVICES {</span><br /> <span style="white-space: nowrap;">  # add or remove based on preferences</span><br /> <span style="white-space: nowrap;">  imap        cmd="imapd" listen="imap" prefork=5</span><br /> <span style="white-space: nowrap;">  imaps        cmd="imapd -s" listen="imaps" prefork=1</span><br /> <span style="white-space: nowrap;">#  pop3        cmd="pop3d" listen="pop3" prefork=3</span><br /> <span style="white-space: nowrap;">#  pop3s        cmd="pop3d -s" listen="pop3s" prefork=1</span><br /> <span style="white-space: nowrap;">  sieve        cmd="timsieved" listen="0.0.0.0:2000" prefork=0</span><br /> <span style="white-space: nowrap;">  sieve         cmd="timsieved" listen="0.0.0.0:4190" prefork=0</span><br /> <span style="white-space: nowrap;">#  managesieve   cmd="timsieved" listen="localhost:4190" prefork=0</span><br /> <br /> <span style="white-space: nowrap;">  # these are only necessary if receiving/exporting usenet via NNTP</span><br /> <span style="white-space: nowrap;">#  nntp        cmd="nntpd" listen="nntp" prefork=3</span><br /> <span style="white-space: nowrap;">#  nntps        cmd="nntpd -s" listen="nntps" prefork=1</span><br /> <br /> <span style="white-space: nowrap;">  # at least one LMTP is required for delivery</span><br /> <span style="white-space: nowrap;">#  lmtp        cmd="lmtpd" listen="lmtp" prefork=0</span><br /> <span style="white-space: nowrap;">  lmtpunix    cmd="lmtpd" listen="/var/lib/imap/socket/lmtp" prefork=1</span><br /> <br /> <span style="white-space: nowrap;">  # this is only necessary if using notifications</span><br /> #  notify    cmd="notifyd" listen="/var/lib/imap/socket/notify" proto="udp" prefork=1<br /> <span style="white-space: nowrap;">}</span><br /> <br /> <span style="white-space: nowrap;">EVENTS {</span><br /> <span style="white-space: nowrap;">  # this is required</span><br /> <span style="white-space: nowrap;">  checkpoint    cmd="ctl_cyrusdb -c" period=30</span><br /> <br /> <span style="white-space: nowrap;">  # this is only necessary if using duplicate delivery suppression,</span><br /> <span style="white-space: nowrap;">  # Sieve or NNTP</span><br /> <span style="white-space: nowrap;">  delprune    cmd="cyr_expire -E 3" at=0400</span><br /> <br /> <span style="white-space: nowrap;">  # this is only necessary if caching TLS sessions</span><br /> <span style="white-space: nowrap;">  tlsprune    cmd="tls_prune" at=0400</span><br /> <br /> <span style="white-space: nowrap;">  # reindex changed mailboxes (fulltext) approximately every three hours</span><br />   squatter1       cmd="/usr/bin/ionice -c idle /usr/lib/cyrus/bin/squatter -s" period=180<br /> <br /> <span style="white-space: nowrap;">  # reindex all mailboxes (fulltext) daily</span><br /> <span style="white-space: nowrap;">  squattera       cmd="/usr/lib/cyrus/bin/squatter" at=0117</span><br /> <span style="white-space: nowrap;">}</span><br /> <br /> <span style="white-space: nowrap;">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span><br /> <br /> <span style="white-space: nowrap;">sieveshell logs in fine:</span><br /> <br /> <span style="white-space: nowrap;">[root@mail admin]# sieveshell --authname=cyradmin --user=testuser1 localhost</span><br /> <span style="white-space: nowrap;">connecting to localhost</span><br /> <span style="white-space: nowrap;">Please enter your password:</span>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">list</blockquote>
mail<br /> <span style="white-space: nowrap;">sieve-test  <- active script</span><br /> <br /> <span style="white-space: nowrap;">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~telnet</span><br /> <br /> <span style="white-space: nowrap;">Telnet login provides:</span><br /> <br /> <span style="white-space: nowrap;">[root@mail admin]# telnet 192.168.0.6 4190</span><br /> <span style="white-space: nowrap;">Trying 192.168.0.6...</span><br /> <span style="white-space: nowrap;">Connected to 192.168.0.6.</span><br /> <span style="white-space: nowrap;">Escape character is '^]'.</span><br /> <span style="white-space: nowrap;">"IMPLEMENTATION" "Cyrus timsieved v2.4.17-Fedora-RPM-2.4.17-13.el7"</span><br /> <span style="white-space: nowrap;">"SASL" "PLAIN LOGIN CRAM-MD5 DIGEST-MD5"</span><br /> "SIEVE" "comparator-i;ascii-numeric fileinto reject vacation imapflags notify envelope relational regex subaddress copy"<br /> <span style="white-space: nowrap;">"STARTTLS"</span><br /> <span style="white-space: nowrap;">"UNAUTHENTICATE"</span><br /> OK<br /> <br /> <span style="white-space: nowrap;">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span><br /> <br /> And this works for both port 2000 and 4190 on all interfaces. LMTP is in use but somewhere, they aren't talking.<br /> <br /> Does anyone have any troubleshooting tips they can feed me or, can anyone see a glaringly obvious error I've made because it's all gone a bit wood for the trees here.<br /> <br /> The logs are huge but if you'd like to see the contents, let me know what you'd like it grep'd for and I'll provide.<br /> <br /> <span style="white-space: nowrap;">Thanks,</span><br /> <br /> Julian<br /> <br /> -- <br /> <span style="white-space: nowrap;">This email is from Borden Grammar School Trust.</span><br /> <br /> <span style="white-space: nowrap;">This email, together with any files transmitted with it, is confidential, and is intended solely for the use of the individual or entity to whom it is addressed. Any unauthorised dissemination or copying of this email or its attachments, and any use or disclosure of any information contained in them, is strictly prohibited, and may also be illegal. If you are not the intended recipient you may not use, disclose, distribute, copy, print or relay this email.</span><br /> <br /> <span style="white-space: nowrap;">Please note that any views expressed by an individual within this email, do not necessarily reflect the views of the Borden Grammar School Trust.</span><br /> <br /> <span style="white-space: nowrap;">Borden Grammar School Trust has taken reasonable precautions to ensure no viruses are present in this email.  The Academy cannot accept responsibility for any loss or damage arising from the use of this email and/or files attached.</span><br /> <br /> <span style="white-space: nowrap;">Registered Office: Borden Grammar School, Avenue of Remembrance, Sittingbourne, Kent ME10 4DB</span><br /> <br /> <span style="white-space: nowrap;">Registered in England: 07827591</span><br /> <br /> <span style="white-space: nowrap;">----</span><br /> <span style="white-space: nowrap;">Cyrus Home Page: <a href="http://www.cyrusimap.org/" target="_blank" rel="noopener noreferrer">http://www.cyrusimap.org/</a></span><br /> <span style="white-space: nowrap;">List Archives/Info: <a href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/" target="_blank" rel="noopener noreferrer">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a></span><br /> <span style="white-space: nowrap;">To Unsubscribe:</span><br /> <span style="white-space: nowrap;"><a href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus" target="_blank" rel="noopener noreferrer">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a></span></div>
</blockquote>
</body></html>