> Hi, > > Did you make sure vpopmail.vchkpw has write access to the new tcp.smtp.cdb > file? > > Regards, > > Rick
Yes. Here is my config. Surely i made some big lamah mistake :) Here is my configuration: cat /service/qmail-smtpd/run #!/bin/sh # Dave Sill, 2001-11-06 # For use with The qmail Handbook, ISBN 1893115402 QMAILDUID=`id -u qmaild` NOFILESGID=`id -g qmaild` MAXSMTPD=`head -1 /var/qmail/control/concurrencyincoming` if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" ]; then echo QMAILDUID, NOFILESGID, or MAXSMTPD is unset in echo $0 exit 1 fi QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" export QMAILQUEUE exec /usr/local/bin/softlimit -m 20000000 \ /usr/local/bin/tcpserver -v -R -H -l 0 -x /home/vpopmail/etc/tcp.smtp.cdb -c "$MAXSMTPD" \ -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp rblsmtpd \ -r bl.spamcop.net \ # ls -al /home/vpopmail/etc/ totale 28 drwxr-xr-x 2 vpopmail vchkpw 4096 set 13 01:31 . drwxr-xr-x 8 vpopmail vchkpw 4096 set 12 20:47 .. -rw-r--r-- 1 vpopmail vchkpw 25 set 10 21:57 inc_deps -rw-r--r-- 1 vpopmail vchkpw 32 set 10 21:57 lib_deps -rw-r--r-- 1 vpopmail vchkpw 118 set 13 01:31 open-smtp -rw-r--r-- 1 vpopmail vchkpw 0 set 13 01:29 open-smtp.lock -rw-r--r-- 1 vpopmail vchkpw 61 set 13 00:30 tcp.smtp -rw-r--r-- 1 vpopmail vchkpw 2141 set 13 01:28 tcp.smtp.cdb well...here is the content of my open-smtp # cat open-smtp 212.97.34.xxx:allow,RELAYCLIENT="",RBLSMTPD="" 1031873097 212.97.44.xxx:allow,RELAYCLIENT="",RBLSMTPD="" 1031873528 It seem correct. Now i try to send mail with the ip 212.97.34.xxx, who SHOULD be allowed. Connected to mail.something.com Escape character is '^]'. 220 ESMTP mail from [EMAIL PROTECTED] 250 ok rcpt to:[EMAIL PROTECTED] 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1) And finally, here is my qmail start script.ù #cat /etc/init.d/qmail #!/bin/sh # For Red Hat chkconfig # chkconfig: - 30 80 # description: the qmail MTA # # Dave Sill, 2001-11-06 # For use with The qmail Handbook, ISBN 1893115402 PATH=/var/qmail/bin:/bin:/usr/bin:/usr/local/bin:/usr/local/sbin export PATH LOG=/var/log/qmailctl echo `date` `tty` $* >>$LOG if [ -d /service/qmail-pop3d ]; then POP=yes else POP=no fi case "$1" in start) echo "Starting qmail" if svok /service/qmail-send ; then svc -u /service/qmail-send 2>&1 | tee -a $LOG else echo qmail-send service not running fi if svok /service/qmail-smtpd ; then svc -u /service/qmail-smtpd 2>&1 | tee -a $LOG else echo qmail-smtpd service not running fi if [ -d /var/lock/subsys ]; then touch /var/lock/subsys/qmail fi if [ $POP = yes ]; then if svok /service/qmail-pop3d ; then svc -u /service/qmail-pop3d else echo qmail-pop3d service not running fi fi ;; stop) echo "Stopping qmail..." echo " qmail-smtpd" svc -d /service/qmail-smtpd 2>&1 | tee -a $LOG echo " qmail-send" svc -d /service/qmail-send 2>&1 | tee -a $LOG if [ -f /var/lock/subsys/qmail ]; then rm /var/lock/subsys/qmail fi if [ $POP = yes ]; then echo " qmail-pop3d" svc -d /service/qmail-pop3d fi ;; stat) svstat /service/qmail-send svstat /service/qmail-send/log svstat /service/qmail-smtpd svstat /service/qmail-smtpd/log if [ $POP = yes ]; then svstat /service/qmail-pop3d svstat /service/qmail-pop3d/log fi qmail-qstat ;; doqueue|alrm|flush) echo "Sending ALRM signal to qmail-send." svc -a /service/qmail-send 2>&1 | tee -a $LOG ;; queue) qmail-qstat qmail-qread ;; reload|hup) echo "Sending HUP signal to qmail-send." svc -h /service/qmail-send 2>&1 | tee -a $LOG ;; pause) echo "Pausing qmail-send" svc -p /service/qmail-send 2>&1 | tee -a $LOG echo "Pausing qmail-smtpd" svc -p /service/qmail-smtpd 2>&1 | tee -a $LOG if [ $POP = yes ]; then echo "Pausing qmail-pop3d" svc -p /service/qmail-pop3d fi ;; cont) echo "Continuing qmail-send" svc -c /service/qmail-send 2>&1 | tee -a $LOG echo "Continuing qmail-smtpd" svc -c /service/qmail-smtpd 2>&1 | tee -a $LOG if [ $POP = yes ]; then echo "Continuing qmail-pop3d" svc -c /service/qmail-pop3d fi ;; restart) echo "Restarting qmail:" echo "* Stopping qmail-smtpd." svc -d /service/qmail-smtpd 2>&1 | tee -a $LOG echo "* Sending qmail-send SIGTERM and restarting." svc -t /service/qmail-send 2>&1 | tee -a $LOG echo "* Restarting qmail-smtpd." svc -u /service/qmail-smtpd 2>&1 | tee -a $LOG if [ $POP = yes ]; then echo "* Restarting qmail-pop3d." svc -t /service/qmail-pop3d fi ;; cdb) tcprules /home/vpopmail/etc/tcp.smtp.cdb /home/vpopmail/etc/tcp.smtp.tmp < /home/vpopmail/etc/tcp.smtp 2>&1 | tee -a $LOG chmod 644 /home/vpopmail/etc/tcp.smtp.cdb echo "Reloaded /home/vpopmail/etc/tcp.smtp." tcprules /etc/tcp.pop3.cdb /etc/tcp.pop3.tmp < /etc/tcp.pop3 2>&1 | tee -a $LOG if [ $POP = yes ]; then chmod 644 /etc/tcp.pop3.cdb echo "Reloaded /etc/tcp.pop3." fi ;; help) cat <<HELP stop -- stops mail service (smtp connections refused, nothing goes out) start -- starts mail service (smtp connection accepted, mail can go out) pause -- temporarily stops mail service (connections accepted, nothing leaves) cont -- continues paused mail service stat -- displays status of mail service cdb -- rebuild the tcpserver cdb file for smtp restart -- stops and restarts smtp, sends qmail-send a TERM & restarts it doqueue -- sends qmail-send ALRM, scheduling queued messages for delivery reload -- sends qmail-send HUP, rereading locals and virtualdomains queue -- shows status of queue alrm -- same as doqueue flush -- same as doqueue hup -- same as reload HELP ;; *) echo "Usage: $0 {start|stop|restart|doqueue|flush|reload|stat|pause|cont|cdb|queue|help}" exit 1 ;; esac exit 0 Well...what's wrong with that? I'm starting to feel in despair :)) Hope you could suggest me something... Sorry if my questions are too low level... Luc