Re: [vchkpw] vpopmail and courier-imap many domains?
You must have compiled vpopmail with many domain support. Where it places domains in numbered directories in ~vpopmail/domains/ At least I think thats the option that makes it happen. - Original Message - From: master [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, March 06, 2004 12:39 PM Subject: [vchkpw] vpopmail and courier-imap many domains? Hi, i have a little question about vpopmail and imap, i have been using it since a while but recently i got a problem, vpopmail has added new directory (0) and put all new domains in it , but the problem is that all domains there doesn t work with courier-imap, in fact imap only check the main directory of vpopmail (i have try the vchkpw2userdb to see and no domain that are in the 0 appear) has anyone got that problem and any solutions? thanks
Re: [vchkpw] vdelivermail EXITCODE problem
Something to look at: it seems to stand out in my memory as ive had this same problem, but i dont recall a resolve for it.. basically if you are having the same problem i was, then you cannot have anything in your .qmail processing fork.. it must continue to run in the foreground or the mail will keep re-spawning.. one day i ended up with 900 mysqld's running due to vdelivermail-maildrop-mailfilter. and it only seemed to happen when called by .qmail files. if you are doing any processing in .qmail files, make sure they do not get backgrounded or forked.. i think the man pages for either vdelivermail or qmail-command will have more info about this.. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 4:09 AM Subject: [vchkpw] vdelivermail EXITCODE problem Hi everybody, yesterday I asked you if there is a problem in vdelivermail of handling EXITCODEs in .qmail files and I discovered that in my installed version 5.2 no checking of the EXITCODE was possible. So I upgraded to the last stable version 5.2.1 whereas the changelog said that within 5.2.1 the EXITCODE checks would be performed. Now over the night I discovered that a script started within a .qmail file before the deliver-to-Maildir instruction and returns an EXITCODE of 99 or 100 ( which value is not important ) the delivery of that mail is interrupted ( not stopped as it sould be ) BUT the mail stays in the queue and the queue starts delivering mail again and again. What I´m trying to say is that one single mail has been delivered about 200 times that night and everytime the script told vdelivermail to end the delivery and everytime the mail stayed within the qmail queue to be delivered some time later. What I now want to know is if there must be another EXITCODE so that vdelivermail definetely kills that mail processing or if this is a bug in vdelivermail and I should upgrade to something higher ( i read in the changelog that several fixes to the EXITCODE thing have been made in 5.3.x but this versions are to be devel-state and I´m wondering if I should use devel-software on a running system. Thanks for your help! Thomas
Re: [vchkpw] Romaing User problems
yes.. mine were created on the fly too before changing to mysql. but my files are there and owned by vpopmail:vpopmail (i dont have vchkpw group). even the tmp files being created were owned by vpopmail. since vpopmail has to be able to write a open-smtp open-smtp.lock and open-smtp.tmp. ill send this to the list, maybe someone there would know more about how the permissions need to be or how they get messed up.. -rw-r--r--1 vpopmail vchkpw 25 Aug 31 2002 inc_deps -rw-r--r--1 vpopmail vchkpw 67 Aug 31 2002 lib_deps -rw-r--r--1 vpopmail vchkpw 57 Aug 13 2002 open-smtp -rw-r--r--1 vpopmail vchkpw 0 Aug 13 2002 open-smtp.lock -rw-r--r--1 vpopmail vchkpw121 Mar 8 2003 tcp.smtp -rw-r--r--1 root root 2254 Sep 30 13:22 tcp.smtp.cdb and actually as i look at this again, it looks as if i have not had an open-smtp.cdb made.. maybe never on this machine.. but it was setup that way before it came to this machine.. have you verified you have the plaintext 'infile' open-smtp and that vpopmail has access to read and write to it contents of mine: 216.88.21.7:allow,RELAYCLIENT=,RBLSMTPD= 1029246966 this was auto put there too.. should just have to touch a file and chown it to vpopmail.. then when clients are authed their ip and timestamp goes into open-smtp. then vpopmail rebuilds the cdb database from open-smtp and i forget its final name. i think its just open-smtp.cdb and the files you are seeing being created is the tempfile.. which means either sourcefile or destinationfile are not present.. im betting on source file.. could ya send an ls -l of ~vpopmail/etc ? - Original Message - From: John Boynton [EMAIL PROTECTED] To: Brah Mon [EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 12:39 PM Subject: RE: [vchkpw] Romaing User problems They are owned by root. Where does the ownership get set? These files are created on the fly. John B -Original Message- From: Brah Mon [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 12:43 PM To: John Boynton Subject: Re: [vchkpw] Romaing User problems what user are the open.smtp.tmp. files owned by? everything in ~vpopmail/etc should be owned by vpopmail if your files are being created by another user then i bet tcpserver cannot update the cdb files as that user.. - Original Message - From: John Boynton [EMAIL PROTECTED] To: Brah Mon [EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 9:42 AM Subject: RE: [vchkpw] Romaing User problems Ok I have made the following changes and had the following results: The files have comments in them to show the changes. Now the system reads the tcp.smtp.cdb in the /home/vpopmail/etc dir. There are still files being created called open.smtp.tmp.35325 with different numbers. There is nothing being written to these files nor to the /home/vpopmail/etc/open.smtp file. I would like to find out what file/process is used to write the authorized pop connections to these open.smtp files. Thanks, John B /var/qmail/supervise/qmail-smtpd/run: #!/bin/sh QMAILDUID=`id -u qmaild` NOFILESGID=`id -g qmaild` MAXSMTPD=`cat /var/qmail/control/concurrencyincoming` LOCAL=`head -1 /var/qmail/control/me` if [ -z $QMAILDUID -o -z $NOFILESGID -o -z $MAXSMTPD -o -z $LOCAL ]; then echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in echo /var/qmail/supervise/qmail-smtpd/run exit 1 fi if [ ! -f /var/qmail/control/rcpthosts ]; then echo No /var/qmail/control/rcpthosts! echo Refusing to start SMTP listener because it'll create an open relay exit 1 fi #Changed from /etc/ dir to /home/vpopmail/etc/ exec /usr/local/bin/softlimit -m 200 \ /usr/local/bin/tcpserver -v -R -l $LOCAL -x /home/vpopmail/etc/tcp.smtp.cdb -c $MAXSMTPD \ -u $QMAILDUID -g $NOFILESGID 0 smtp /var/qmail/bin/qmail-smtpd 21 /var/qmail/bin/qmailctl - #!/bin/sh # description: the qmail MTA PATH=/var/qmail/bin:/bin:/usr/bin:/usr/local/bin:/usr/local/sbin export PATH QMAILDUID=`id -u qmaild` NOFILESGID=`id -g qmaild` case $1 in start) echo Starting qmail if svok /service/qmail-send ; then svc -u /service/qmail-send /service/qmail-send/log else echo qmail-send supervise not running fi if svok /service/qmail-smtpd ; then svc -u /service/qmail-smtpd /service/qmail-smtpd/log else echo qmail-smtpd supervise not running fi if [ -d /var/lock/subsys ]; then touch /var/lock/subsys/qmail fi ;; stop) echo Stopping qmail... echo qmail-smtpd svc -d /service/qmail-smtpd /service/qmail-smtpd/log
Re: [vchkpw] Romaing User problems
Something to try.. I use mysql roaming users vs. cdb, but it seems your problem could be the run file for qmail-smtpd exec /usr/local/bin/softlimit -m 200 \ /usr/local/bin/tcpserver -v -R -l $LOCAL -x /etc/tcp.smtp.cdb -c $MAXSMTPD \ -u $QMAILDUID -g $NOFILESGID 0 smtp /var/qmail/bin/qmail-smtpd 21 vpopmail is whats creating the files in ~vpopmail/etc, and smtpd is using /etc/tcp.smtp.cdb.. try -x /home/vpopmail/etc/tcp.smtp.cdb and see if mail gets through, but backup your cdb files first.. - Original Message - From: John Boynton [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 29, 2003 3:30 PM Subject: [vchkpw] Romaing User problems I have installed qmail and vpopmail. I have used --enable-roaming-users=y and I am able to send and receive mail, if the IP address is listed in the /etc/tcp.smtp file. When a user logs in to get authenticated by pop a new file is created in the /home/vpopmail/etc dir with a name of open-smtp.tmp.23486, with different numbers. These files are all blank. If I edit any of the files in the /home/vpopmail/etc dir the is no difference. If I edit /etc/tcp.smtp, manually add the IP and reload the cdb it will allow the user to send. I am certain it is something in my configuration for qmail-smtpd. Any help that you can offer I would greatly appreciate it. Thanks in advance, John B /var/qmail/supervise/qmail-smtpd/run: #!/bin/sh QMAILDUID=`id -u qmaild` NOFILESGID=`id -g qmaild` MAXSMTPD=`cat /var/qmail/control/concurrencyincoming` LOCAL=`head -1 /var/qmail/control/me` if [ -z $QMAILDUID -o -z $NOFILESGID -o -z $MAXSMTPD -o -z $LOCAL ]; then echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in echo /var/qmail/supervise/qmail-smtpd/run exit 1 fi if [ ! -f /var/qmail/control/rcpthosts ]; then echo No /var/qmail/control/rcpthosts! echo Refusing to start SMTP listener because it'll create an open relay exit 1 fi exec /usr/local/bin/softlimit -m 200 \ /usr/local/bin/tcpserver -v -R -l $LOCAL -x /etc/tcp.smtp.cdb -c $MAXSMTPD \ -u $QMAILDUID -g $NOFILESGID 0 smtp /var/qmail/bin/qmail-smtpd 21 /var/qmail/supervise/qmail-smtpd/log/run: #!/bin/sh exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t /var/log/qmail/smtpd /var/qmail/supervise/qmail-send/run: #!/bin/sh exec /var/qmail/rc /var/qmail/supervise/qmail-send/log/run: #!/bin/sh exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t /var/log/qmail /var/qmail/rc #!/bin/sh # Using stdout for logging # Using control/defaultdelivery from qmail-local to deliver messages by default exec env - PATH=/var/qmail/bin:$PATH \ qmail-start `cat /var/qmail/control/defaultdelivery`
Re: [vchkpw] mysql relay table frustrations
the problem with the relaying is actually related to courier-imap.. if you configured vpopmail with --enable-mysql=y --enable-roaming-users=y then you are setup for mysql relaying.. i have tried the tcpserver patches and it seems to work although never really gets triggered.. (if you have an ipv4/ipv6 enabled imap server then the mysql enabled tcpserver is a pain in the rectum) plain vpopmail-5.3.X series is ready to go in this department, however a patch needs to be applied to courier-imap. you can verify this by looking for the existence of a vpopmail.relay table.. if you have the table but no rows of data, all you are missing is the /var/qmail/control/sql file and the courier-imap patch.. roaming users with courier-imap was working up until the 1.53 series.. beyond that a patch is needed to remove a bunch of broken and misplaced ifdef's apply this patch to your courier-imap source tree and add -DHAVE_OPEN_SMTP_RELAY -DHAVE_VLOGAUTH to your CFLAGS when you compile it. it has been tested to work with up to courier-imap-2.01.tar.gz but should work with newer versions.. in the past on brand new installs this works to get roaming-user support pretty easily and not messing with cdb files.. let me know how it goes.. Nathan Goodman Unemployed Network Administrator Casualty of April 2003 Cutbacks - Original Message - From: Joseph Kacmarcik [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 11:14 PM Subject: [vchkpw] mysql relay table frustrations hi list! so... i've read a number of posts, looked in a number of places, compiled and recompiled numerous times, but i can't get qmail/vpopmail/courier on linux to write to an sql relay table. everything works except this part. i can authenticate and receive via pop or imap, and either over ssl. i can send using webmail on the local system. i used the same patches and the same configure concoctions to compile the same software on two different freebsd boxes and it works fine (please don't ask why i don't just use the bsd boxes). so, here's my configure lines: no patches to vpopmail. i started with 5.3.23 and am on 5.3.27 now with the same results /usr/local/src/vpopmail-5.3.27 ./configure --enable-mysql=y --enable-roaming-users=y \ --enable-defaultquota=1073741824S,10C --enable-learn-passwords=y \ --enable-logging=p --enable-mysql-logging=y --enable-qmail-ext=y no patches for courier imap. started with 2.1.1, am using 2.1.2 now. /usr/local/src/courier-imap-2.1.2 ./configure --prefix=/usr/local --exec-prefix=/usr/local --without-authldap \ --without-authshadow --with-authvchkpw --without-authcram \ --sysconfdir=/usr/local/etc/courier-imap \ --datadir=/usr/local/share/courier-imap \ --libexecdir=/usr/local/libexec/courier-imap \ --enable-workarounds-for-imap-client-bugs --disable-root-check \ --without-authdaemon --with-redhat my qmail-smtpd startup is: (variables are handled in the script) exec softlimit -m 800 tcpserver -S -R -H -c100 -x /usr/local/vpopmail/etc/tcp.smtp.cdb -u $QMAILUID -g $NOFILESGID 0 smtp qmail-smtpd salo.chubbo.net /usr/local/vpopmail/bin/vchkpw /usr/bin/true splogger smtpd have tried removing path to tcp.smtp.cdb too. /var/qmail/control/sql server localhost port 3306 database vpopmail table relay user vpopmail pass password time 1800 ~vpopmail/etc/vpopmail.mysql localhost|0|vpopmail|password|vpopmail localhost|0|vpopmail|password|vpopmail i'm logging mysql traffic for debugging and i don't see any inserts into the relay table, only selects and deletes (from cron). ucspi was patched with mr simerson's ucspi-tcp-0.88-mysql3+rss.patch although i have tried ucspi-tcp-0.88-mysql+rss.patch with the same results. i really hope i'm stupid this year and it's a simple thing, but i can't figure it out. thoughts and helpful comments appreciated. thanks in advance! joe courier-imap-1.7.3-vpopmail.patch Description: Binary data
[vchkpw] vpopmail-5.3.23
I seem to be having troubles in locating anything above 5.3.20 through the inter7.com website.. Is there another way to go about trying this new 5.3.23? the devel page linked from the front page only shows 5.3.20 as being latest. Would anyone perhaps have a URL to find it at?