Re: Global Sieve scripts?
This example works for me. I use "unixhierarchysep: yes" in my /etc/imapd.conf The sieve filter moves a spam message to the Spam folder. I have the script /usr/lib/cyrus-imapd/scripts/spam-sieve.script. This is the code: require ["fileinto"]; if header :contains "Subject" "[SPAM]" { fileinto "Spam"; } Now I compile the script: > /usr/lib/cyrus-imapd/sievec spam-sieve.script spam-sieve.bc > chmod 600 spam-sieve.* > chown cyrus:mail spam-sieve.* I active this filter everytime I create a mailbox: > more active-filter.sh INITIAL=`echo $1 | cut -c1` NAME=`echo $1 | cut -f1 -d'.'` LASTNAME=`echo $1 | cut -f2 -d'.'` FULLNAME=`echo $NAME"^"$LASTNAME` cd /var/sieve/$INITIAL/ mkdir $FULLNAME chown cyrus:mail $FULLNAME cd /var/sieve/$INITIAL/$FULLNAME/ ln -s /usr/lib/cyrus-imapd/scripts/spam-sieve.bc defaultbc echo "Activated defaultbc filter to $FULLNAME" I hope that this helps you. - ANNA - Anders Norrbring <[EMAIL PROTECTED] se>To Sent by: info-cyrus@lists.andrew.cmu.edu info-cyrus-bounce cc [EMAIL PROTECTED] u.edu Subject Global Sieve scripts? 26/03/2006 17:04 This may be the wrong list to ask in, if so, please point me to the right one. I'm wondering if there's a way to have a "global" sieve script that takes some action on ALL the hosted e-mail addresses on the system? Anders Norrbring Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: perl script for sieve filter
I didn't know this patch although in any case it is not what I need. The sieve filter that I have to activate in the mailboxes is not for creating new folders. My filter moves certain messages to a folder in concrete. The folder always exists because is created when the mailbox is created and the user does not have privileges to erase it. I need this filter active for all the mailboxes. - ANNA - Craig White <[EMAIL PROTECTED] le.com>To Ana Ribas/Upcnet 21/09/2005 18:35 <[EMAIL PROTECTED]> cc info-cyrus@lists.andrew.cmu.edu Subject Re: perl script for sieve filter On Wed, 2005-09-21 at 18:11 +0200, Ana Ribas/Upcnet wrote: > > > > Hi, > > I need to write a perl script to activate automatically a sieve filter > every time I create a new mailbox. > The filter is a sieve script that I have already written and that works > perfectly. > I have not worked too much with the perl language and the > Cyrus::SIEVE::managesieve module man does not help me either. > > Has someone a similar script or some perl code that can I use as guide? why not just use the autosieve patches already created ? http://email.uoa.gr/projects/cyrus/ easier than re-inventing the wheel Craig -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
perl script for sieve filter
Hi, I need to write a perl script to activate automatically a sieve filter every time I create a new mailbox. The filter is a sieve script that I have already written and that works perfectly. I have not worked too much with the perl language and the Cyrus::SIEVE::managesieve module man does not help me either. Has someone a similar script or some perl code that can I use as guide? Thanks. - ANNA - Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: auth against LDAP
Hi, We have configured cyrus with sasl against ldap (all with ssl) in a debian machine and all works fine. We don't use PAM. These are our configurations: Cyrus 2.1.13 --> /usr/cyrus/bin/master & /etc/imapd.conf: ... sasl_pwcheck_method: saslauthd allowplaintext: yes sasl_mech_list: PLAIN tls_ca_file: /var/imap/certs/escert.pem ... SASL 2.1.15 --> /usr/local/sbin/saslauthd -a ldap /usr/local/etc/saslauthd.conf: ldap_servers: ldaps://myserver.upc.es ldap_port: 636 ldap_bind_dn: cn=myuser ,o=upc ldap_bind_pw: xx ldap_filter: (&(cn=%u) (objectclass=person)) ldap_tls_cacert_file: /var/imap/certs/escert.pem OpenLDAP 2.1.22 /etc/openldap/ldap.conf: TLS_CACERT /var/imap/certs/escert.pem Regards. - ANNA - Fred Blaise <[EMAIL PROTECTED] penguin.org> To Sent by: [EMAIL PROTECTED] owner-info-cyrus@ cc lists.andrew.cmu. edu Subject auth against LDAP 29/10/2004 06:02 Hello all I have a regular cyrus install working and an openldap up and running. I am running ubuntu on this machine, but the "real" machine will be debian sarge. I would like to set up cyrus to use ldap. Any pointers? any best way to do it? Links? howtos? :) thanks a lot fred --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: problem with cyradm and ssl
That's all I needed. Now all works fine. Thank you very much. - ANNA - Oleksiy Shostak <[EMAIL PROTECTED] sa.es> To Ana Ribas/Upcnet 18/12/2003 16:54 <[EMAIL PROTECTED]> cc [EMAIL PROTECTED] Subject Re: problem with cyradm and ssl Try allowing unsecure IMAP from localhost: imap cmd="imapd" listen="localhost:imap" prefork=0 See `man cyradm.conf` for details Ana Ribas/Upcnet wrote: >Hello, > >I've configured Cyrus IMAP 2.1.13 and SASL 2.1.15 against an LDAP server >correctly. >All worked fine, just until two days ago when I changed my cyrus.conf for >comment the imap service line because I only want a secure connection >(imaps). >It seemed to be working all very well yet. >But today I've seen that now I have problems running cyradm. I got the >following message: > > > cyradm localhost > cyradm: cannot connect to server > > > >When the imap service without SSL is actived cyradm works perfectly. >Are there any param in the cyradm to specify that I work with SSL? Is >possible to run cyradm with that condition? > >Grateful for any suggestion. >Thanks in advance. > >- ANNA - > > > > >
problem with cyradm and ssl
Hello, I've configured Cyrus IMAP 2.1.13 and SASL 2.1.15 against an LDAP server correctly. All worked fine, just until two days ago when I changed my cyrus.conf for comment the imap service line because I only want a secure connection (imaps). It seemed to be working all very well yet. But today I've seen that now I have problems running cyradm. I got the following message: > cyradm localhost cyradm: cannot connect to server > When the imap service without SSL is actived cyradm works perfectly. Are there any param in the cyradm to specify that I work with SSL? Is possible to run cyradm with that condition? Grateful for any suggestion. Thanks in advance. - ANNA -
Can some users to use only POP3 and other to use IMAP and POP3?
Hi all, I have installed Cyrus IMAP 2.1.13 How can I allow some users to use only POP3 and other to use IMAP and POP3? Any suggestions? Thanks. - ANNA -
Unable to authenticate with LDAPs
Hi, Here I'm another time with my LDAP tests. In this moment my situation is the following one: I've installed this software: Solaris 8 Cyrus IMAP 2.1.13 Cyrus SASL 2.1.15 OpenLDAP 2.1.22 libraries OpenSSL 0.9.6 Saslauthd works fine with ldap authentication against my Lotus Domino eDirectory. My Cyrus IMAP server and my LDAP server aren't in the same machine. Now, in my next step, I can't to authenticate saslauthd with ldaps. I'm sure the CA certificate is correct and my LDAP server accepts SSL connections because I can consult the LDAP directory in another type of clients like Netscape 7 or Explorer 6. This is my /usr/local/etc/saslauthd.conf : #ldap_servers: ldap://myserver.upc.es/ ldap_servers: ldaps://myserver.upc.es/ ldap_bind_dn: cn=UsuariProves1,o=LCX ldap_bind_pw: contrasenya ldap_filter: (&(cn=%u) (objectclass=person)) ldap_tls_cacert_file: /var/imap/certs/escert.cer --> I've tested too with the escert.pem file but the results is the same this is the response when I make the test: > saslauthd -a ldap > testsaslauthd -u usuariproves1 -p contrasenya 0: NO "authentication failed" and the results in the /var/log/auth.log file: Sep 9 13:40:58 delius saslauthd[1260]: [ID 390612 auth.warning] ldap_simple_bind() failed as cn=UsuariProves1,o=LCX (Can't contact LDAP server) Sep 9 13:40:58 delius saslauthd[1260]: [ID 462440 auth.warning] lak_bind() failed Sep 9 13:40:58 delius saslauthd[1260]: [ID 285309 auth.info] do_auth : auth failure: [user=usuariproves1] [service=imap] [realm=] [mech=ldap] [reason=Unknown] Sep 9 13:40:58 delius last message repeated 1 time Sep 9 13:40:58 delius saslauthd[1260]: [ID 286158 auth.warning] Unable to set LDAP_OPT_X_TLS_CACERTFILE (Unknown error). My Domino LDAP directory have the following parameters related with ports: TCP/IP port number: 389 TCP/IP port status: Enabled Authentication options: Name & password: Yes Anonymous: No SSL port number: 636 SSL port status: Enabled Authentication options: Client certificate: No Name & password: Yes Anonymous: No Can someone help me, please? Thanks in advance. - ANNA -
How to relate a mailbox with certain email address
Hi, I'm running Cyrus IMAP 2.1.13 on top of Sendmail. Mail is being delivered from Sendmail into Cyrus using an LMTP unix socket. My users have email addresses like "[EMAIL PROTECTED]" But I use LDAP authentification with their common name "firstname lastname" I haven't problems authenticate them, I've problems sending messages to their address [EMAIL PROTECTED] because incoming messages can't be delivered to the mailboxes. I always receive a returned mail telling me "Mailbox unknown. Either there is no mailbox associated with this name or you do not have authorization to see it." I've tryed to create with cyradm both mailboxes "user/firstname.lastname" and "user/firstname lastname" but anyone works. Too, I created a virtual transport map in Sendmail to map "[EMAIL PROTECTED]" to "[EMAIL PROTECTED]" and creating after the mailbox "user/shortname" Howerver, incoming messages can't be delivered to the mailboxes either for the same reason. What I must do if I need obligatorily the addresses like "[EMAIL PROTECTED]" and the usernames like "firstname lastname"? How I can relate the mailbox with the email address and the username? - ANNA -
Re: cyradm : Auth problem..
I think you must run cyradm as cyrus administrator. Is root the cyrus administrator? Or is the cyrus user the cyrus administrator? - ANNA -
Re: cyradm : Auth problem..
Try: cyradm localhost --auth plain - ANNA - jb <[EMAIL PROTECTED] .dk> To Sent by: [EMAIL PROTECTED] owner-info-cyrus@ cc lists.andrew.cmu. edu Subject cyradm : Auth problem.. 25/07/2003 12:59 Hello ... .AGAIN .. Im following the install-instructions included in the source. now im stuck again.. i can't login via cyradm . When i try : cyradm localhost it whats a password, for some user, guess it's jb, because it returns this error message: Login failed: generic failure at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Admin.pm line 118 cyradm: cannot authenticate to server with as jb what did i miss now ?
problems with secure LDAP
Hi, I've been able to configure saslauthd with ldap authentication against my Lotus Domino eDirectory. My Cyrus IMAP server works fine too. I've created the mailboxes and the users can send and receive mail perfectly. Now, my following step is try to configure saslauthd for secure ldap. And, of course, it's my new problem. My configuration with ldaps is the next one: saslauthd.conf: ldap_servers: ldap://myserver.upc.es:636/ ldap_port: 636 ldap_tls_check_peer: yes ldap_tls_cacert_file: escert.pem ldap_tls_cacert_dir: /var/imap/certs ldap_tls_cert: /var/imap/server.pem ldap_tls_key: /var/imap/server.pem And this is the response when I make the test and the ldapsearch: > saslauthd -a ldap > testsaslauthd -u juanito -p juanito 0: NO "authentication failed" > ldapsearch -v -p 636 -h myserver.upc.es -b "O=lcx" "(cn=usuari proves1)" ldap_init( myserver.upc.es, 636 ) filter pattern: (cn=usuari proves1) returning: ALL filter is: ((cn=usuari proves1)) ldap_result: Can't contact LDAP server The auth.log file results: Jul 24 12:49:52 delius saslauthd[22180]: [ID 285309 auth.info] detach_tty : master pid is: 22180 Jul 24 12:49:52 delius saslauthd[22180]: [ID 285309 auth.info] ipc_init : listening on socket: /var/run/saslauthd/mux Jul 24 12:50:22 delius saslauthd[22181]: [ID 286158 auth.warning] Unable to set LDAP_OPT_X_TLS_CACERTFILE (Unknown error). Jul 24 12:50:22 delius saslauthd[22181]: [ID 948958 auth.warning] Unable to set LDAP_OPT_X_TLS_CACERTDIR (Unknown error). Jul 24 12:50:22 delius saslauthd[22181]: [ID 809616 auth.warning] Unable to set LDAP_OPT_X_TLS_REQUIRE_CERT (Unknown error). Jul 24 12:50:22 delius saslauthd[22181]: [ID 390630 auth.warning] Unable to set LDAP_OPT_X_TLS_CERTFILE (Unknown error). Jul 24 12:50:22 delius saslauthd[22181]: [ID 621624 auth.warning] Unable to set LDAP_OPT_X_TLS_KEYFILE (Unknown error). Jul 24 12:51:23 delius imapd[22194]: [ID 702911 auth.warning] Could not find a dlname line in .la file: libotp.la Jul 24 12:55:22 delius saslauthd[22181]: [ID 390612 auth.warning] ldap_simple_bind() failed as anonymous (Can't contact LDAP server) Jul 24 12:55:22 delius saslauthd[22181]: [ID 462440 auth.warning] lak_bind() failed Jul 24 12:55:22 delius saslauthd[22181]: [ID 285309 auth.info] do_auth : auth failure: [user=juanito] [service=imap] [realm=] [mech=ldap] [reason=Unknown] I'm sure the path and name of certificates are correct, but saslauthd seems unable to set them and I don't know why. When I compiled SASL 2.1.15 , days ago, I included the option --with-openssl=/usr/local/ssl What I can do now? Thanks in advance. - ANNA -
Cyrus IMAP and LDAP
Hi list, Finally, saslauthd works fine with ldap authentication against my Lotus Domino eDirectory. My Cyrus IMAP server and my LDAP server aren't in the same machine. Now, I don't know how to relate the user, that is in the ldap server, with a mailbox that I've created for him with cyradm in the IMAP server. Can anyone tell me what I must to do now? My configuration: saslauthd.conf: ldap_servers: ldap://albinoni.upc.es/ ldap_port: 389 ldap_uidattr: uid > saslauthd -a ldap > > testsaslauthd -u juanito -p juanito 0: OK "Success." imapd.conf: configdirectory: /var/imap defaultpartition: default partition-default: /var/spool/imap admins: cyrus sendmail: /usr/lib/sendmail sasl_pwcheck_method: saslauthd postmaster: cyrus allowanonymouslogin: no allowplaintext: yes servername: delius.upc.es autocreatequota: 10240 reject8bit: no quotawarn: 90 timeout: 30 poptimeout: 10 altnamespace: yes lmtp_overquota_perm_failure: yes duplicatesuppression: yes hashimapspool: true unixhierarchysep: no maxmessagesize: 5012 > ./cyradm delius.upc.es --auth plain Password: IMAP Password: delius.upc.es> lm user.juanito (\HasNoChildren) Thanks. - ANNA -
Re: saslauthd: Can't contact LDAP server
Once commented the line and restarted, the problem has been solved. Thank you. - ANNA - Igor Brezac <[EMAIL PROTECTED]> To 17/07/2003 14:14 Ana Ribas/Upcnet <[EMAIL PROTECTED]> cc [EMAIL PROTECTED] Subject Re: saslauthd: Can't contact LDAP server On Thu, 17 Jul 2003, Ana Ribas/Upcnet wrote: > Hello, > > First of all, here's what I've got: > > Solaris 8 > Cyrus IMAP 2.1.13 > Cyrus SASL 2.1.15 > OpenLDAP 2.1.22 libraries > OpenSSL 0.9.6 > > I run saslauthd with ldap authentication working against > Lotus Domino eDirectory but this is the response when I make the test: > > > ./testsaslauthd -u 0010 -p hola123 > 0: NO "authentication failed" > > This is my /usr/local/etc/saslauthd.conf : > > #ldap_servers: ldap://albinoni.upc.es/ > ldap_servers: ldap://147.83.194.10/ > ldap_bind_dn: o=lcx You are missing ldap_bind_pw or in case of anonymous bind, ldap_bind_dn should not be specified. Based on your ldapsearch example below, comment out ldap_bind_dn, restart saslauthd and try again. > #ldap_search_base: o=LCX > #ldap_auth_method: custom > ldap_port: 389 > ldap_uidattr: uid > #ldap_filter: (&(cn=%u) (objectclass=person)) > > and the results in the /var/log/auth.log file: > > Jul 17 12:46:55 delius saslauthd[27671]: [ID 390612 auth.warning] > ldap_simple_bind() failed as o=lcx (Can't contact LDAP server) > Jul 17 12:46:55 delius saslauthd[27671]: [ID 462440 auth.warning] > lak_bind() failed > Jul 17 12:46:55 delius saslauthd[27671]: [ID 285309 auth.info] do_auth > : auth failure: [user=0010] [service=imap] [realm=] [mech=ldap] > [reason=Unknown] > > I've verified that the Domino server is listening on port 389. > The ldapsearch utility works fine: > > > ldapsearch -v -p 389 -h albinoni.upc.es -b "O=lcx" "(cn=usuari proves10)" > ldap_init( albinoni.upc.es, 389 ) > filter pattern: (cn=usuari proves10) > returning: ALL > filter is: ((cn=usuari proves10)) > CN=Usuari Proves10,O=LCX > cn=Usuari Proves10 > shortname=0010 > uid=0010 > [EMAIL PROTECTED] > objectclass=top > objectclass=person > objectclass=organizationalPerson > objectclass=inetOrgPerson > objectclass=dominoPerson > givenname=Usuari > sn=Proves10 > 1 matches > > Seems that SASL can't contact the LDAP server, but I don't know why. What's > wrong? > > Any pointers would be greatly appreciated! > Thanks. > > > -- Igor
saslauthd: Can't contact LDAP server
Hello, First of all, here's what I've got: Solaris 8 Cyrus IMAP 2.1.13 Cyrus SASL 2.1.15 OpenLDAP 2.1.22 libraries OpenSSL 0.9.6 I run saslauthd with ldap authentication working against Lotus Domino eDirectory but this is the response when I make the test: > ./testsaslauthd -u 0010 -p hola123 0: NO "authentication failed" This is my /usr/local/etc/saslauthd.conf : #ldap_servers: ldap://albinoni.upc.es/ ldap_servers: ldap://147.83.194.10/ ldap_bind_dn: o=lcx #ldap_search_base: o=LCX #ldap_auth_method: custom ldap_port: 389 ldap_uidattr: uid #ldap_filter: (&(cn=%u) (objectclass=person)) and the results in the /var/log/auth.log file: Jul 17 12:46:55 delius saslauthd[27671]: [ID 390612 auth.warning] ldap_simple_bind() failed as o=lcx (Can't contact LDAP server) Jul 17 12:46:55 delius saslauthd[27671]: [ID 462440 auth.warning] lak_bind() failed Jul 17 12:46:55 delius saslauthd[27671]: [ID 285309 auth.info] do_auth : auth failure: [user=0010] [service=imap] [realm=] [mech=ldap] [reason=Unknown] I've verified that the Domino server is listening on port 389. The ldapsearch utility works fine: > ldapsearch -v -p 389 -h albinoni.upc.es -b "O=lcx" "(cn=usuari proves10)" ldap_init( albinoni.upc.es, 389 ) filter pattern: (cn=usuari proves10) returning: ALL filter is: ((cn=usuari proves10)) CN=Usuari Proves10,O=LCX cn=Usuari Proves10 shortname=0010 uid=0010 [EMAIL PROTECTED] objectclass=top objectclass=person objectclass=organizationalPerson objectclass=inetOrgPerson objectclass=dominoPerson givenname=Usuari sn=Proves10 1 matches Seems that SASL can't contact the LDAP server, but I don't know why. What's wrong? Any pointers would be greatly appreciated! Thanks.
ldap authentication failure
Hello, I've installed Cyrus IMAP 2.1.13 and Cyrus SASL 2.13 with OpenLDAP 2.1.22 libraries. When I run saslauthd with shadow mechanism all works fine, but when I tried ldap authentication working against Lotus Domino eDirectory this is the response when I make the test: ./testsaslauthd -u 0010 -p secret 0: NO "authentication failed" This is my /usr/local/etc/saslauthd.conf #ldap_servers: ldap://albinoni.upc.es/ ldap_servers: ldap://147.83.194.10/ ldap_search_base: o=LCX ldap_auth_method: custom ldap_port: 389 ldap_uidattr: uid #ldap_filter: (&(cn=%u) (objectclass=person)) and the /var/log/auth.log Jul 14 10:42:16 delius saslauthd[26139]: [ID 285309 auth.info] do_auth : auth failure: [user=0010] [service=imap] [realm=] [mech=ldap] Seems that SASL can't contact the LDAP server. Can someone help me, please?
Re: cyrus mail list is there anybody out there to help me
If you want your log begins to work change the spaces by tabs between the local6.* and the path in your syslog.conf file
unable to authenticate
Hello list, I've installed cyrus-imapd 2.1.13 and cyrus-sasl 2.1.13, but I am having trouble authenticathing. I don't want to create unix users for every imap user so I'd like to use the sasldb athentication. I'm using Solaris 8 platform. My sasldb is at /etc/sasldb2 and the cyrus user can read the /etc/sasldb2 file. This is my /etc/imapd.conf file: configdirectory: /var/imap defaultpartition: default partition-default: /var/spool/imap admins: cyrus sievedir: /usr/sieve sendmail: /usr/lib/sendmail sasl_pwcheck_method: auxprop sasl_auxprop_plugin: sasldb sasl_sasldb_path: /etc/sasldb2 tls_cert_file: /var/imap/server.pem tls_key_file: /var/imap/server.pem postmaster: ean allowanonymouslogin: no allowplaintext: yes sasl_mech_list: PLAIN servername: delius.upc.es autocreatequota: 1 reject8bit: no quotawarn: 90 timeout: 30 poptimeout: 10 dracinterval: 0 drachost: localhost sieve_maxscriptsize: 32 sieve_maxscripts: 5 altnamespace: yes duplicatesuppression: yes hashimapspool: true unixhierarchysep: yes I've tried to create the cyrus user with saslpasswd2 and it seems to work. The sasldblistusers2 shows: [EMAIL PROTECTED]: userPassword but this is the response when I try to connect using imtest: > imtest -a cyrus -m login localhost S: * OK delius.upc.es Cyrus IMAP4 v2.1.13 server ready C: C01 CAPABILITY S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES IDLE STARTTLS S: C01 OK Completed Please enter your password: C: L01 LOGIN cyrus {7} S: + go ahead C: S: L01 NO Login failed: user not found Authentication failed. generic failure Security strength factor: 0 Am I missing something? Are there something wrong? Any help would be much appreciated. - ANNA -