Hi Sandy, thanks a lot for the "working in progress" help you are giving me. Below you can see the steps i tryed following your suggestions. Sandy Drobic wrote:
Gianni Socionovo wrote:
Hi Sandy,
Sandy Drobic wrote:
Gianni Socionovo wrote:
if i run sieveshell i got:
/usr/bin/sieveshell -u cyrus -a cyrus 127.0.0.1 connecting to 127.0.0.1 unable to connect to server at /usr/bin/sieveshell line 169
Please try to log in as a mail user, not as mail admin. The account used to log in needs to have a mailbox.
By the way, this has nothing to do with webcyradm. Though you need to get the basic sieveshell function working before you can think about webcyradm.
I got the same error with mailbox users both with extension myuser.mydomain.dom (the way i recorded the users in table accountuser for postfix and cyrus-imap) both with only myuser. With words "webcyradm work great" I meant that postfix, mailbox traffic, imap mailboxes user creation, cyrus imap access to mailboxes, mailboxes quota work all, the only thing doesn't work is sieve and consequently vacation and message filtering.
Okay, let's try to do this step by step. Please verify first, that cyrus is configured to run sieve at all. In /etc/cyrus.conf you should find a line like
SERVICES { ... sieve cmd="timsieved" listen="sieve" prefork=0 ... }
also a netstat -an | grep ":2000" should show, that there is a program listening at Port 2000, preferably on localhost.
Sorry, i am a newbie with cyrus and sieve, but I know what is Sieve and that it listens on port 2000. netstat -an|grep ":2000" results in: tcp 0 0 127.0.0.1:2000 tcp 0 0 xxx.xxx.xxx.xxx:2000 where xxx.xxx.xxx.xxx is my cyrus-imap server IP public address (i only masqueraded it here with xxx.xxx.xxx.xxx) I have two sieve services listening: one public (i need to use it for smartsieve i think) with related /etc/imapd.conf and one on localhost with related /etc/imapd-local.conf (see my previous mail). The same is for cyrus.conf services: # UNIX sockets start with a slash and are put into /var/lib/imap/socket SERVICES { # add or remove based on preferences imap cmd="imapd" listen="xxx.xxx.xxx.xxx:imap" prefork=0 imaplocal cmd="imapd -C /etc/imapd-local.conf" listen="127.0.0.1:imap" prefork=0 ... sieve cmd="timsieved" listen="xxx.xxx.xxx.xxx:sieve" prefork=0 sievelocal cmd="timsieved -C /etc/imapd-local.conf" listen="127.0.0.1:sieve" prefork=0 in etc/services sieve port is well translated in 2000 port number I followed Luc's Howto http://tldp.org/HOWTO/Postfix-Cyrus-Web-cyradm-HOWTO/cyrus-config.html to set entries in cyrus.conf.
a telnet localhost sieve should show something like this:
Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. "IMPLEMENTATION" "Cyrus timsieved v2.2.8" "SASL" "LOGIN PLAIN" "SIEVE" "fileinto reject envelope vacation imapflags notify subaddress relational regex" "STARTTLS" OK
logout OK "Logout Complete" Connection closed by foreign host.
Telnet localhost sieve shows: Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. "IMPLEMENTATION" "Cyrus timsieved v2.2.8" "SIEVE" "fileinto reject envelope vacation imapflags notify subaddress relational regex" OK
logout OK "Logout Complete" Connection closed by foreign host.
I cannot see the row "SASL" "LOGIN PLAIN" though i should (I think i should see MD5 also as results from my entries in imapd.conf and imapd-local.conf below) . This is the main problem i think. In my imapd.conf and imapd-local.conf i have this entry for sasl sasl_pwcheck_method: saslauthd sasl_mech_list: md5
The SASL mechanisms should be the same as those you use to login to Imap.
telnet localhost imap shows: Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. * OK myfully.qualified.hostname Cyrus IMAP4 v.2.2.8 server ready a01 user myuser.mydom.com secretpwd a01 OK User logged in ? logout * BYE LOGOUT received ? OK completed Connection closed by foreign host.
If you have a system user (with login shell) with a mailbox in Cyrus, please login as that user and try to connect to sieveshell with sieveshell localhost (with no additional parameters)
I create a system user (with login shell) with a mailbox in Cyrus. sieveshell localhost returns: connecting to localhost unable to connect to server at /usr/bin/sieveshell line 169
Do you now get a prompt for the password?
Sandy
see you. Gianni //