[courier-users] Updating from 1.7.0 to 2.2.1
I am trying to update my courier-imap installation (running under SuSE Linux 8.1) from version 1.7.0 to version 2.2.1. The instructions are clear, there are no error messages during build or compilation, nor when I start the system. The server also responds (to a connection by telnet on port 143), but all login attempts fail. I tried various IMAP clients plus a smal test script written in Python, so I assume it's not the clients' fault (and moreover they all worked fine with 1.7.0. I did check that the authdaemon is started, but I don't see what else I can check or where I can look for information. There doesn't seem to be anything in the system log. Any suggestions? Konrad. -- --- Konrad Hinsen| E-Mail: [EMAIL PROTECTED] Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.56.24 Rue Charles Sadron | Fax: +33-2.38.63.15.17 45071 Orleans Cedex 2| Deutsch/Esperanto/English/ France | Nederlands/Francais --- --- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] IMAP daemon dying
I just wrote about updating to 2.2.1, but perhaps I should explain why I am trying to do so, it may not be a solution to my problem. With 1.7.0, I have always had one minor problem: when accessing several folders in quick succession, the IMAP daemon would die (that's at least what KMail says, Apple Mail simply goes to offline mode). That wasn't too much of a problem until I wanted to go on a longer trip with my laptop and work in offline mode. Any attempt to synchronize all of my folders (around 100) is bound to fail, as I never get beyond the first 20 or so, ususally not beyond the first 5. I tried both Apple Mail and Mozilla (MacOS and Linux), both show the same problem. I found some discussion of this problem on a Mozilla mailing list, and they say it's a problem with courier-imap, without going into details. All I can say is that I do not have such problems with another IMAP account that runs on a Cyrus server. My update attempt was motivated by a desire to get rid of this problem because I need offline mode more and more frequently. Is this a well-known problem? A solved one? Konrad. -- --- Konrad Hinsen| E-Mail: [EMAIL PROTECTED] Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.56.24 Rue Charles Sadron | Fax: +33-2.38.63.15.17 45071 Orleans Cedex 2| Deutsch/Esperanto/English/ France | Nederlands/Francais --- --- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] IMAP daemon dying
Make sure that MAXDAEMONS and MAXPERIP in /etc/courier/imapd are set appropriately. By default courier only allows 4 connections per IP. I know that when using Mail and the limit is too low I get an SSL error and then go offline. On Jan 8, 2004, at 7:00 AM, Konrad Hinsen wrote: I just wrote about updating to 2.2.1, but perhaps I should explain why I am trying to do so, it may not be a solution to my problem. With 1.7.0, I have always had one minor problem: when accessing several folders in quick succession, the IMAP daemon would die (that's at least what KMail says, Apple Mail simply goes to offline mode). That wasn't too much of a problem until I wanted to go on a longer trip with my laptop and work in offline mode. Any attempt to synchronize all of my folders (around 100) is bound to fail, as I never get beyond the first 20 or so, ususally not beyond the first 5. I tried both Apple Mail and Mozilla (MacOS and Linux), both show the same problem. --- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
RE: [courier-users] Seeming issue between SA courier... WAS RE: [SAtalk] RCVD_IN_DYNABLOCK,RCVD_IN_SORBS in 2.61 when sending myself a test message?
Thanks Mirko - I don't want to embarass my sorry regular expression handicapped self, but I'm still confused: Received: from a1200 ([24.83.X.X]) (AUTH: LOGIN [EMAIL PROTECTED]) by bigass1.XXX.com with esmtp; Thu, 08 Jan 2004 00:04:43 + AND if ( $i == 1 ( ! $MATCH =~ /Received: .*\(AUTH: [^)]*\) *by/) ) - /Received: .*\(AUTH: [^)]*\) *by/ So the first .* catches all characters up to the escaped (AUTH: What's the [^)]* do in this case? I thought ^ was the start of a line? I tried rewriting it as: if ( $i == 1 ( ! $MATCH =~ /Received: .*\(AUTH: .*\) *by/) ) AND if ( $i == 1 ( ! $MATCH =~ /Received: .*/) ) But that doesn't seem to match anything - is the Received line converted back to a single line prior to this processing? I would think so, maybe the problem is the if syntax and not the pattern? Any further ideas appreciated. Thanks. m/ -Original Message- From: Mirko Zeibig [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 12:17 AM To: [EMAIL PROTECTED] Cc: Mitch (WebCob) Subject: Re: [courier-users] Seeming issue between SA courier... WAS RE: [SAtalk] RCVD_IN_DYNABLOCK,RCVD_IN_SORBS in 2.61 when sending myself a test message? Mitch (WebCob) said the following on 01/08/2004 01:37 AM: Ok - thanks - that works better for a number of reasons - (I'll post the running verison once I play with it) - by making sure I am testing the first header, I don't need to care about example.com (which is good, cause then I can put the rule in my maildroprc where I call spamassassin from. When I use your original example I get Syntax error after =. # if ( $i == 1 ( ! $MATCH =~ /Received: .*\(AUTH: [^)]*\) I guess you have to escape the parenthese in the square brackets as well: \(AUTH: [^\)]*\) Regards Mirko --- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] IMAP daemon dying
On 08.01.2004, at 17:31, Matthew Wilson wrote: Make sure that MAXDAEMONS and MAXPERIP in /etc/courier/imapd are set appropriately. By default courier only allows 4 connections per IP. I know that when using Mail and the limit is too low I get an SSL error and then go offline. That seems to have been my problem as well, i set the maximum to 100 and everything works fine. I don't worry too much about overload, there are only two users on that server. Thanks, Konrad. --- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] Postfix - MySQL - courierIMAP and Maildrop
Hi, I have a system up and running with Postfix, CourierIMAP and MySQL. All mailboxes are virtual users on different domains. There is also SpamAssassin and Amavis running to mark spam and scan for virusses. I now want to enable mailfiltering (mostly for automatically moving of spam to a separate folder). Maildrop seems to be the right software for this, but I have problems configuring it. Can someone send me, or point me to a howto that describes: - Compiling and configuring MailDrop (especially the location and format of the mysql config file) - Configuration of PostFix for maildrop Thanks, Felix --- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] tricky problem
We have servers installed to handle inbound and outbound mail, behind those servers we have the scanning and filter server. For inbound we use qmail, for outbound courier, installed on the same server (there is a pair of them). All outgoing mail should go through the courier, all incoming mail should go to the qmail part. Now all mx records point to the qmail part (roundrobin). When I try sending a mail via courier, that has a domain that is pointing to us, I get the mail loops back to myself error. I found a way to get around that, I can put the ip-address of the other twin server into esmtproutes for the domains we host, but that is not very elegant. Anyone has a better idea? ev -- File not found. Should I fake it? (Y/N) http://www.evelyn.org --- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] Seeming issue between SA courier... WAS RE: [SAtalk] RCVD_IN_DYNABLOCK,RCVD_IN_SORBS in 2.61 when sending myself a test message?
Mitch (WebCob) wrote: Received: from a1200 ([24.83.X.X]) (AUTH: LOGIN [EMAIL PROTECTED]) by bigass1.XXX.com with esmtp; Thu, 08 Jan 2004 00:04:43 + ... if ( $i == 1 ( ! $MATCH =~ /Received: .*\(AUTH: [^)]*\) *by/) ) ... So the first .* catches all characters up to the escaped (AUTH: Yes. What's the [^)]* do in this case? I thought ^ was the start of a line? When ^ appears as the first character inside [], it means characters not in that set. '[^)]' means characters which are not a ')'. I tried rewriting it as: if ( $i == 1 ( ! $MATCH =~ /Received: .*\(AUTH: .*\) *by/) ) That'll usually accomplish the same, but it'll take longer. It's key to writing fast regexs that you avoid .* as often as you can. But that doesn't seem to match anything - is the Received line converted back to a single line prior to this processing? Should be. The pattern works for me, though the rest of my conditional is different. I would think so, maybe the problem is the if syntax and not the pattern? It's probalby related to the !. You may need an additional set of parens around the $MATCH =! //. Either that, or MATCH doesn't have the whole line, and what you really need is foreach /Received: .*/. --- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] IMAP daemon dying
Make sure that MAXDAEMONS and MAXPERIP in /etc/courier/imapd are set appropriately. By default courier only allows 4 connections per IP. I know that when using Mail and the limit is too low I get an SSL error and then go offline. That seems to have been my problem as well, i set the maximum to 100 and everything works fine. I don't worry too much about overload, there are only two users on that server. no problem. I was having the problem at work, and totally forgot to take into account that all of my users were on the same IP because of NAT. oh well. :) --- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] Postfix - MySQL - courierIMAP and Maildrop
--On Donnerstag, 8. Januar 2004 20:36 +0100 Felix Planjer [EMAIL PROTECTED] wrote: I have a system up and running with Postfix, CourierIMAP and MySQL. All mailboxes are virtual users on different domains. Its called 'virtual _mailbox_', for a good reason. There is also SpamAssassin and Amavis running to mark spam and scan for virusses. I now want to enable mailfiltering (mostly for automatically moving of spam to a separate folder). Postfix/Virtual with Maildrop is a really ugly setup, dont waste your time unless you know exactly what you are doing, for example the aliases wont be case-insensitive anymore because they are (ab)used as lookup-keys for Maildrop. Maildrop seems to be the right software for this, but I have problems configuring it. Can someone send me, or point me to a howto that describes: - Compiling and configuring MailDrop (especially the location and format of the mysql config file) - Configuration of PostFix for maildrop Google for 'postfix maildrop' and be prepared to invest considerable more time than simply replacing postfix (including the sasl-crap) with courier. Postfix can authenicate users _only_ aginst /etc/shadow, no PAM or anything else, while courier contains everything you need out of the box. Postfix is only great as long as you either have every user in /etc/shadow or if you dont want to execute anything at delivery. Roland --- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] SOLVED - avoiding SpamAssassin for locally authenticated users WAS RE: [SAtalk] RCVD_IN_DYNABLOCK,RCVD_IN_SORBS in 2.61 when sending myself a test message?
First thanks Gord for the idea, and the starting point and feedback. Now that the kinks are out I'll publish it here for any it might help and explain the reasoning. SpamAssassin has a variety of black hole tests which it applies to the Received headers. Recent versions are supposed to ignore all but the FIRST header, and only test others... So if you are an adsl home users, as long as you relay THROUGH your SMTP server, you should be fine - but, it fails to address local sends between users, and also, due to a bug: http://bugzilla.spamassassin.org/show_bug.cgi?id=2906 it fails to properly identify courier Received headers, which componds the problem. As an interrum fix, I wanted a way to bypass spamassassin if a locally authenticated user is sending the message to a local user on my system. To do this, I have to test the FIRST Received header and see if it is an AUTH'd user - if so, I bypass spamc: i=1 foreach /Received: .*/ { #echo ASDF4 #echo $MATCH #note echo sends to syslog - good for debugging! if ( $i == 1 ( ! ($MATCH =~ /Received: .*\(AUTH: [^)]*\) *by /))) { xfilter /usr/bin/spamc -U /var/run/spamassassin.sock -u $UI_Email } i=$i+1 } I'll add it to the bug report as a work around in the meantime. Thanks to all. m/ --- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] Postfix - MySQL - courierIMAP and Maildrop
Google for 'postfix maildrop' and be prepared to invest considerable more time than simply replacing postfix (including the sasl-crap) with courier. Postfix can authenicate users _only_ aginst /etc/shadow, no PAM or anything else, while courier contains everything you need out of the box. That's simply UNTRUE. Postfix uses cyrus-sasl or cyrus-sasl2, which can auth from many different sources ( LDAP, SQL, sasldb, passwd, PAM, Kerberos, One-Time-Password schemas...) --- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] Seeming issue between SA courier... WAS RE: [SAtalk] RCVD_IN_DYNABLOCK,RCVD_IN_SORBS in 2.61 when sending myself a test message?
Mitch (WebCob) said the following on 01/08/2004 01:37 AM: Ok - thanks - that works better for a number of reasons - (I'll post the running verison once I play with it) - by making sure I am testing the first header, I don't need to care about example.com (which is good, cause then I can put the rule in my maildroprc where I call spamassassin from. When I use your original example I get Syntax error after =. # if ( $i == 1 ( ! $MATCH =~ /Received: .*\(AUTH: [^)]*\) I guess you have to escape the parenthese in the square brackets as well: \(AUTH: [^\)]*\) Regards Mirko --- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] Two different MTA (2 IP-Adresses) and MX-Loopback error
Hello Everyone, After trying for hours, I have no idea to solve my problem. May one courier-guru find a way ... :-/ I've a linux-box, with 2 MTAs running on it. qmail on address 192.168.1.1 (outside) and 172.16.1.1 (inside) courier on address 192.168.1.3 (outside) and 172.16.1.3 (inside) MX delivers qmail delivers per default ALL mail - 172.16.1.5 (scanner) scanner delivers all mail - courier courier delviers per default ALL via MX the scanner back to courier and it sends MXMX ^ | | V | +---+ | | | | | courier | | | | | | | | qmail |test.com-- ms-exchange | | | | | | | | | | | | +---+ ^ ^v | || | | - | | scanner | | customer the MX-record redirect to a FQHN for 192.168.1.1 (qmail) qmail has a rule (smtproutes) to redirect test.com to a ms-exchange-server in a DMZ. My problem is, when 'customer or scanner' sends a email to test.com and the MX for test.com points to qmail, courier DOES NOT send to 192.168.1.1, courier quits with error configuration error: mail loops back to myself (MX problem) what's wrong ? why do courier not send the mail to 192.168.1.1 ? does it recognize, thats an ip address on the same host and try to be very smart ? how could i stop this ? many thanks in advance Best Regards /fozzy -- Mit freundlichen Gruessen/Best Regards [PSI-Corps: Vertrauen ist der Anfang von allem Babylon-5] -- Fozzy C. Dressel T-Systems Austria GesmbH LINUX Operating Systems Hofmuehlgasse 3 - 5 Email: [EMAIL PROTECTED] A-1060 Vienna, AustriaTel: (+43)(1) 59903-4293 (8-19 CET) --- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] Trouble with Courier / SpamAssassin
Hi! I wish to use SpamAssassin as sapm filter on my mailserver runnig courier-mta; I'm using unix accounts with separate Maildir's for each user. I have set it up to use mailfilter, and this part seems to be working quite well. I have created a local file .mailfilter in my homedirectory containing the following: import HOME import SENDER import RECIPIENT xfilter /usr/bin/spamassassin -t if (/^X-Spam-Flag: *YES/) { to Maildir/.Junk } This seems to work quite well. But when I remove the option -t I only get the following errors: At the first to be checked Couldn't open ./Maildir: Is a directory at /usr/share/perl5/Mail/SpamAssassin/NoMailAudit.pm line 365. With every following mail I get the error Could not lock ./Maildir: File exists at /usr/share/perl5/Mail/SpamAssassin/NoMailAudit.pm line 381. The mails are not delivered at all. Can someone give me a hint what is misconfigured here? Thanks in advance, Jens --- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] Re: Two different MTA (2 IP-Adresses) and MX-Loopback error
Fozzy C. Dressel writes: what's wrong ? why do courier not send the mail to 192.168.1.1 ? does it recognize, thats an ip address on the same host and try to be very smart ? Correct. how could i stop this ? Use esmtproutes. pgp0.pgp Description: PGP signature
Re: [courier-users] Re: Courier 20031101
Sam Varshavchik wrote: Gordon Messmer writes: Sam~ Is there any chance this patch could be included in, to fix the --without-fax option? No, I do not like this patch. The package should be built properly, instead of disabling the check. I'm not getting anywhere with this. Is there any way to prevent courier from building its fax component? My intent with the without options was to enable users to skip the dependency check and the packaging of optional components. The sql options can be disabled easy enough... In the standard case, rpm is still strict about unpackaged files and deps. I guess it isn't a big issue, though... if you don't want to allow exceptions, then you can always tell users don't disable fax unless you really don't have the fax dependencies installed. --- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users