Sieve login issue. Please help.

Müfit Eribol hme at onart.com.tr
Thu Sep 22 03:47:44 EDT 2016


Hello,

I am a happy user of cyrus-imapd for years without any major problem 
for  small user base.

Currently, I am having login problem for sieve. I have been trying to 
find the problem for days.

Please find below information about my configuration:

1. Installed software: cyrus-imapd-2.4.17, postfix-2.10.1, 
cyrus-sasl-2.1.26, cyrus-sasl-plain-2.1.26, cyrus-sasl-lib-2.1.26 on 
CentOS 7.

2. Authentication is done through saslauthd, pam and mysql.

3. pwcheck_method: saslauthd, mech_list: plain login

4. There is no problem with login to imapd or smtpd.

5. cyrus.conf

SERVICES {
imaplocal     cmd="imapd -C /etc/imapd-local.conf" 
listen="127.0.0.1:imap" prefork=0
   imaps         cmd="imapd -s" listen="imaps" prefork=1
imapslocal    cmd="imapd -C /etc/imapd-local.conf" 
listen="127.0.0.1:imaps" prefork=0
   sieve         cmd="timsieved" listen="sieve" prefork=0
sievelocal      cmd="timsieved -C /etc/imapd-local.conf" 
listen="127.0.0.1:sieve" prefork=0
   lmtpunix      cmd="lmtpd" listen="/var/lib/imap/socket/lmtp" prefork=1
}

6. imapd.conf

postmaster: postmaster
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
#admins: cyrus
allowanonymouslogin: no
allowplaintext: no
#tls_require_cert: 1
sasl_minimum_layer: 128
servername: mail.xxxxx.com
autocreatequota: 200000
maxmessagesize: 0
reject8bit: 0
munge8bit: 0
quotawarn: 90
timeout: 30
poptimeout: 10
dracinterval: 0
drachost: localhost
sasl_pwcheck_method: saslauthd
sasl_mech_list: PLAIN
sievedir: /var/lib/imap/sieve
sieve_maxscriptsize: 32
sieve_maxscripts: 5
sieve_allowplaintext: 1
sendmail: /usr/sbin/sendmail
tls_cert_file: /etc/pki/tls/certs/imap.pem
tls_key_file: /etc/pki/tls/certs/imap.pem
tls_ca_file: /etc/pki/tls/certs/imap.pem

7. imapd-local.conf

postmaster: postmaster
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: cyrus
allowanonymouslogin: no
allowplaintext: yes
servername: mail.xxxxxx.com
autocreatequota: 1000000
maxmessagesize: 0
reject8bit: no
quotawarn: 90
timeout: 30
poptimeout: 10
dracinterval: 0
drachost: localhost
sasl_pwcheck_method: saslauthd
sasl_mech_list: PLAIN
sievedir: /var/lib/imap/sieve
sieve_maxscriptsize: 32
sieve_maxscripts: 5
sendmail: /usr/sbin/sendmail

8. shell:

[root at server ~]#  sieveshell -u user1 -a user1 localhost
connecting to localhost
unable to connect to server at /usr/bin/sieveshell line 170.

maillog:

Sep 22 10:34:45 server sieve[15050]: Lost connection to client -- exiting

9. shell:

[root at server ~]# telnet localhost sieve
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
"IMPLEMENTATION" "Cyrus timsieved v2.4.17-Fedora-RPM-2.4.17-8.el7_1"
"SASL" ""
"SIEVE" "comparator-i;ascii-numeric fileinto reject vacation imapflags 
notify envelope relational regex subaddress copy"
"STARTTLS"
"UNAUTHENTICATE"
OK

10. When I try to login using smartsieve

maillog:

Sep 22 10:38:32 server sieve[16029]: STARTTLS failed: localhost[127.0.0.1]

I don't understand why STARTTLS is being called when connecting from 
localhost? Is it normal? Obviously, I am doing something wrong.

I would appreciate any help. Thank you.





More information about the Info-cyrus mailing list