Re: [vchkpw] Qmail SMTP AUTH + vchkpw on 64 bit...
Am Donnerstag, 19. August 2004 19:36 schrieb Tom Collins: Could someone with this problem use strace (or ptrace?) to get a trace of what happens when vchkpw is called? It should be as easy as adding: /usr/bin/strace -ff -o /tmp/vchkpw.dump right before /home/vpopmail/bin/vchkpw in the qmail-smtpd/run file. Attempt a SMTP AUTH connection, and then send me a copy of the /tmp/vchkpw.dump file and I'll try to isolate the source of the problem. I'll do it later on today (need some interesting work for Friday afternoon :-) ). If I remember right, we found out, that something went totally wrong concerning hashes and the declaration of their variables (which seem to be different in 32bit and 64 bit - short integer!). For the fact that I am not a coder, I just try to remember what Erwin Hoffmann and some other people tried to explain me after they did some debugging on my machine. Like mentioned above, I'll post the output later. Greetings Tobias
[vchkpw] can not login on pop3 - crypt on slackware
I've got a new server with - Slackware 10 - qmail - vpopmail - qmailadmin and some other not so relevant stuff. It's all setup so that mail is delivered in the Maildir/new directory, I can see the mails I send to the server BUT I can not login with pop3 or IMAP. I found the following A in the FAQ: 21. Why can't pop authenticate on my slackware distribution. Some distributions of slackware (current distro as of July/2000) do not come with a functional crypt routine. To fix the problem you must install the real crypt libraries and recompile My question: Where do I get this Real Crypt? Many greetings, Elger Postema
Re: [vchkpw] can not login on pop3 - crypt on slackware
[EMAIL PROTECTED] wrote: I've got a new server with - Slackware 10 It's all setup so that mail is delivered in the Maildir/new directory, I can see the mails I send to the server BUT I can not login with pop3 or IMAP. I found the following A in the FAQ: 21. Why can't pop authenticate on my slackware distribution. Some distributions of slackware (current distro as of July/2000) do not come with a functional crypt routine. To fix the problem you must install the real crypt libraries and recompile My question: Where do I get this Real Crypt? Hi, I have more than a few Slackware machines setup the same way and I have no problem at all logging in with pop or IMAP. I tend to think your problem is more permission related. Can you show us your run scripts for pop and /or IMAP ? Regards, Rick
RE: [vchkpw] can not login on pop3 - crypt on slackware
[EMAIL PROTECTED] wrote: I've got a new server with - Slackware 10 It's all setup so that mail is delivered in the Maildir/new directory, I can see the mails I send to the server BUT I can not login with pop3 or IMAP. I found the following A in the FAQ: 21. Why can't pop authenticate on my slackware distribution. Some distributions of slackware (current distro as of July/2000) do not come with a functional crypt routine. To fix the problem you must install the real crypt libraries and recompile My question: Where do I get this Real Crypt? Hi, I have more than a few Slackware machines setup the same way and I have no problem at all logging in with pop or IMAP. I tend to think your problem is more permission related. Can you show us your run scripts for pop and /or IMAP ? Regards, Rick Ow Right! That must be it! I never told pop3d and IMAP something about using vpopmail Could you help me? Get ready for some code: --- --- --- ---In the /etc/rc.d/rc.local: # Start the pop3 en imap service /etc/rc.d/rc.pop3d start /etc/rc.d/rc.imapd start --- --- --- --- end of /etc/rc.d/rc.local --- --- --- ---In the /etc/rc.d/rc.pop3d #! /bin/sh # $Id: pop3d.rc.in,v 1.12 2004/04/18 15:54:38 mrsam Exp $ # # Copyright 1998 - 2002 Double Precision, Inc. # See COPYING for distribution information. prefix=/usr exec_prefix=/usr bindir=${exec_prefix}/bin libexecdir=/usr/libexec if test ! -f /etc/pop3d then echo /etc/pop3d does not exist, forgot make install-configure? exit 1 fi if test ! -f /etc/pop3d-ssl then echo /etc/pop3d-ssl does not exist, forgot make install-configure? exit 1 fi . /etc/pop3d-ssl . /etc/pop3d case $1 in start) LIBAUTHMODULES= for f in `echo $AUTHMODULES` do LIBAUTHMODULES=$LIBAUTHMODULES /usr/libexec/authlib/$f done if test -x ${libexecdir}/authlib/authdaemond then /usr/bin/env - DEBUG_LOGIN=$DEBUG_LOGIN ${libexecdir}/authlib/authdaemond start fi /usr/bin/env - /bin/sh -c set -a ; prefix=/usr ; exec_prefix=/usr ; bindir=${exec_prefix}/bin ; libexecdir=/usr/libexec ; . /etc/pop3d ; \ . /etc/pop3d-ssl ; \ TLS_PROTOCOL=$TLS_STARTTLS_PROTOCOL ; \ export TLS_PROTOCOL ; /usr/libexec/couriertcpd -address=$ADDRESS \ -stderrlogger=${exec_prefix}/sbin/courierlogger \ -stderrloggername=pop3d \ -maxprocs=$MAXDAEMONS -maxperip=$MAXPERIP \ -pid=$PIDFILE $TCPDOPTS \ $PORT ${exec_prefix}/sbin/pop3login $LIBAUTHMODULES \ ${exec_prefix}/bin/pop3d ${MAILDIRPATH} ;; stop) /usr/libexec/couriertcpd -pid=$PIDFILE -stop if test -x ${libexecdir}/authlib/authdaemond then ${libexecdir}/authlib/authdaemond stop fi ;; esac exit 0 --- --- --- --- end of /etc/rc.d/rc.pop3d --- --- --- ---In the /etc/rc.d/rc.imapd #! /bin/sh # $Id: imapd.rc.in,v 1.26 2004/04/18 15:54:38 mrsam Exp $ # # Copyright 1998 - 2002 Double Precision, Inc. # See COPYING for distribution information. prefix=/usr exec_prefix=/usr bindir=${exec_prefix}/bin libexecdir=/usr/libexec if test ! -f /etc/imapd then echo /etc/imapd does not exist, forgot make install-configure? exit 1 fi if test ! -f /etc/imapd-ssl then echo /etc/imapd-ssl does not exist, forgot make install-configure? exit 1 fi TLS_CACHEFILE= . /etc/imapd-ssl . /etc/imapd case $1 in start) LIBAUTHMODULES= for f in `echo $AUTHMODULES` do LIBAUTHMODULES=$LIBAUTHMODULES /usr/libexec/authlib/$f done if test -x ${libexecdir}/authlib/authdaemond then /usr/bin/env - DEBUG_LOGIN=$DEBUG_LOGIN ${libexecdir}/authlib/authdaemond start fi if test $TLS_CACHEFILE != then rm -f $TLS_CACHEFILE fi ulimit -v $IMAP_ULIMITD /usr/bin/env - /bin/sh -c set -a ; prefix=/usr ; exec_prefix=/usr ; bindir=${exec_prefix}/bin ; libexecdir=/usr/libexec ; . /etc/imapd ; \ . /etc/imapd-ssl ; \ IMAP_STARTTLS=$IMAPDSTARTTLS ; export IMAP_STARTTLS ; \ TLS_PROTOCOL=$TLS_STARTTLS_PROTOCOL ; \ /usr/libexec/couriertcpd -address=$ADDRESS \ -stderrlogger=${exec_prefix}/sbin/courierlogger \ -stderrloggername=imapd \ -maxprocs=$MAXDAEMONS -maxperip=$MAXPERIP \ -pid=$PIDFILE $TCPDOPTS \ $PORT
Re: [vchkpw] can not login on pop3 - crypt on slackware
[EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Ow Right! That must be it! I never told pop3d and IMAP something about using vpopmail Could you help me? Hi, What was your configure line for compiling courier-imap ? What user did you compile courier-imap as ? What does the line authmodulelist= in /usr/lib/courier-imap/etc/authdaemonrc ? Regards, Rick
RE: [vchkpw] can not login on pop3 - crypt on slackware
[EMAIL PROTECTED] wrote: Ow Right! That must be it! I never told pop3d and IMAP something about using vpopmail Could you help me? Hi, What was your configure line for compiling courier-imap ? What user did you compile courier-imap as ? What does the line authmodulelist= in /usr/lib/courier-imap/etc/authdaemonrc ? Regards, Rick Hi Rick, You must think I'm a dork for the following awnser but I had the server installed by someone else .. I think they installed courier-imap (because in the Maildir of my Linux account witch I can access though pop3 and imap suddenly has files called courierimap... in it).
RE: [vchkpw] can not login on pop3 - crypt on slackware
Oeps .. pressed SEND by accident .. here is the rest: [EMAIL PROTECTED] wrote: Ow Right! That must be it! I never told pop3d and IMAP something about using vpopmail Could you help me? Hi, What was your configure line for compiling courier-imap ? What user did you compile courier-imap as ? What does the line authmodulelist= in /usr/lib/courier-imap/etc/authdaemonrc ? Regards, Rick Hi Rick, You must think I'm a dork for the following awnser but I had the server installed by someone else .. I think they installed courier-imap (because in the Maildir of my Linux account witch I can access though pop3 and imap suddenly has files called courierimap... in it). How can I see what is / isn't installed? The /usr/lib/courier-imap/etc/authdaemonrc Does not exist .. Regards Elger
Re: [vchkpw] questions on implementing/converting
James Whitt wrote: I actually have two questions. The first one is if anybody has experience with converting a qmail system from vmailmgr to vpopmail. We have devised ways of doing it, but if anybody has already done it and has to do's/don'ts/pointers they came across I would appreciate it if you would share them. Not me, sorry. Second question. We have a lot of domains that resided on our server and due to directory limitations, can not have all the domains reside in ~path/vpopmail/domains. Is there any good solutions that people know of? The only one that we have come up with is to modify the code to add the domain directories into sublevels (ie ~path/vpopmail/domains/a-e/, ~path/vpopmail/domains/f-n, etc). After considering this, I realized that this probably would require a lot of changes in the code which is possible but we're hoping for a shorter time frame to get it up and going. I do have some experience on mail conversions, first from a sendmail box to two vpopmail boxes, then from the two vpopmail boxes to a cluster behind a MailScanner box. I have some strong opinions on this. Take them for exactly that, opinions ;^) Conversions are messy, avoid them, they will give you more heartache than success. Having inherited the last conversion I would opt for building a complete new box, configured, setup, tested, before I did anything else. Then I would script the adding of all accounts onto the new box. This could be done from a list made of rcpthosts, and morercpthosts files along with your vpasswd files. vadddomain and vadduser respond very well to this. Then I would change DNS and roll your users to the new box in one fell swoop. You could then nfs mount your old Maildirs onto the new box and script the moving of the users mail from the old into the new Maildirs. This will ensure that everything is bright and shiny, nothing is orphaned, no files are left behind or unconverted. You will be assured your dir_control, vpasswd, vlimits files are correct. If I had to do it all again, that is exactly how I would go about it. DAve
RE: [vchkpw] can not login on pop3 - crypt on slackware
Hi Rick, You must think I'm a dork for the following awnser but I had the server installed by someone else .. I think they installed courier-imap (because in the Maildir of my Linux account witch I can access though pop3 and imap suddenly has files called courierimap... in it). How can I see what is / isn't installed? The /usr/lib/courier-imap/etc/authdaemonrc Does not exist .. Hi, Nothing wrong with having someone else install it, but it can lead to problems like this :) It sounds to me like the person you got to install it, installed it for standard Unix password users and not for vpopmail. You will apparently have to contact them and get them to fix it because it seems that it was not installed in the standard place. A good page to help install it is http://www.shupp.org/toaster/#courier-imap Regards, Rick It's me again: I found /usr/lib/courier-imap/etc/authdaemonrc it belongs to root:root It means courier-imap is installed but under the wrong user .. As you said! On the help page you suggested I found: -Edit /usr/lib/courier-imap/etc/imapd --Change 'IMAPDSTART=NO' to 'IMAPDSTART=YES' And -Edit /usr/lib/courier-imap/etc/imapd-ssl --Change 'IMAPDSSLSTART=NO' to 'IMAPDSSLSTART=YES' Needed to be done ... so I did.. I'll now try to find out how to re-install the courier-imap Tnx for you help so far Elger
Re: [vchkpw] questions on implementing/converting
On Aug 19, 2004, at 10:47 PM, James Whitt wrote: Second question. We have a lot of domains that resided on our server and due to directory limitations, can not have all the domains reside in ~path/vpopmail/domains. Is there any good solutions that people know of? The only one that we have come up with is to modify the code to add the domain directories into sublevels (ie ~path/vpopmail/domains/a-e/, ~path/vpopmail/domains/f-n, etc). After considering this, I realized that this probably would require a lot of changes in the code which is possible but we're hoping for a shorter time frame to get it up and going. After adding 100 domains, vpopmail will create a directory called 0 in the vpopmail/domains directory and place the next 100 domains in it. You might be able to get away with just mounting different partitions at those directory points. If 100 is too many, you could change MAX_USERS_PER_LEVEL (defined in vauth.h) to a lower number. -- Tom Collins - [EMAIL PROTECTED] QmailAdmin: http://qmailadmin.sf.net/ Vpopmail: http://vpopmail.sf.net/ Info on the Sniffter hand-held Network Tester: http://sniffter.com/
[vchkpw] valias questions....
issue two... the system does not forward mail to multiple recipients of an alias listed in the valias table... eg... table data of ... somealias domain.com./Maildir somealias domain.com [EMAIL PROTECTED] somealias domain.com[EMAIL PROTECTED] most notably it never arrives in the ./Maildir no errors are reported this is the equivelent of a multi line .qmail-somealias file with the contents of ... ./Maildir [EMAIL PROTECTED] [EMAIL PROTECTED] how would one go about adding a valias record that accomidates delivery to the popaccount and forwarding to other acounts kenneth gf brown
[vchkpw] quotawarn....
hey all... I have been tracking a few issues that are slightly anoying and causing me great concern when running vpopmail on a production site. vpopmail 5.4.5 (I know 5.4.6 is more current however ... the sql injection is the least of my wories at this time!) netqmail-1.0.5 Maildir++ patches applied. qmail-pop3d mysql clean builds and all applicable patches applied. we are using Maildir as the delivery method of choice. issue one... clearing a quotawarn message. the systems fail to clear a quotawarn message for users who pop in and remove mail (once they are over quota). in addition there does not appear to be a method to force a recalculation of the maildirsize without deleting it entirly. the 15min expirey and recalculation of maildir does not appear to be occuring or if it is it fails to remove the quotawarn message. below is a maildirsize for an account in question... original maildirsize file 20971520S,1000C 20972344172 -16375287 -135 -3200873-3 -1396184-34 42348 1 -42348 -1 24151 18571 -4272 -2 18331 -1833 -1 56575 1 -56575 -1 25111 -2511 -1 24091 -2409 -1 18011 16121 -1801 -1 -1612 -1 16661 -1666 -1 11160 1 -11160 -1 55791 778 1 -6357 -2 12152 1 -12152 -1 25231 275814 1 69601 -285297 -3 52781 1880379 1 43591 39684 1 -1929700-4 301056 1 -301056 -1 780 1 10543 1 307468 1 -318791 -3 18231 -1823 -1 40581 -4058 -1 51644 1 51649 1 51648 1 51647 1 51646 1 51647 1 51643 1 51644 1 -51644 -1 -103297 -2 -154940 -3 -51643 -1 -51644 -1 1620451 1 -1620451-1 45781 95931 -14171 -2 18201 59651 56171 -1820 -1 -5965 -1 -5617 -1 19781 -1978 -1 19991 37071 37231 -1999 -1 -7430 -2 31261 -3126 -1 31371 -3137 -1 41311 -4131 -1 44671 -4467 -1 38771 -3877 -1 20221 -2022 -1 18730 1 -18730 -1 34341 1 33811 793 1 -37722 -2 -793-1 11952 1 -11952 -1 26771 -2677 -1 86911 -8691 -1 90461 -9046 -1 12023 1 -12023 -1 17741 -1774 -1 53091 32911 -5309 -1 -3291 -1 71411 27421 -7141 -1 -2742 -1 10827 1 -10827 -1 11441 -1144 -1 67711 -6771 -1 13935 1 -13935 -1 42068 1 -42068 -1 922079 1 20992 1 73091 54511 55341 789 1 20541 1 503616 1 556989 1 556991 1 787 1 354195 1 783 1 46471 57891 713230 1 69955 1 20871 2356089 1 38871 80781 58131 14341 -6127065-23 44631 794 1 -5257 -2 807946 1 -807946 -1 43801 -4380 -1 93591 -9359 -1 69181 -6918 -1 94971 -9497 -1 21651 19001 -4065 -2 11176 1 -11176 -1 33451 69778 1 -73123 -2 29651 -2965 -1 31321 -3132 -1 40951 -4095 -1 780 1 75901 16681 52681 114303 1 44809 1 96211 96261 -193665 -8 39645 1 -39645 -1 56949 1 -56949 -1 11441 -1144 -1 16201 -1620 -1 98955 1 -98955 -1 29801 -2980 -1 reported 0% usage of quota... (ps it all added up correctly) in attempting to debug this issue... maildirsize was deleted from the users account to cause maildirsize to be recalculated... after 7 messages results were 20971520S,1000C 0 0 971 1 -971 -1 778 1 -778 -1 3691 1 -3691 -1 4403 1 -4403 -1 3987 1 -3987 -1 6211 1 -6211 -1 2329 1 -2329 -1 this was looking good however [EMAIL PROTECTED] Maildir]# ls -la total 32 drwx--5 vpopmail vchkpw 4096 Aug 19 17:26 . drwx--3 vpopmail vchkpw 4096 Jul 22 08:08 .. drwx--2 vpopmail vchkpw 8192 Aug 4 21:48 cur -rw---1 vpopmail vchkpw128 Aug 20 09:11 maildirsize drwx--2 vpopmail vchkpw 8192 Aug 20 09:11 new -rw---1 vpopmail vchkpw 0 Aug 3 21:50 quotawarn drwx--2 vpopmail vchkpw 4096 Aug 20 09:10 tmp note the quotawarn message ... set Aug 3 that was not removed... any thoughts? thank you for your time kenneth gf brown