On Wednesday, November 21, 2001, at 02:17 PM, Dan Serban wrote: > I've been struggling with this for over a week, I don't understand why > it's > not working, but nothing my machine does seems to be the norm. At this > point I cannot relay messages out. I use courier IMAP and vpopmail and > of > course qmail. From what I gather, when a user authenticates through > IMAP, > vpopmail should lock ~vpopmail/etc/open.smtp and add the login users' > IP to > the environment and opens relaying for the specific user. This does not > seem to work correctly, it errors out with the basic (that host isn't > in my > relay hosts file) message. It seems that vpopmail isn't doing what it > was > touted to do. I've used the --enable-roaming-users=y configure option > and > have changed the imapd config file in /usr/lib/courier-imap/etc/ the > AUTHMODULES="authdaemon" and the authdaemonrc file has > authmodulelist="authvchkpw authshadow authpwd". I can authenticate > through > courier-imap no problem, I can't send any mail through the virtual > domain > ... I have tried setting the SMTP server to the main domain name that > qmail > reflects through most of its /var/qmail/control/ files such as > defaultdomain > etc. Is there something I should pay close attention to in the > /var/qmail/control/ directory? locals, virtualdomains etc..? _please_ > help > me I'm almost ready to call uncle on this.
Ken, This is coming up so often now, it might be useful to put up a link on the vpopmail page called "Notes on using courier-imap with vpopmail and roaming users". It could have this information in it: To get courier-imap to allow "roaming users" with vpopmail, 3 things need to happen: 1. You cannot use authdaemon. Compile courier-imap with --without-authdaemon --with-authvchkpw. 2. Courier-imap's configure script does not properly detect that libvpopmail has roaming users support. To force this, do `export CFLAGS="$MYFLAGS -DHAVE_OPEN_SMTP_RELAY"` before running configure. 3. Courier-imap's couriertcpd and tcpserver should run as the same user if they both will be doing roaming users. This is so that the open-smtp file has correct ownership afte a relay has been opened. If you are only authenticating vpopmail users, you should run couriertcpd as -user=vpopmail and -group=vchkpw. You'll need to add these options to imapd.rc and imapd-ssl.rc after couriertcpd is called. If you are authentication other users, you should probably run both tcpserver and couriertcpd as root (default for couriertcpd). Regards, Bill Shupp