Hi dan, Regarding sending mail , have u created a tcp.smtpd.cdb file . I know there are no instructions regarding this in the vpopmail doc so this is what u need to do ..assuming the tcp.smtpd file exists in /home/vpopmail/etc
tcprules /home/vpopmail/etc/tcp.smtpd.cdb /home/vpopmail/etc/tcp.smtpd.tmp < /home/vpopmail/etc/tcp.smtpd the tcp.smtpd file must contain ur whitelist entries including 127.0.0.1 and ur local ip address. verify that the newly created file is readable by qmail Your second problem seems to be a permission problem. Verify that all ur domain directories and files under vpopmail are owned by vpopmail:vchkpw . Hope this helps Regards Mojo ----- Original Message ----- From: "Dan Serban" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 21, 2001 2:16 PM Subject: Problems with vpopmail and courier-imap > Ok here comes the plea for help, to qualify myself: This is the first time > I've worked with qmail/courier/vpopmail so I can certainly be considered a > newbie, but please read on since I've certainly pulled the RTFM trick many > times, searched the mailing list archives and the bits and pieces don't seem > to fit. > > Scenario: > > - qMail 1.03 (Installed based on the instructions in "Life with qmail" up to > http://www.lifewithqmail.org/lwq.html#relaying at that point I started > installing vpopmail) > > - vpopmail 5.0 (Installed with the following options for > configure: --enable-roaming-users=y --enable-clear-passwd=y --enable-hardquo > ta=n --enable-default-domain=maxisphere.com --enable-relay-clear-minutes=120 > , I then followed the instructions in the INSTALL file to a tee) > > - courier-imap (Installed according to the instructions included in the > INSTALL file, made package with --enable-workarounds-for-imap-client-bugs > option and as non-root user, installed with the make install-strip option) > > Here's the rest of it, I'm setting up a new system which hosts over 200 > domains, now I was fed up with the unruly setup involved with sendmail, I've > done it too many times to count and I hated the instability when it came to > virtual domains, either you weren't specific enough, or being too specific. > So, fed up, I went with qmail on this machine, and regretting it at this > point since it needs to be production quality a week ago. Problem was that > I didn't give myself enough time to get acquainted with the ins and outs > that are involved with qmail. > > So, 200 domains, all having DNS records with MX pointers to > mail.domainname.com. I'd like to offer POP access as well as IMAP to the > users using this machine. > > So after that small bit of intro jabber, here's my problem. At this point, > I've set up vpopmail according to the instructions and it seems to work > according to what it's supposed to be doing. Though I'm finding the > documentation unclear as I am completely unfamiliar with what each package > is supposed to do exactly. > > First problem: > > Cannot send out any mail at all through SMTP services. This is what the > /var/log/qmail/smtp/current log reads: > > @400000003bfb63f7224b0b8c tcpserver: end 2876 status 28416 > @400000003bfb63f7224b1b2c tcpserver: status: 0/20 > @400000003bfb648b272ea5b4 tcpserver: status: 1/20 > @400000003bfb648b2731591c tcpserver: pid 2903 from 24.77.193.12 > @400000003bfb648b28bf5004 tcpserver: warning: dropping connection, unable to > read /home/vpopmail/etc/tcp.smtpd.cdb: file does > not exist > @400000003bfb648b28c3341c tcpserver: end 2903 status 28416 > @400000003bfb648b28c347a4 tcpserver: status: 0/20 > @400000003bfb6499158865d4 tcpserver: status: 0/20 > @400000003bfb64a52655c244 tcpserver: status: 1/20 > @400000003bfb64a526583b14 tcpserver: pid 2926 from 24.77.193.12 > @400000003bfb64a526c1fd4c tcpserver: warning: dropping connection, unable to > read /etc/tcp.smtpd.cdb: file does not exist > > Ok so the above example shows the two possibilities of where qmail can check > for roaming users access. In the first example, I populated a tcp.smtpd > file listing every IP aliased on this machine. The > /var/qmail/supervise/qmail-smtpd/run script contained the following code: > > #!/bin/sh > QMAILUID=`id -u qmaild` > NOFILESGID=`id -g qmaild` > MAXSMTPD=`cat /var/qmail/control/concurrencyincoming` > exec /usr/local/bin/softlimit -m 4000000 \ > /usr/local/bin/tcpserver -v -R -l 0 -x > /home/vpopmail/etc/tcp.smtpd.cdb -c "$MAXSMTPD" \ > -u "$QMAILUID" -g "$NOFILESGID" 0 smtp /var/qmail/bin/qmail-smtpd > 2>&1 > > As the example in the FAQ showed. (the above was derived from life with > qmail). > > On my second attempt, all I did was to change the > /home/vpopmail/etc/tcp.smtpd.cdb back to /etc/tcp.smtpd.cdb > > Neither has worked for me, the error logs speak for themselves...? > > Secondly, if I send an e-mail from a outside address to any domain on this > machine, they seem to get stuck in the queue. If I locally type out a > message on the command line such ass echo "This is a test" |mail > [EMAIL PROTECTED] it works perfectly, from any shell account on > that machine, I log in happily through courier IMAP and see the messages, > but again, if the message originates from an outside source, the queue holds > it and this is what the logs report: > > @400000003bfaf3b50720c694 status: local 1/10 remote 0/20 > @400000003bfaf3b507ce96ac delivery 12: deferral: > Unable_to_chdir_to_maildir._(#4.2.1)/ > @400000003bfaf3b507ceb204 status: local 0/10 remote 0/20 > @400000003bfafcd00fa9c5f4 status: exiting > @400000003bfafd1a0f5c7ccc status: local 0/10 remote 0/20 > @400000003bfb0228202ea7b4 starting delivery 1: msg 3342584 to local > [EMAIL PROTECTED] > @400000003bfb0228202ecadc status: local 1/10 remote 0/20 > @400000003bfb0228216e76cc delivery 1: deferral: > Unable_to_chdir_to_maildir._(#4.2.1)/ > @400000003bfb0228216e99f4 status: local 0/10 remote 0/20 > @400000003bfb022e22efac14 starting delivery 2: msg 3342586 to local > [EMAIL PROTECTED] > @400000003bfb022e22efd324 status: local 1/10 remote 0/20 > @400000003bfb022e2347fd74 delivery 2: deferral: > Unable_to_chdir_to_maildir._(#4.2.1)/ > @400000003bfb022e2348209c status: local 0/10 remote 0/20 > @400000003bfb035524e70f44 starting delivery 3: msg 3342590 to local > [EMAIL PROTECTED] > @400000003bfb035524e73654 status: local 1/10 remote 0/20 > @400000003bfb0355253c72a4 delivery 3: deferral: > Unable_to_chdir_to_maildir._(#4.2.1)/ > @400000003bfb0355253c95cc status: local 0/10 remote 0/20 > @400000003bfb035b25ebbda4 starting delivery 4: msg 3342591 to local > [EMAIL PROTECTED] > @400000003bfb035b25ebd8fc status: local 1/10 remote 0/20 > @400000003bfb035b263d8ef4 delivery 4: deferral: > Unable_to_chdir_to_maildir._(#4.2.1)/ > @400000003bfb035b263db21c status: local 0/10 remote 0/20 > @400000003bfb0b27052b8e14 new msg 3342572 > @400000003bfb0b270532ae4c info msg 3342572: bytes 245 from > <[EMAIL PROTECTED]> qp 1358 uid 0 > @400000003bfb0b27063b8714 starting delivery 5: msg 3342572 to local > [EMAIL PROTECTED] > @400000003bfb0b27063ba654 status: local 1/10 remote 0/20 > @400000003bfb0b2709dc44e4 delivery 5: success: did_0+0+1/ > @400000003bfb0b2709dc6424 status: local 0/10 remote 0/20 > @400000003bfb0b2709dc6fdc end msg 3342572 > @400000003bfb0b880ad2c274 starting delivery 6: msg 3342587 to local > [EMAIL PROTECTED] > @400000003bfb0b880ad2e59c status: local 1/10 remote 0/20 > @400000003bfb0b880c425fd4 delivery 6: success: did_1+0+0/ > @400000003bfb0b880ce1d80c status: local 0/10 remote 0/20 > @400000003bfb0b880ce1eb94 end msg 3342587 > @400000003bfb0b8e0df5cc94 starting delivery 7: msg 3342588 to local > [EMAIL PROTECTED] > > The above is a part of the log in /var/log/qmail/current and it illustrates > me going through the following steps... I have the user dserban as a shell > account on this machine, but the intended recipient that the e-mail coming > in is [EMAIL PROTECTED] which is a virtual domain, obviously > qmail-send is somehow setup wrong and not recognizing vpopmail. The dserban > shell account didn't have a Maildir structure set up and qmail was > complaining about it, so just to see that the actual messages did end up > coming in, I created the Maildir structure, and it's delivering fine now, > just to the wrong user... it should be delivering it to > /home/vpopmail/hamletbuildings.com/dserban/... From what I've posted, could > someone give me some pointers? I'm running into large walls with this, and > I'd like to have it resolved soon. I won't post my complete config here > just because this message is certainly long enough, I will if anyone > requires more information. > > Thank you all in advance (only just if you made it down this far :). > > Dan Serban > > >