[courier-users] courierpop3dsizelist - suggestion
I have a simple optimisation suggestion for the new courierpop3dsizelist mechanism. At the moment it is written out as soon as the mailbox is opened. I suggest delaying writing it out until the mailbox is closed (excluding any DELEted items) or the session dropped. The benefit of this is that in the normal case where a client downloads and deletes all messages, no courierpop3dsizelist file needs to be written at all - thus there is no overhead in terms of disk space, inodes, and disk operations to maintain it. As an additional optimisation it could be not written out if no changes have been made (i.e. for repeated polls of a mailbox when no new items have arrived) Regards, Brian. --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] Quota implementation ?
Hey All, Has anyone successfully implemented quotas on their mailboxes ? What steps did you take to implement this. I have got quotas working altough it does not warn you before you reach your quota limit andI was contemplating writing a script to do this and I was wondering if anyone else had done it either ? Hilton. --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] Re: courierpop3dsizelist - suggestion
Brian Candler writes: The benefit of this is that in the normal case where a client downloads and deletes all messages, no courierpop3dsizelist file needs to be written at all - thus there is no overhead in terms of disk space, inodes, and disk operations to maintain it. The overhead here is a single open(), write(), and close() system call. Nothing to lose sleep over. As an additional optimisation it could be not written out if no changes have been made (i.e. for repeated polls of a mailbox when no new items have arrived) And on the flip side, if a mailbox with new mail is opened twice, both sessions will have to calculate the message sizes. --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] Courier-imap won't query mysql at localhost
Hey all Im trying to setup a virtual domain mailserver but it simply won't work. I made mysql log to sql.log and watched as I tried to login but nothing happend in sql.log and the mailclient said I didn't have the right username og password. Courier-imap wont query mysql. I've tried telneting: $ telnet localhost 110 Trying ::1... Connected to localhost. Escape character is '^]'. +OK Hello there. user [EMAIL PROTECTED] +OK Password required. pass fake -ERR Login failed. quit +OK Better luck next time. Connection closed by foreign host. As you can see, telnet gives the same error. And nothing happend in sql.log. Im hoping you have had a simular proplem or can tell me how to debug courier-imap. Im out of ideas. I've also tried to compile courier-imap several different ways but always get the same thing. The config files look fine to me, authmysql is in authmodulelist and authmodulelistorig: root@office:/usr/local/etc/courier-imap# grep authmodulelist authdaemonrc ##NAME: authmodulelist:0 authmodulelist=authmysql authpam ##NAME: authmodulelistorig:1 authmodulelistorig=authcustom authuserdb authmysql authpam Im running a freebsd 4.7-stable and used ports /usr/ports/mail/courier-imap) to install courier-imap. And I used this parameter: make install WITH_MYSQL=yes WITHOUT_OPENSSL=yes (This worked on the other server). I hope I've provided you with enough information to be able to tell me something. :) root@office:/usr/local/libexec/courier-imap/authlib# ls -lh total 118 -r-xr-xr-x 1 root wheel15K Jan 13 11:17 authdaemon -rwxr-xr-x 1 root wheel 408B Jan 13 11:17 authdaemond -r-xr-xr-x 1 root wheel55K Jan 13 11:17 authdaemond.mysql -r-xr-xr-x 1 root wheel42K Jan 13 11:17 authdaemond.plain Thanks in advance Greets! Júlíus --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] Quota implementation ?
copy the quotawarnmsg.example to quotawarnmsg in courier etc directory, edit it and it should start sending warnings wen 90% of the quota is used. Lukas On Mon, 13 Jan 2003, Hilton De Meillon wrote: Hey All, Has anyone successfully implemented quotas on their mailboxes ? What steps did you take to implement this. I have got quotas working altough it does not warn you before you reach your quota limit andI was contemplating writing a script to do this and I was wondering if anyone else had done it either ? Hilton. --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
RE: [courier-users] Quota implementation ?
Title: RE: [courier-users] Quota implementation ? At the end of each day I scan the mail logfile to determine if anyone had bounces due to quota. I then check their maildir, see if it's greater than 15MB (we have a 20MB default quota here) and if so drop a notification email into their maildir. It's certainly not exactly what you're looking for, but it does give a customer some feedback, and also emails us a complete list of everyone who had quota-related bounces. Saxon Jones Technical Infrastructure Admin, Interbaun Communications Suite 200, 18404 Stony Plain Road Edmonton, AB T5S 2M8 mailto:[EMAIL PROTECTED] http://www.interbaun.com/ (780) 447-8282, ext. 369 -Original Message- From: Hilton De Meillon [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 5:29 AM To: [EMAIL PROTECTED] Subject: [courier-users] Quota implementation ? Hey All, Has anyone successfully implemented quotas on their mailboxes ? What steps did you take to implement this. I have got quotas working altough it does not warn you before you reach your quota limit andI was contemplating writing a script to do this and I was wondering if anyone else had done it either ? Hilton. --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users quota-notify.sh Description: Binary data
Re: [courier-users] Re: courierpop3dsizelist - suggestion
On Mon, Jan 13, 2003 at 08:03:20AM -0500, Sam Varshavchik wrote: Brian Candler writes: The benefit of this is that in the normal case where a client downloads and deletes all messages, no courierpop3dsizelist file needs to be written at all - thus there is no overhead in terms of disk space, inodes, and disk operations to maintain it. The overhead here is a single open(), write(), and close() system call. Nothing to lose sleep over. We're talking a Netapp with a few hundred thousand mailboxes and growing. If I can save one inode and one data block per mailbox, and one open-read-close open-write-close-rename set of NFS operations per login, that's a bonus to me. As an additional optimisation it could be not written out if no changes have been made (i.e. for repeated polls of a mailbox when no new items have arrived) And on the flip side, if a mailbox with new mail is opened twice, both sessions will have to calculate the message sizes. Certainly. It's a question of which happens more often: two people simultaneously opening the same mailbox, or one person polling their mailbox more frequently than they receive mail. I'd be pretty confident that the second case is more prevalent. Regards, Brian. --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] imap mysql authentication problem
For a while now, I am working on a mailserver setup using postfix, maildrop, imap and mysql. Most of it is working fine now, but I'm not able to authenticate my users with the use of a mysql database. As a local user I can be authenticated It seems to be a problem reported a couple of times but none of them have any followups which reveal an answer to my problem maybe you can help. THE STORY IN A LITTLE MORE DETAIL: if I telnet and LOGIN as a local user I get accepted $ telnet localhost imap Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. * OK Courier-IMAP ready. Copyright 1998-2002 Double Precision, Inc. See COPYING for distribution information. a LOGIN onno password a OK LOGIN Ok. but If I telnet and LOGIN as a user from the mysql database I'm not accepted $ telnet localhost imap Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. * OK Courier-IMAP ready. Copyright 1998-2002 Double Precision, Inc. See COPYING for distribution information. a LOGIN test test a NO Login failed. I have changed the DEBUG_LOGIN=2 paramter in etc/imapd and I find in /var/log/maillog Jan 13 17:14:25 fire imapd: Connection, ip=[:::127.0.0.1] Jan 13 17:14:33 fire imapd: LOGIN: DEBUG: ip=[:::127.0.0.1], command=LOGIN Jan 13 17:14:33 fire imapd: LOGIN: DEBUG: ip=[:::127.0.0.1], username=test Jan 13 17:14:33 fire imapd: LOGIN: DEBUG: ip=[:::127.0.0.1], password=test Jan 13 17:14:38 fire imapd: LOGIN FAILED, ip=[:::127.0.0.1] I have also setup the logging for mysql and although it logs all other database actions it doesn't show any sign of imap trying to access the mysql database. I have tried verius authmysqlrc options. Using the socket, using the port, different usernames, servernames etc all with no change in the result. If you've got any ideas, let me know (see below for some the fine details) grz, Onno THE FINE DETAILS: OS: RedHat 7.3 Kernel: 2.4.18 courier-imap-1.6.2-1.7.3 (build as rpm from source) mysql: 3.23.49 (rpm build by RedHat) gcc: 2.96-113 AUTHDAEMONRC: authmodulelist=authcustom authcram authuserdb authldap authpam authmysql authmodulelistorig=authcustom authcram authuserdb authldap authmysql authpam daemons=5 version=authdaemond.mysql authdaemonvar=/var/run/authdaemon.courier-imap AUTHMYSQLRC: MYSQL_SERVER localhost MYSQL_USERNAME root MYSQL_PASSWORD * #MYSQL_SOCKET /var/lib/mysql/mysql.sock MYSQL_PORT 3306 #MYSQL_OPT 0 MYSQL_DATABASE maildb MYSQL_USER_TABLEusers MYSQL_CLEAR_PWFIELD clear MYSQL_UID_FIELD uid MYSQL_GID_FIELD gid MYSQL_LOGIN_FIELD id MYSQL_HOME_FIELDhome #MYSQL_MAILDIR_FIELD maildir mysql: db - maildb table - users mysql select id,clear,uid,gid,home,maildir from users +--+---+-+-+--+---+ | id | clear | uid | gid | home | maildir | +--+---+-+-+--+---+ | test | test | 502 | 502 | /home/vmail/test | test/Maildir/ | +--+---+-+-+--+---+ 1 row in set (0.00 sec) __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] Re: install-configure and its ability to upgrade
From: Sam Varshavchik [EMAIL PROTECTED] Date: Sun, 12 Jan 2003 21:40:56 -0500 Peter Davies writes: so after the make install, i overwrote the /usr/lib/courier/etc directory with the (few) files containing my changes (esmtpd, imapd etc) then launched the make install-configure. the script appears to have renamed the exisiting files foo.bak but the pertinent (changed) information did not propogate forward into the new files created from foo.dist. And you believe that because...? ... uh, i used the handy-dandy compare-windows function in emacs to show me that my custom BLACKLISTS property had not been propagated. Old config files are always renamed to *.bak, before any new configuration changes are merged in. that happened as expected. Furthermore, this works as long as you keep the original structure of the configuration files, including the comments. I suspect my problem was that I read the header comments too literally : # Do not alter lines that begin with ##, they are used when upgrading # this configuration. I read this to mean that I could alter or add comments that were NOT prefaced with ## - as I had been tuning my BLACKLISTS param I was keeping old copies. Removing the extra commented out params seems to have effected a remedy. Digging into the perl helped too. contritely, i proceed thanks --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] Courier unable to authenticate
I have Courier-IMAP up and running. I am able to telnet to it and get a response, but when I send a login command, it immediately closes the connection. It has been suggested to me that Courier is unable to run its authentication module, but I don't know how to verify this or troubleshoot the problem. I use 'userdb' authentication. Can anyone suggest something I could try in order to locate this problem? I would really appreciate any ideas. Thanks in advance. Gregg --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
RE: [courier-users] realy error message
Hi Patrick, 212.47.160.250 resolves as gateway.nextra.ch. Is nextra.ch allowed to relay? Try esmtp with authentication when coming from outside. Use the same data as for pop3. regards Dirk -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Paeddy Sent: Monday, January 13, 2003 5:38 PM To: [EMAIL PROTECTED] Subject: [courier-users] realy error message hi all, i just startet using courier and it works great. just one pronlem. i have multiple domains which i want to run on the same server. the problem now is that i receive the following log messages Jan 13 18:33:37 furbyII courieresmtpd: error,relay=:::212.47.160.250,from=[EMAIL PROTECTED],to=[EMAIL PROTECTED] : 513 Relaying denied. in my opintion i configured it the right way, what means that i used the webadmin and i listet the domains under Mail server name and local domains -Locally-hosted domains there are now 4 domains. strange thing is that i'm able to send/recived emails when i'm using the web frontend but when i want to use the Outlook express i only can receive emails. do you have an idea what i should check ? regards, patrick --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] other uses for .courier files? (feature request)
It's my understanding that .courier files can contain only a maildir or mda entry, correct? I'm wondering if it would be possible to also use these to respond with smtp error codes, too.. particularly something like unknown user (I forget the numerical code). I enjoy having all email to my domain come into my mailbox, but there are a handful of addresses (leftovers from lame people who type in fake addresses in icq, web forms, etc) that I'd like to explicitely deny. Currently, I dump them into bofh, but it'd be nice to reply with the correct error. -Chris --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] Problem dealing with the queue
Hi list, I am having some difficulties to deal with postfix queue. There is amail serverthat is not receiving mail from my server (probably they put an ACL, because the connection times out), and because of that, my queue is growing very faster, causing delays to the deliver of every e-mail we send. 1) I need to point mx.thedomain.com to a different IP address (they have other SMTP server that does not time out with my server), so I edited the hosts files of the server, but it keeps trying to send to the old IP ADDRESS. 2) I need to put the queued messages as hold for this specific domain. Does anyone have any idea ? Regards, Marcelo Tanure
[courier-users] random authentication failure squirrelmail qmail courier
RedHat 8.0 using the distributed apache from RPM, Latest Squirrelmail from the source, qmail from qinstall 1.1 which includes: sqwebmail-3.3.1 vpopmail-5.2 ezmlm-0.53 qmail-1.03 ucspi-tcp-0.88 daemontools-0.70 I have a squirrelmail web interface to a qmail backend. POP3 and SMTP work perfectly, my problem is the web authentication. Qmail was installed using qinstall, courier was compiled from source from the readme, no flags. After starting the daemon, I can log in to the web interface no problem and can do so for about 30 seconds (sometimes more, I haven't found a real pattern). While the browser is open, I can function normally, but when I log off, it will not authenticate me again until I restart the daemon. /usr/lib/courier-imap/libexec/imapd.rc stop /usr/lib/courier-imap/libexec/imapd.rc start Then it will let me in invariably. Here is my /usr/lib/courier-imap/etc/authdaemonrc (I am using the default) authmodulelist=authcustom authcram authuserdb authvchkpw authldap authpam authmodulelistorig=authcustom authcram authuserdb authvchkpw authldap authpam daemons=5 version= authdaemonvar=/usr/lib/courier-imap/var/authdaemon I tried using authvchkpw as the only option in the authmodulelist, to the same result. stumped, thanks for any hints, dan --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] Request for testing on OpenBSD
Hi all, I recently found an incompatibility between my fave MTA courier and my fave OS, OpenBSD. You can get the details (and patch) from http://www.linkdata.se/sourcecode.html What I'd like is, if you're running courier on OpenBSD, and have areasonable fast machine at 600 MHz+, try the stress testing as described in http://www.courier-mta.org/install.html, section Test child process termination. See if you can reproduce my problem with missing message files. If you can, and you're running courier-40.2, can you please apply the patch I made and see if it helps. Whether you can reproduce or not, please respond to me or the list with the version of OpenBSD you're using and the hardware it's running on. /Johan --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] maildir
can any one tell me how to reset the rights and groups on maildirs can i do it with the maildirmake utility or do i need to burn the dirs and start over... not raely an option i like have lost of mail in there Please advise asap please. -- __ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup Meet Singles http://corp.mail.com/lavalife --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] Request for testing on OpenBSD
On Mon, 2003-01-13 at 11:09, Johan Lindh wrote: I recently found an incompatibility between my fave MTA courier and my fave OS, OpenBSD. You can get the details (and patch) from http://www.linkdata.se/sourcecode.html That sounds reasonable. I believe that both OpenBSD and Solaris (at least) generate non-predictable pid's to prevent certain local attacks. Both of them are probably affected by this problem. --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] maildir problem
randy meyer wrote: I have a problem with courier when checking mail users get an error that there password is bad but when i check the logs we see that courier says it cant change dir So I take it that the permissions are hosed the format we are running is /maildir /maildir/domain1.tld/user1 /maildir/domain2.tld/user1 Uh... The directory that the stuff needs to be delivered to is: ~$USER/Maildir/ This can be accomplished, if you have ProcMail as the LDA, by setting $DEFAULT accordingly in the /etc/procmailrc file. DEFAULT=$HOME/Maildir/ ^ That last bit is the flag that ProcMail uses to know it needs to create a Maildir-format directory. Aloha mai Nai`a! -- Please have your Internet License http://kapu.net/~mjwise/ and Usenet Registration handy... --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
RE: [courier-users] random authentication failure squirrelmail qmail courier
Dan [EMAIL PROTECTED] scribbled; [snip] I tried using authvchkpw as the only option in the authmodulelist, to the same result. Specify authvchkpw as the only one in the configure line, and don't use authdaemond. I experienced the same with courier-imap and sqwebmail. authdaemond doesn't appear to be really reliable. -jesse --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] Looking to migrate a metric ton of users...
I have tried to do this without access to the filesystem but its not possible. Some suggestions are to write to a file that gets read from crontab and make the changes on the filesystem or use sudo, neither of which I like. Aliases and forwards I think should be possible to be used from the db, but its not right now. Jesse Keating wrote: I'm helping some people in a project to migrate some 10K+ users from a kludged together sendmail setup to a full courier setup, using pgsql auth. Our concern is being able to make some sort of web based front end that allows users to create aliases, such as all mail destined for [EMAIL PROTECTED] actually gets re-directed to [EMAIL PROTECTED]. Is there an easy way to front end this, or will it require access to the file system? I have not tried to setup any such aliases in my courier setups, so I'm unsure how these are handled. If anybody could point me to the right part of the documentation, I'd appreciate it. --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] relay problems
hi, its me again. i now tried everything but it won't work. i have multiple domains on the same machine like mail.schorsch.ch,mail.cori.ch,mail.maruscheli.ch etc. i also made the dns entries so that it should work, as example: @ IN SOA ns1.maruscheli.ch. postmaster.maruscheli.ch. ( 2003011203 ; Serial 10800 ; Refresh 3600; Retry 604800 ; Expire 86400 ; TTL ) @ IN NS ns1.violine.ch. IN NS ns1.violine.ch ns1 IN A 213.193.84.26 www IN CNAMEns1 mailIN CNAMEns1 webmail IN CNAMEns1 ftp IN CNAMEns1 the domains are all added under Mail server name and local domains - Locally-hosted domains like below: Mail to user@hosteddomain will be delivered to local account user@hosteddomain. cori.ch -delete funky-fio.ch -delete maruscheli.ch -delete schluecht.ch -delete schorsch.ch -delete After adding them i let the install scrip run: Installing esmtpacceptmailfor.dir/webadmin... Installing hosteddomains/webadmin... Executing makehosteddomains... Executing courier restart... Executing /usr/lib/courier/sbin/makeacceptmailfor... Sending a testmail using the gui (courier): --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] Re: courierpop3dsizelist - suggestion
Brian Candler writes: On Mon, Jan 13, 2003 at 08:03:20AM -0500, Sam Varshavchik wrote: Brian Candler writes: The benefit of this is that in the normal case where a client downloads and deletes all messages, no courierpop3dsizelist file needs to be written at all - thus there is no overhead in terms of disk space, inodes, and disk operations to maintain it. The overhead here is a single open(), write(), and close() system call. Nothing to lose sleep over. We're talking a Netapp with a few hundred thousand mailboxes and growing. If I can save one inode and one data block per mailbox, and one open-read-close open-write-close-rename set of NFS operations per login, that's a bonus to me. Well, I think I'll start with only rewriting courierpop3dsize if needs rewriting at login time, and worry about the rest later. --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] Re: imap mysql authentication problem
Onno writes: AUTHDAEMONRC: authmodulelist=authcustom authcram authuserdb authldap authpam authmysql List authmysql and authldap first. --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] Re: maildir
randy meyer writes: can any one tell me how to reset the rights and groups on maildirs can i man chmod --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] random authentication failure squirrelmail qmail courier
Do you mean when I compile Courier? e.g. ./configure \ --without-authpam \ --without-authldap \ --without-authpwd \ --without-authmysql \ --without-authpgsql \ --without-authshadow \ --without-authuserdb \ --without-authcustom \ --without-authcram \ --without-authdaemon \ --with-authvchkpw \ Thanks, dan - Original Message - From: Jesse Cablek [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 13, 2003 12:48 PM Subject: RE: [courier-users] random authentication failure squirrelmail qmail courier Dan [EMAIL PROTECTED] scribbled; [snip] I tried using authvchkpw as the only option in the authmodulelist, to the same result. Specify authvchkpw as the only one in the configure line, and don't use authdaemond. I experienced the same with courier-imap and sqwebmail. authdaemond doesn't appear to be really reliable. -jesse --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] relay problems
hi, its me again. i now tried everything but it won't work. i have multiple domains on the same machine like mail.schorsch.ch,mail.cori.ch,mail.maruscheli.ch etc. i also made the dns entries so that it should work, as example: @ IN SOA ns1.maruscheli.ch. postmaster.maruscheli.ch. ( 2003011203 ; Serial 10800 ; Refresh 3600; Retry 604800 ; Expire 86400 ; TTL ) @ IN NS ns1.violine.ch. IN NS ns1.violine.ch ns1 IN A 213.193.84.26 www IN CNAMEns1 mailIN CNAMEns1 webmail IN CNAMEns1 ftp IN CNAMEns1 the domains are all added under Mail server name and local domains - Locally-hosted domains like below: Mail to user@hosteddomain will be delivered to local account user@hosteddomain. cori.ch -delete funky-fio.ch -delete maruscheli.ch -delete schluecht.ch -delete schorsch.ch -delete After adding them i let the install scrip run: Installing esmtpacceptmailfor.dir/webadmin... Installing hosteddomains/webadmin... Executing makehosteddomains... Executing courier restart... Executing /usr/lib/courier/sbin/makeacceptmailfor... Sending a testmail using the gui (courier) to a hotmail account i receive it like: from: [EMAIL PROTECTED] to:[EMAIL PROTECTED] subject: testmail from web gui using maruscheli.ch why does the senders email adress apear like this ? at least im able to send and receive emails using the web gui (courier) but when i try to use outlook i always got a error like: Jan 14 00:51:50 furbyII courieresmtpd: started,ip=[:::212.47.167.52] Jan 14 00:51:50 furbyII courieresmtpd: error,relay=:::212.47.167.52,from=[EMAIL PROTECTED],to=[EMAIL PROTECTED] h: 513 Relaying denied. why is it denied ? i entered in /usr/lib/courier/etc/hosteddomains a file named webadmin with the following content: cori.ch funky-fio.ch maruscheli.ch schluecht.ch schorsch.ch there is also a file /usr/lib/courier/etc/esmtppercentrelay.dir webadmin with the same content. even after running:. /usr/lib/courier/sbin/makehosteddomains / makepercentrelay / makeacceptmailfor / im not able to send emails using outlook - can you imagine why ? thnx for your help --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] Re: Looking to migrate a metric ton of users...
Jesse Keating writes: it require access to the file system? I have not tried to setup any such aliases in my courier setups, so I'm unsure how these are handled. Very similar to sendmail's: an alias file. There is infrastructure in place to be able to resolve aliases via a database, however it's only implemented for LDAP, now. --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] Re: other uses for .courier files? (feature request)
Chris Petersen writes: It's my understanding that .courier files can contain only a maildir or mda entry, correct? I'm wondering if it would be possible to also use these to respond with smtp error codes, too.. particularly something like unknown user (I forget the numerical code). | echo Go away, luser. ; exit 77 --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] Re: random authentication failure squirrelmail qmail courier
Dan writes: RedHat 8.0 using the distributed apache from RPM, Latest Squirrelmail from the source, qmail from qinstall 1.1 which includes: sqwebmail-3.3.1 vpopmail-5.2 Known vpopmail bug. Upgrade to vpopmail 5.3.8, or later. --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] Re: Request for testing on OpenBSD
Gordon Messmer writes: On Mon, 2003-01-13 at 11:09, Johan Lindh wrote: I recently found an incompatibility between my fave MTA courier and my fave OS, OpenBSD. You can get the details (and patch) from http://www.linkdata.se/sourcecode.html That sounds reasonable. I believe that both OpenBSD and Solaris (at least) generate non-predictable pid's to prevent certain local attacks. Both of them are probably affected by this problem. It's one thing to generate non-predictable pids. It's a completely different thing to assign the same pid to another process, in the same second. You can no longer trust the output of ps(1). Just throw it away, it is useless. Even if you do a ps(1), and find a process that you think you want to kill, or signal, by the time you end up typing out the command, you'll end up signaling a completely different process. Which appears to be the case with OpenBSD. All in the name of security. Having said that, I will tweak the maildir library to include microseconds in the generated maildir filenames. That'll be sufficient, for now. --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] Re: Looking to migrate a metric ton of users...
On Mon, 13 Jan 2003 17:53:26 -0500 Sam Varshavchik [EMAIL PROTECTED] wrote: Very similar to sendmail's: an alias file. There is infrastructure in place to be able to resolve aliases via a database, however it's only implemented for LDAP, now. Now that I've thought about it a bit, this could be handled via .courier files in the users $HOME directory no? Since every user will be a virtual user, and every virtual user will have it's own directory, I can manage aliases via .courier, and since their php system will have write access to these folders, I could have a php interface made. Does this sound doable? -- Jesse Keating RHCE MCSE For Web Services and Linux Consulting, Visit -- j2Solutions.net Mondo DevTeam (www.mondorescue.org) Was I helpful? Let others know: http://svcs.affero.net/rm.php?r=jkeating --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] nfs problem
hallo, i have a problem running courier-imap (1.6.2) with nfs I can't see messages in 'new' folder SMTP server is qmail The nfs server is under Windows 2000 The server with courier is a SuSe 8.0 kernel 2.4.18 ... from /etc/fstab 192.168.1.49:/posta /home/vpopmail/domains nfs rw,bg,exec,suid 0 0 Look at this # strace -p 28735 ... open(./new, O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 4 fstat64(4, {st_mode=S_IFDIR|0700, st_size=64, ...}) = 0 fcntl64(4, F_SETFD, FD_CLOEXEC) = 0 getdents64(0x4, 0x80eaf50, 0x200, 0x2) = 496 rename(./new/1042191449.11534.clark,S=765, ./cur/1042191449.11534.clark,S=765:2,) = -1 EACCES (Permission denied) rename(./new/1042192523.28631.clark,S=991, ./cur/1042192523.28631.clark,S=991:2,) = -1 EACCES (Permission denied) rename(./new/1042193505.11101.clark,S=5095, ./cur/1042193505.11101.clark,S=5095:2,) = -1 EACCES (Permission denied) rename(./new/1042193666.13593.clark,S=2118, ./cur/1042193666.13593.clark,S=2118:2,) = -1 EACCES (Permission denied) rename(./new/1042193722.14452.clark,S=906, ./cur/1042193722.14452.clark,S=906:2,) = -1 EACCES (Permission denied) rename(./new/1042193724.14506.clark,S=906, ./cur/1042193724.14506.clark,S=906:2,) = -1 EACCES (Permission denied) rename(./new/1042193878.16981.clark,S=776, ./cur/1042193878.16981.clark,S=776:2,) = -1 EACCES (Permission denied) rename(./new/1042195523.13595.clark,S=905, ./cur/1042195523.13595.clark,S=905:2,) = -1 EACCES (Permission denied) rename(./new/1042196123.23052.clark,S=906, ./cur/1042196123.23052.clark,S=906:2,) = -1 EACCES (Permission denied) getdents64(0x4, 0x80eaf50, 0x200, 0xd) = 0 close(4)= 0 close(3)= 0 unlink(./tmp/104258.28735_imapuid_0.fangio) = 0 ... If i try to move files by hand it works perfectly Note that i have problem only with NFS server under windows I have no problem with the same configuration and NFS server under Linux In the log of the windows server i can't see any of the above lines Anyone have an idea ? Thanks Andrea smime.p7s Description: S/MIME Cryptographic Signature
[courier-users] Re: OpenBSD 3.2 breaks Courier, Qmail.
On Tue, 2003-01-14 at 09:45, Sam Varshavchik wrote: It's been brought to my attention that OpenBSD 3.2 can assign the same pid to different processes in the same chronological second (that is, one process terminates, and its pid is immediately assigned to a new process that's created soon thereafter). OpenBSD has used random PID generation since June 1997. Nothing in SuS/POSIX requires sequentially increasing PIDs. to the generated maildir filenames. This'll tide things over, until OpenBSD begins recycling pids in the same microsecond. Theoretically speaking (but statistically improbable) this is already the case. Rick. --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] Re: nfs problem
Sam Varshavchik wrote: Andrea Ubiali writes: hallo, i have a problem running courier-imap (1.6.2) with nfs I can't see messages in 'new' folder SMTP server is qmail The nfs server is under Windows 2000 You are absolutely certain that Windows isn't going to barf on filenames that contain the ':' character? rename(./new/1042191449.11534.clark,S=765, ./cur/1042191449.11534.clark,S=765:2,) = -1 EACCES (Permission denied) Provided that you've verified that Windows actually provides sane NFS service, the permissions on the cur directory must be broken. Fix them. If i try to move files by hand it works perfectly Okeedokee. Try: mv ./new/1042191449.11534.clark,S=765 ./cur/1042191449.11534.clark,S=765:2, and see what happens. Hmmmvarious Windows support pages say that a colon is not a valid filename character. You can do this by hand, so that may not be a hard and fast rule, but it could be that whatever nfs software you're using under windows has backwards compatibility for Win95 or DOS filenames turned on.this could be breaking it. Just a thought btw, there must be a reason that you're using windows to provide nfs service to unix boxesI'm dying to know what it is... --tla --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] OpenBSD 3.2 breaks Courier, Qmail.
It's been brought to my attention that OpenBSD 3.2 can assign the same pid to different processes in the same chronological second (that is, one process terminates, and its pid is immediately assigned to a new process that's created soon thereafter). Since filenames for messages in maildirs are generated based on the combination of the pid, and the current time, in seconds, there is now a race condition that will result in loss or corruption of mail. This breaks Courier and Qmail. Example: process A delivers a message to a maildir just before process B reads Maildir/new, and A's message is moved to Maildir/cur a short time after it's been delivered, and A exits; meanwhile process C starts, and delivers mail to the same maildir; its generated filename will now be the same; so now you will have two messages with the same base filename in the maildir). This is not theoretical. This been brought to my attention after someone managed to succesfully deliver two messages with the same filename, on a piddly Athlon (as part of a Courier stress test). Let's have a round of applause for such a noteworthy accomplishment! Now, my opinion is whoever did this in OpenBSD was insane. Hey folks, let's all 'rm -f /bin/ps', because ps(1)'s output is meaningless now. Whatever it spits out, by the time you get around to typing 'kill', you may end up signaling a completely different process. Oh, and setting 'sig' to 0 in kill(2) no longer means anything either. I mean, it's just plain stupid to use kill(0) to validate a pid, do a few miscellaneous things, then try again with a real signal, right? So if you now end up bitch-slapping a completely unrelated process, it's going to be all your fault. But, what do I know... In any event, here's a patch that will apply to the current release of Courier, Courier-IMAP, SqWebMail, and maildrop. http://www.courier-mta.org/beta/patches/pid-fix/ - it adds microseconds to the generated maildir filenames. This'll tide things over, until OpenBSD begins recycling pids in the same microsecond. --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] Re: nfs problem
Andrea Ubiali writes: hallo, i have a problem running courier-imap (1.6.2) with nfs I can't see messages in 'new' folder SMTP server is qmail The nfs server is under Windows 2000 You are absolutely certain that Windows isn't going to barf on filenames that contain the ':' character? rename(./new/1042191449.11534.clark,S=765, ./cur/1042191449.11534.clark,S=765:2,) = -1 EACCES (Permission denied) Provided that you've verified that Windows actually provides sane NFS service, the permissions on the cur directory must be broken. Fix them. If i try to move files by hand it works perfectly Okeedokee. Try: mv ./new/1042191449.11534.clark,S=765 ./cur/1042191449.11534.clark,S=765:2, and see what happens. --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] Re: OpenBSD 3.2 breaks Courier, Qmail.
Sam Varshavchik writes: This breaks Courier and Qmail. No. qmail's maildir_scan() looks only at files with mtime time, so it can't move anything out of the delivery directory until the next second. Duplicates are eliminated by the standard use of stat() in delivery. ---D. J. Bernstein, Associate Professor, Department of Mathematics, Statistics, and Computer Science, University of Illinois at Chicago --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] courierfilter.pid not found during Courier setup
Hi, When I run the /usr/local/etc/rc.d/courier.sh startup script the following error occurs: /var/spool/courier/tmp/courierfilter.pid: Permission denied authdaemond courierd esmtpd imapd pop3d I've checked the ownership and permissions on the /var/spool/courier/tmp/ directory and it is owned by user courier with group courier with permissions 770. Is this correct? I've checked that /usr/local/bin/sendmail has the correct ownership and permissions. It is owned by root with group wheel, has permissions executable by all, and is setuid to run as root privilage. Is this correct? It seems that the courierfilter.pid file is not being created or is not found by courierfilter.pid. Something is violating the permissions. If I simply run courierfilter start I get the same permission denied error message. Is there something wrong with the above permisison settings that is causing this? Note that many of the other pid and lock files are being created in the /var/spool/courier/tmp/ directory. Is there some simple configuration setting that I'm missing that would cause the courierfilter.pid to be not created? I've started looking trough the source code to see how the pid files are created. It seems that courierfilter.c function start calls ll_daemon_start() in file ../liblock/lockdaemon.c which in turn calls funtion ll_daemon_startl() where an attempt to create the courierfilter.pid file is made. I'm guessing that this is where this fails with a permission denied. I've tried to run the strace command to confirm this but it doesn't seem to be providing enough info even with the -v strace option. Any help will be deeply appreciated as I've been attempting to get this courier beastie working for a long while now. All the best, Peter --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] Re: OpenBSD 3.2 breaks Courier, Qmail.
Sam Varshavchik writes: Since filenames for messages in maildirs are generated based on the combination of the pid, and the current time, in seconds, there is now a race condition that will result in loss or corruption of mail. This breaks Courier and Qmail. Not for qmail, it doesn't. In the unlikely event that corruption would occur, qmail-local sleeps two seconds and tries again. At that point, the pid is still the same and the time is different. -- -russ nelson http://russnelson.com | You get prosperity when Crynwr sells support for free software | PGPok | the government does less, 521 Pleasant Valley Rd. | +1 315 268 1925 voice | not when the government Potsdam, NY 13676-3213 | +1 315 268 9201 FAX | does something right. --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] Re: OpenBSD 3.2 breaks Courier, Qmail.
Russell Nelson writes: Sam Varshavchik writes: Since filenames for messages in maildirs are generated based on the combination of the pid, and the current time, in seconds, there is now a race condition that will result in loss or corruption of mail. This breaks Courier and Qmail. Not for qmail, it doesn't. In the unlikely event that corruption would occur, qmail-local sleeps two seconds and tries again. At that point, the pid is still the same and the time is different. How exactly would qmail-local (which started at T+900 milliseconds) know that it needs to do that; when at T+700 milliseconds an app moved a file carrying the same filename from new to cur, and THAT file was delivered to new by another qmail-local process that had the same pid, but which exited at T+500 milliseconds? --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] Re: OpenBSD 3.2 breaks Courier, Qmail.
Click on this URL to check the validity of [EMAIL PROTECTED]: http://q249.crynwr.com/nelson/1042528048.23966.63f797456aebb2fbab13da5d7b5a Sam Varshavchik writes: Russell Nelson writes: Sam Varshavchik writes: Since filenames for messages in maildirs are generated based on the combination of the pid, and the current time, in seconds, there is now a race condition that will result in loss or corruption of mail. This breaks Courier and Qmail. Not for qmail, it doesn't. In the unlikely event that corruption would occur, qmail-local sleeps two seconds and tries again. At that point, the pid is still the same and the time is different. How exactly would qmail-local (which started at T+900 milliseconds) know that it needs to do that; when at T+700 milliseconds an app moved a file carrying the same filename from new to cur, and THAT file was delivered to new by another qmail-local process that had the same pid, but which exited at T+500 milliseconds? A, I see the problem. It's a definitional one, not a coding one. There's two things which are being assumed which are now seen to be not true. Various bits of code assume that a file which is unique in one Maildir dir will be unique in all of them. Other bits of code assume that No pid will be reused in the same second. -- -russ nelson http://russnelson.com | You get prosperity when Crynwr sells support for free software | PGPok | the government does less, 521 Pleasant Valley Rd. | +1 315 268 1925 voice | not when the government Potsdam, NY 13676-3213 | +1 315 268 9201 FAX | does something right. --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users