Re: vchkpw and qmail smtp-auth patch
Ken, Thanks for the speedy-speedy reply. I took your suggestions, and 1. updated my installation to 4.10.35 (not visibly available on the website, but luckily I knew the version # now...) 2. made the change to my qmail-smtpd invocation such that it now starts up with the uid of the vpopmail user. I get past the "user not found" problem, however I get a different error now: ==8< Aug 23 15:29:07 hostname vpopmail[10214]: vchkpw: password fail [EMAIL PROTECTED]:ip.add.re.ss 8<-- >From my /var/qmail/rc script: tcpserver -v -H -P -R -x /home/vpopmail/etc/tcp.smtp.cdb \ -l $HOST -u $QUSER -g $QGROUP 0 smtp \ /var/qmail/bin/qmail-smtpd $HOST \ /home/vpopmail/bin/vchkpw /bin/true \ /var/qmail/bin/cmd5checkpw /bin/true 2>&1 \ | /var/qmail/bin/splogger smtpd 3 & Where $QUSER is now == `id -u vpopmail` If I use a POP3, IMAP client (or simple telnet), they all authenticate me properly. I still cannot get qmail-stmpd to AUTH properly. Any more suggestions? I tried this using a different ID than given in the IMAP config: (ie: [EMAIL PROTECTED], jdries%domain.com, and just jdries) ... All to no avail. -j On 8/23/01 3:12 PM, "Ken Jones" <[EMAIL PROTECTED]> wrote: > the vpopmail library restricts access to the authentication > information unless running as root or the owner of the > virtual domain. > > You need to either run the smtp server as root or > if all your domains are owned by vpopmail,then run > it as the vpopmail/vchkpw uid/gid > > You might also want to update to 4.10.35 or 4.10.34 -- Joseph F. Dries III Director Information Technology Services Advanced Logic Systems, Inc. 411B Southgate Court Mickleton, NJ 08056 v: 856-423-7701 f: 856-423-7737 http://www.advancedlogicsys.com/
Re: vchkpw and qmail smtp-auth patch
the vpopmail library restricts access to the authentication information unless running as root or the owner of the virtual domain. You need to either run the smtp server as root or if all your domains are owned by vpopmail,then run it as the vpopmail/vchkpw uid/gid You might also want to update to 4.10.35 or 4.10.34 Ken On Thu, 2001-08-23 at 13:59, Joseph F. Dries III wrote: > Hello All, > > I have an installation on FreeBSD 3.4-STABLE of Qmail 1.03 + Various patches > including the SMTP-AUTH patch, Courier-IMAP 1.3.10, vpopmail 4.10.32. > > Vpopmail works fine with qmail-popup/qmail-pop3d. The Courier-IMAP > authentication works fine with vpopmail. > > However, when I try to use vchkpw with the SMTP auth patch, I get the > following error in my system logs: > > ==8< > Aug 23 14:23:36 hostname vpopmail[6401]: vchkpw: vpopmail user not found > [EMAIL PROTECTED]:ip.add.re.ss > 8<-- > > The user is obviously there, as bot POP3 and IMAP authentication are > working. It is reporting the correct user account and domain name, and the > correct IP address in the log. > > Here is how I have qmail-smtpd invoked using vchkpw: > > tcpserver -v -H -P -R -x /home/vpopmail/etc/tcp.smtp.cdb \ > -l $HOST -u $QUSER -g $QGROUP 0 smtp \ > /var/qmail/bin/qmail-smtpd $HOST \ > /home/vpopmail/bin/vchkpw /bin/true \ > /var/qmail/bin/cmd5checkpw /bin/true 2>&1 \ > | /var/qmail/bin/splogger smtpd 3 & > > Where QUSER=`id -u qmaild`, QGROUP=89, $HOST=hostname.domain.com. > > I've looked through the code briefly, but cannot see how it would fail in > this fashion. It's difficult to trace what is happening, as I cannot just > attach a strace/truss monitor and follow the vchkpw children. (Wrapping it > would be difficult, as this is a production machine) > > Any thoughts, obvious omissions, or glaring errors? > > -j >
vchkpw and qmail smtp-auth patch
Hello All, I have an installation on FreeBSD 3.4-STABLE of Qmail 1.03 + Various patches including the SMTP-AUTH patch, Courier-IMAP 1.3.10, vpopmail 4.10.32. Vpopmail works fine with qmail-popup/qmail-pop3d. The Courier-IMAP authentication works fine with vpopmail. However, when I try to use vchkpw with the SMTP auth patch, I get the following error in my system logs: ==8< Aug 23 14:23:36 hostname vpopmail[6401]: vchkpw: vpopmail user not found [EMAIL PROTECTED]:ip.add.re.ss 8<-- The user is obviously there, as bot POP3 and IMAP authentication are working. It is reporting the correct user account and domain name, and the correct IP address in the log. Here is how I have qmail-smtpd invoked using vchkpw: tcpserver -v -H -P -R -x /home/vpopmail/etc/tcp.smtp.cdb \ -l $HOST -u $QUSER -g $QGROUP 0 smtp \ /var/qmail/bin/qmail-smtpd $HOST \ /home/vpopmail/bin/vchkpw /bin/true \ /var/qmail/bin/cmd5checkpw /bin/true 2>&1 \ | /var/qmail/bin/splogger smtpd 3 & Where QUSER=`id -u qmaild`, QGROUP=89, $HOST=hostname.domain.com. I've looked through the code briefly, but cannot see how it would fail in this fashion. It's difficult to trace what is happening, as I cannot just attach a strace/truss monitor and follow the vchkpw children. (Wrapping it would be difficult, as this is a production machine) Any thoughts, obvious omissions, or glaring errors? -j -- Joseph F. Dries III Director Information Technology Services Advanced Logic Systems, Inc. 411B Southgate Court Mickleton, NJ 08056 v: 856-423-7701 f: 856-423-7737 http://www.advancedlogicsys.com/