Re: Reject large emails
Hi, Set maxmessagesize in imapd.conf Quoting Nikos Gatsis [EMAIL PROTECTED]: Hello list. Is it possible with cyrus to reject emails with large attachments and inform the sender for the rejection? Thank you Nikos Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html M.Menge Tel.: (49) 7071/29-70316 Universitaet Tuebingen Fax.: (49) 7071/29-5912 Zentrum fuer Datenverarbeitung mail: [EMAIL PROTECTED] Waechterstrasse 76 72074 Tuebingen smime.p7s Description: S/MIME krytographische Unterschrift Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Reject large emails
Hello list. Is it possible with cyrus to reject emails with large attachments and inform the sender for the rejection? Thank you Nikos Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Reject large emails
Does cyrus send a rejection message to the sender? Michael Menge wrote: Hi, Set maxmessagesize in imapd.conf Quoting Nikos Gatsis [EMAIL PROTECTED]: Hello list. Is it possible with cyrus to reject emails with large attachments and inform the sender for the rejection? Thank you Nikos Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html M.Menge Tel.: (49) 7071/29-70316 Universitaet Tuebingen Fax.: (49) 7071/29-5912 Zentrum fuer Datenverarbeitung mail: [EMAIL PROTECTED] Waechterstrasse 76 72074 Tuebingen Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html -- *Γατσής Νίκος - Gatsis Nikos* Web developer tel.: 2108256721 - 2108256722 fax: 2108256712 email: [EMAIL PROTECTED] http://www.qbit.gr Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Cyradm - bug or incorrect settings ?
Hello all! I have problem with connecting to cyrus via cyradm. This my configuration: === from imapd.conf === virtdomains: userid defaultdomain: cub.org.ua loginrealms: cub.org.ua home.cub.org.ua sasl_pwcheck_method: auxprop sasl_auxprop_plugin: sql sasl_mech_list: PLAIN sasl_sql_engine: sqlite sasl_sql_database: /etc/sasldb2.sqlite sasl_sql_select: select password from sasl_users where username = '%u' and domain='%r' === end imapd.conf === === from sasldb2.sqlite === # echo select username, domain, password from sasl_users; | sqlite /etc/sasldb2.sqlite cyrus||MailAdmin cyrus|cub.org.ua|MailAdmin # === end sasldb2.sqlite === === from host command line === # hostname hosting # hostname -f hosting.cub.org.ua # ls -la /etc/sasldb2.sqlite -rw-rw 1 cyrus sasl 4096 2008-02-12 18:25 /etc/sasldb2.sqlite # === end of host command line === === try to connect === # cyradm --user [EMAIL PROTECTED] localhost IMAP Password: at /usr/lib/perl5/Cyrus/IMAP/Admin.pm line 119 cyradm: cannot authenticate to server as [EMAIL PROTECTED] # === end of try === === errors in log === == /var/log/auth.log == Feb 12 18:27:10 hosting cyrus/imap[9940]: sql auxprop plugin using sqlite engine Feb 12 18:27:10 hosting perl: No worthy mechs found Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin Parse the username cyrus Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin try and connect to a host Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin trying to open db '/etc/sasldb2.sqlite' on host 'localhost' Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin Parse the username cyrus Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin try and connect to a host Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin trying to open db '/etc/sasldb2.sqlite' on host 'localhost' Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin Parse the username cyrus Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin try and connect to a host Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin trying to open db '/etc/sasldb2.sqlite' on host 'localhost' Feb 12 18:27:14 hosting cyrus/imap[9940]: begin transaction Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin: unable to open database file Feb 12 18:27:14 hosting cyrus/imap[9940]: Unable to begin transaction Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin create statement from userPassword cyrus hosting Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin doing query select password from sasl_users where username = 'cyrus' and domain='hosting'; == /var/log/syslog == Feb 12 18:27:16 hosting cyrus/master[9803]: process 9940 exited, signaled to death by 11 Feb 12 18:27:16 hosting cyrus/master[9803]: service imap pid 9940 in BUSY state: terminated abnormally === end of errors === And finally, my questions: 1) why cyradm tries hosting realm, instead of cub.org.ua ? This is bug or my mistake ? 2) from where coming sql plugin: unable to open database file error ? Btw, if I create entry in database with domain == hosting - all things work correctly (except ignoring cub.org.ua realm). I'm using Debian Etch, and all software installed from stable branch (cyrus is 2.2.13-10 and sasl2 is 2.1.22.dfsg1-8). -- Sincerely yours, Oleg Kostyuk (CUB-UANIC) Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Cyradm - bug or incorrect settings ?
On Feb 12, 2008 10:32 PM, Oleg Kostyuk [EMAIL PROTECTED] wrote: Hello all! I have problem with connecting to cyrus via cyradm. This my configuration: === from imapd.conf === virtdomains: userid defaultdomain: cub.org.ua loginrealms: cub.org.ua home.cub.org.ua sasl_pwcheck_method: auxprop sasl_auxprop_plugin: sql sasl_mech_list: PLAIN sasl_sql_engine: sqlite sasl_sql_database: /etc/sasldb2.sqlite sasl_sql_select: select password from sasl_users where username = '%u' and domain='%r' === end imapd.conf === === from sasldb2.sqlite === # echo select username, domain, password from sasl_users; | sqlite /etc/sasldb2.sqlite cyrus||MailAdmin cyrus|cub.org.ua|MailAdmin # === end sasldb2.sqlite === === from host command line === # hostname hosting # hostname -f hosting.cub.org.ua # ls -la /etc/sasldb2.sqlite -rw-rw 1 cyrus sasl 4096 2008-02-12 18:25 /etc/sasldb2.sqlite # === end of host command line === === try to connect === # cyradm --user [EMAIL PROTECTED] localhost IMAP Password: at /usr/lib/perl5/Cyrus/IMAP/Admin.pm line 119 cyradm: cannot authenticate to server as [EMAIL PROTECTED] # === end of try === === errors in log === == /var/log/auth.log == Feb 12 18:27:10 hosting cyrus/imap[9940]: sql auxprop plugin using sqlite engine Feb 12 18:27:10 hosting perl: No worthy mechs found Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin Parse the username cyrus Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin try and connect to a host Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin trying to open db '/etc/sasldb2.sqlite' on host 'localhost' Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin Parse the username cyrus Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin try and connect to a host Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin trying to open db '/etc/sasldb2.sqlite' on host 'localhost' Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin Parse the username cyrus Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin try and connect to a host Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin trying to open db '/etc/sasldb2.sqlite' on host 'localhost' Feb 12 18:27:14 hosting cyrus/imap[9940]: begin transaction Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin: unable to open database file Feb 12 18:27:14 hosting cyrus/imap[9940]: Unable to begin transaction Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin create statement from userPassword cyrus hosting Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin doing query select password from sasl_users where username = 'cyrus' and domain='hosting'; == /var/log/syslog == Feb 12 18:27:16 hosting cyrus/master[9803]: process 9940 exited, signaled to death by 11 Feb 12 18:27:16 hosting cyrus/master[9803]: service imap pid 9940 in BUSY state: terminated abnormally === end of errors === And finally, my questions: 1) why cyradm tries hosting realm, instead of cub.org.ua ? This is bug or my mistake ? can you make a # grep localhost /etc/hosts Do you have hosting on this line too ? 2) from where coming sql plugin: unable to open database file error ? Can you try a # chmod 666 /etc/sasldb2.sqlite just for testing ? Btw, if I create entry in database with domain == hosting - all things work correctly (except ignoring cub.org.ua realm). I'm using Debian Etch, and all software installed from stable branch (cyrus is 2.2.13-10 and sasl2 is 2.1.22.dfsg1-8). -- Sincerely yours, Oleg Kostyuk (CUB-UANIC) Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html -- Alain Spineux aspineux gmail com May the sources be with you Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: cyrus-murder: backend and frontend/proxy on the same machine?
Hello all. I must conclude that all combined configurations of Cyrus Murder servers do not work. Or, more exactly, I did not manage to make them work despite of many hours of tests and meditation. frontend+backend combination (aka config: unified) seems to be completely broken. It is really unable to distinguish local and remote mailboxes in the single combined database and pushes everything back to master, with endless database growth. I wrote about it few weeks ago in same thread. frontend+master combination behaves much better. Nearly all things work fine: folder access, folder renaming, sieve access. The only broken thing is subfolder mailbox creation; any user-level Create command at a frontend is not forwarded to a backend but is denied instantly with Invalid partition diagnostics. Basic debugging shows that the partition is really invalid because proxyd tries to interpret a networked server!partition path as a local partition name and to find this name in local imapd.conf. Feb 11 12:58:05 mail imap[18506]: Partition pharmacy.office.rct-int!default Feb 11 12:58:05 mail imap[18506]: IOERROR: creating directory (null): Permission denied So, it looks like that the only working solution is based on -C option and virtual interfaces or other tricks. If we really need to combine functions in one box, we should use different imapd*.conf and different configdirectory: for all three instances - frontend, backend and master. After that everything works fine. My setup: Master+Frontend: two indepentent mupdate instances, one imapd. SERVICES { mupdate_master cmd=/usr/local/cyrus/bin/mupdate -m -C /etc/imap_master.conf listen=10.0.0.2:3905 prefork=1 mupdate cmd=/usr/local/cyrus/bin/mupdate -C /etc/imap_frontend.conf listen=10.0.0.4:3905 prefork=1 imapcmd=/usr/local/cyrus/bin/proxyd -s -C /etc/imap_frontend.conf listen=imaps prefork=2 sieve cmd=timsieved -C /etc/imap_frontend.conf listen=10.0.0.4:sieve prefork=0 maxchild=100 } Frontend+backend: two independent imapd instances, one mupdate. SERVICES { imapcmd=imapd -p 2 listen=10.0.4.1:imap prefork=3 maxchild=200 imaps cmd=proxyd -s -C /etc/imap_frontend.conf listen=imaps prefork=1 maxchild=100 mupdate cmd=mupdate -C /etc/imap_frontend.conf listen=10.0.4.1:3905 prefork=1 lmtpcmd=lmtpd -a listen=10.0.4.1:24 prefork=0 maxchild=20 } Tested with Thunderbird and Squirrelmail clients. NB: In this specific setup lmtp does not use murder capabilities because MTA always knows exact backend from LDAP directory. And the whole purpose of Murder is to join shared folders from different servers and locations into one list in one IMAP account. No any load balance, etc. Alexey Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Murder: top-level mailbox migration
Hello. 12.02.2008 15:52, Michael Menge пишет: Hi, Is allowusermoves: 1 in imapd.conf? Surely no. Thank you! Alexey Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: fosdem
Rudy Gevaert wrote: Hi, Any anybody who is using cyrus heading to Fosdem (that's in Brussels, Belgium)? http://www.fosdem.org If so, maybe we can have an informal meet. Hi, As some people have replied. Maybe we can have lunch the Saturday? Between 12 and 14. Please reply of list to me if you still interested. Rudy -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Rudy Gevaert [EMAIL PROTECTED] tel:+32 9 264 4734 Directie ICT, afd. Infrastructuur ICT Department, Infrastructure office Groep SystemenSystems group Universiteit Gent Ghent University Krijgslaan 281, gebouw S9, 9000 Gent, Belgie www.UGent.be -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Reject large emails
--On 12 February 2008 12:16:27 +0200 Nikos Gatsis [EMAIL PROTECTED] wrote: Does cyrus send a rejection message to the sender? I expect that would be the responsibility of the delivering MTA. Michael Menge wrote: Hi, Set maxmessagesize in imapd.conf Quoting Nikos Gatsis [EMAIL PROTECTED]: Hello list. Is it possible with cyrus to reject emails with large attachments and inform the sender for the rejection? Thank you Nikos Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html M.Menge Tel.: (49) 7071/29-70316 Universitaet Tuebingen Fax.: (49) 7071/29-5912 Zentrum fuer Datenverarbeitung mail: [EMAIL PROTECTED] Waechterstrasse 76 72074 Tuebingen Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html -- Ian Eiloart IT Services, University of Sussex x3148 Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Reject large emails
--On Tuesday, February 12, 2008 10:58 +0200 Nikos Gatsis [EMAIL PROTECTED] wrote: Hello list. Is it possible with cyrus to reject emails with large attachments and inform the sender for the rejection? As stated, normally done at the MTA level. But note also, normally done by total message size, not attachment size. If you have to analyze mime parts and measure the size of each one, half the battle is lost already, that is the sender already transmitted the large message and you had to store it in a spool file and parse it. At MTA level, if you and the sender both use ESMTP, your MTA can state its maximum message size in the ehlo response, and the sender's MTA can see that and not even send the message. That is the best outcome. If the sender does not use ESMTP, it wastes time sending the entire message, but you can still reject quickly. The sender's MTA will create the bounce notice, or do whatever else it does when mail can't be delivered. The Cyrus system should not send a bounce. It should only accept or reject, and the sending MTA should handle notifying the sender. Joseph Brennan Columbia University Information Technology Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Murder: top-level mailbox migration
Hi, Is allowusermoves: 1 in imapd.conf? Quoting Alexey Lobanov [EMAIL PROTECTED]: Hello all. A simple stupid question. Does anyone know if Cyrus 2.3 *really* can move mailboxes from one server to another in accordance with install-murder.html manual? pharmacy.rct-int rename user.test user.test imap.office.rct-int renamemailbox: Operation is not supported on mailbox Alexey Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html M.Menge Tel.: (49) 7071/29-70316 Universitaet Tuebingen Fax.: (49) 7071/29-5912 Zentrum fuer Datenverarbeitung mail: [EMAIL PROTECTED] Waechterstrasse 76 72074 Tuebingen smime.p7s Description: S/MIME krytographische Unterschrift Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Reject large emails
2008/2/12 Nikos Gatsis [EMAIL PROTECTED]: First, this is the king of stuff you should setup at SMTP level to reject the message before it enter the server. Does cyrus send a rejection message to the sender? No, cyrus cannot send such a message. When a system accept an email via SMTP or LMTP protocol, this is its responsibility to warn the sender if it cannot handle it further! If it choose to reject it, this is then the responsibility of the system that connected to it. Then look your SMTP documentation. Regards. Michael Menge wrote: Hi, Set maxmessagesize in imapd.conf Quoting Nikos Gatsis [EMAIL PROTECTED]: Hello list. Is it possible with cyrus to reject emails with large attachments and inform the sender for the rejection? Thank you Nikos Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html M.Menge Tel.: (49) 7071/29-70316 Universitaet Tuebingen Fax.: (49) 7071/29-5912 Zentrum fuer Datenverarbeitung mail: [EMAIL PROTECTED] Waechterstrasse 76 72074 Tuebingen Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html -- Γατσής Νίκος - Gatsis Nikos Web developer tel.: 2108256721 - 2108256722 fax: 2108256712 email: [EMAIL PROTECTED] http://www.qbit.gr Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html -- Alain Spineux aspineux gmail com May the sources be with you Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Murder: top-level mailbox migration
Hello all. A simple stupid question. Does anyone know if Cyrus 2.3 *really* can move mailboxes from one server to another in accordance with install-murder.html manual? pharmacy.rct-int rename user.test user.test imap.office.rct-int renamemailbox: Operation is not supported on mailbox Alexey Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Non-ASCII chars in MAIL FROM envelope
Hi, Running postfix as an MTA I have the problem that postfix accepts mail with non-ASCII chars in MAIL FROM envelope and cyrus-imapd's lmtpd rejects them with 501 5.5.4 Syntax error in parameters. From what I understand 8bit envelopes are allowed according to newer RFC's and I'm wondering if it's correct that cyrus-imapd blocks them if they are found in MAIL FROM, not RCPT TO? I know it's possible to use check_sender_access in postfix to stop those mails from being accepted, but it seems it could still block legitimate mails despite that fact that those from adresses may be 99.9% spam. How do others deal with this issue? Thanks, Simon Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html