RE: [vchkpw] Problem adjusting vpopmail.c in 5.4.4
Tom Collins wrote: Also take a look at http://vpopmail.sf.net/. in the patches section I think there's code to copy a skeleton directory for new users. Ah, that'd be useful: I currently have a script that wraps vadduser, rather than hacking on the source, so this'd make more sense. Cheers, Roger.
RE: [vchkpw] [semi-OT] bincimap and vpopmail
Andrea Riela wrote: Hi folks, I don't understand the problem at http://lifewithbincimap.org/index.php/HelpMe/QmailVpopmail. There's someone that could help me to configure bincimap with vpopmail and vchkpw? I've to patch vpopmail? As far as I understand it, no patches are required if you're using 5.4.0 or newer. Here's what I did to install qmail+vpopmail+binc+ezmlm: http://www.differentpla.net/node/view/165 Cheers, Roger.
RE: [vchkpw] Help needed with vpopmail-5.4.0 and SMTPAUTH
Sebastien FOUTREL wrote: Hello, I use this HOWTO to install qmail with vpopmail but did not wanted to use the --enable-roaming-users=y so I set it to --enable-roaming-users=n and now I want to use the SMTPAUTH as described in http://www.fehcom.de/qmail/smtpauth.html but I always get an error message when I want to send a message. What error message? Any help would be greatly appreciated. I just got it working correctly (AFAICT) on my test box last week. Dunno if my notes'll help, but feel free: http://www.differentpla.net/node/view/165, particularly the paragraph titled SMTP AUTH with vpopmail on this page: http://www.differentpla.net/node/view/170 Cheers, Roger.
RE: [vchkpw] Using qmail-smtp-auth with vchkpw
Kit Halsted wrote: At 3:36 PM + 3/10/04, Roger Lipscombe wrote: Now, I've fixed it by making vchkpw setuid/setgid, as follows: My question: is this the right thing to do? I don't think so. Is there a better way to do this? AFAIK, you must run qmail-smtpd as the vpopmail user, see below for what works for me. I've changed it to do this, and it works fine now. Thanks! Regards, Roger.
[vchkpw] Using qmail-smtp-auth with vchkpw
Hi, I'm installing vpopmail on a new system, and I've got a question about SMTP AUTH. I want to allow selective relaying, and I can't use SMTP-after-POP (and frankly, it strikes me as a hack, anyway). I'm using the qmail-smtp-auth patch listed here: http://www.qmail.org/netqmail/ I've installed qmail according to LWQ, which means that my qmail-smtpd service runs as qmaild.nofiles which, in turn, means that vchkpw cannot access the /home/vpopmail/domains directory. My /var/qmail/supervise/qmail-smtpd/run file is attached below. Now, I've fixed it by making vchkpw setuid/setgid, as follows: # chmod u+s /home/vpopmail/bin/vchkpw # chmod g+s /home/vpopmail/bin/vchkpw My question: is this the right thing to do? Is there a better way to do this? Regards, Roger. /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 300 \ /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 \ /home/vpopmail/bin/vchkpw \ /bin/true 21
[vchkpw] ./configure --enable-qmail-ext
What does this do? I'm using vpopmail-5.4.0 I've turned this switch on and it doesn't appear to do anything useful. I still need to add /home/vpopmail/domains/whatever.com/.qmail-user-ext files containing ./user/Maildir/. Does this switch, in fact, actually do anything? Surely it ought to do something interesting, like change vadduser so that it creates a /home/vpopmail/domains/whatever.com/.qmail-user-default file or something? Cheers, Roger.
[vchkpw] Converting existing qmail installation to use vpopmail
I've got an existing qmail installation (installed according to LWQ). I've got the SMTP AUTH patch from http://members.elysium.pl/brush/qmail-smtpd-auth/. Currently, I'm processing the mail for several domains on the box, using system accounts for all users (of which there are 7 -- it's a personal box). This means that all users have email addresses on all of the domains that this box serves (of which there are 5). They generally only give one of them out, though. I'd like to start handling email for yet another domain, but I'd like to start separating the user accounts. The machine handles SMTP (using SMTP AUTH for roaming users) and POP3. It also hosts several top-level (/var/qmail/alias) mailing lists (using ezmlm-idx). I'd like to add IMAP. So, I'm thinking of installing vpopmail to do this. I have some questions: 1. Can I install it incrementally? I'd like to break as little as possible. Can I install it solely for the new domain, and then gradually migrate the other domains across? 2. Can I use the vchkpw program with the SMTP AUTH patch? Currently I'm using cmd5checkpw from http://members.elysium.pl/brush/cmd5checkpw/. 3. Can I use the vchkpw program with BincIMAP? This is the IMAP server that I'm currently investigating. 4. Is it easy to use the CDB authentication? With only 7 or so users, it seems like overkill to use mysql. Cheers, Roger.