Re: [vchkpw] SMTP relay Problem
Hi all. I'm trying to run SMTP-after-POP with qmail and vpopmail-5.2.1 In the vpopmail's FAQs appears: ..Everytime a user logs into the popserver, his ip and a timestamp gets written to ~vpopmail/etc/open-smtp If he's allowed in, the tcp.smtp.cdb gets regenerated automatically from the open-smtp file and the tcp.smtp file... I run vpopmail with --enable-roaming-users=y and open-smtp file is updated every time a valid pop user is authenticated, but not the tcp.smtp.cdb is regenerated automatically. ?? My /home/vpopmail/etc/ directory: drwxr-xr-x 2 vpopmail vchkpw 4096 sep 15 16:31 . drwxr-xr-x 9 vpopmail vchkpw 4096 abr 12 09:57 .. -rw-r--r-- 1 vpopmail vchkpw 25 sep 13 14:03 inc_deps -rw-r--r-- 1 vpopmail vchkpw 32 sep 13 14:03 lib_deps -rw-r--r-- 1 root root 3374 sep 15 16:31 open-smtp -rw-r--r-- 1 vpopmail vchkpw 1221 sep 6 10:39 open-smtp.bak -rw-r--r-- 1 vpopmail vchkpw 0 sep 15 16:31 open-smtp.lock -rw-rw-rw- 1 vpopmail vchkpw 2692 sep 15 16:15 tcp.smtp -rw-r--r-- 1 vpopmail vchkpw 5480 sep 15 16:15 tcp.smtp.cdb My /var/qmail/supervise/qmail-pop3d/run file: exec /usr/local/bin/softlimit -m 200 \ /usr/local/bin/tcpserver -v -R -H -l 0 0 110 /var/qmail/bin/qmail-popup \ mailplus.elmirador.info /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir 21 it's may be a permission problem? a bug in vpopmail? something I forgot? Thanks a lot, Gabi. yasuyuki TOYODA wrote: Hi,linuman bbb my qmail-smtpd/run file as below exec /usr/local/bin/tcpserver -H -R -x /home/vpopmail/etc/tcp.smtp.cdb -u 502 - g 501 0 smtp recordio /var/qmail/bin/qmail-smtpd 21 -- qmail-pop3d/run as below exec /usr/local/bin/tcpserver -v -H -R 0 pop3 /var/qmail/bin/qmail-popup mydomain.com /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir 21 Above setting perhaps, OK! I don't know recordio. The following contents is my example. Not generally. 1. my original qmailctl script in the cdb section. cdb) cp /home/vpopmail/etc/tcp.smtp.edit /home/vpopmail/etc/tcp.smtp cat /home/vpopmail/etc/open-smtp | colrm 50 \ /home/vpopmail/etc/open-smtp.tmp cat /home/vpopmail/etc/open-smtp.tmp /home/vpopmail/etc/tcp.smtp tcprules /home/vpopmail/etc/tcp.smtp.cdb \ /home/vpopmail/etc/tcp.smtp.tmp /home/vpopmail/etc/tcp.smtp chmod 644 /home/vpopmail/etc/tcp.smtp.cdb rm -rf /home/vpopmail/etc/open-smtp.tmp \ /home/vpopmail/etc/tcp.smtp.tmp 2. Next, cron daemon by my original # # POP before SMTP setting # 0 * * * * /usr/local/var/qmail/bin/qmailctl cdb 1 * * * * /usr/local/var/qmail/bin/qmailctl cdb 2 * * * * /usr/local/var/qmail/bin/qmailctl cdb 3 * * * * /usr/local/var/qmail/bin/qmailctl cdb 4 * * * * /usr/local/var/qmail/bin/qmailctl cdb 5 * * * * /usr/local/var/qmail/bin/qmailctl cdb 6 * * * * /usr/local/var/qmail/bin/qmailctl cdb 7 * * * * /usr/local/var/qmail/bin/qmailctl cdb 8 * * * * /usr/local/var/qmail/bin/qmailctl cdb 9 * * * * /usr/local/var/qmail/bin/qmailctl cdb 10 * * * * /usr/local/var/qmail/bin/qmailctl cdb 11 * * * * /usr/local/var/qmail/bin/qmailctl cdb 12 * * * * /usr/local/var/qmail/bin/qmailctl cdb 13 * * * * /usr/local/var/qmail/bin/qmailctl cdb 14 * * * * /usr/local/var/qmail/bin/qmailctl cdb 15 * * * * /usr/local/var/qmail/bin/qmailctl cdb 16 * * * * /usr/local/var/qmail/bin/qmailctl cdb 17 * * * * /usr/local/var/qmail/bin/qmailctl cdb 18 * * * * /usr/local/var/qmail/bin/qmailctl cdb 19 * * * * /usr/local/var/qmail/bin/qmailctl cdb 20 * * * * /usr/local/var/qmail/bin/qmailctl cdb 21 * * * * /usr/local/var/qmail/bin/qmailctl cdb 22 * * * * /usr/local/var/qmail/bin/qmailctl cdb 23 * * * * /usr/local/var/qmail/bin/qmailctl cdb 24 * * * * /usr/local/var/qmail/bin/qmailctl cdb 25 * * * * /usr/local/var/qmail/bin/qmailctl cdb 26 * * * * /usr/local/var/qmail/bin/qmailctl cdb 27 * * * * /usr/local/var/qmail/bin/qmailctl cdb 28 * * * * /usr/local/var/qmail/bin/qmailctl cdb 29 * * * * /usr/local/var/qmail/bin/qmailctl cdb 30 * * * * /usr/local/var/qmail/bin/qmailctl cdb 31 * * * * /usr/local/var/qmail/bin/qmailctl cdb 32 * * * * /usr/local/var/qmail/bin/qmailctl cdb 33 * * * * /usr/local/var/qmail/bin/qmailctl cdb 34 * * * * /usr/local/var/qmail/bin/qmailctl cdb 35 * * * * /usr/local/var/qmail/bin/qmailctl cdb 36 * * * * /usr/local/var/qmail/bin/qmailctl cdb 37 * * * * /usr/local/var/qmail/bin/qmailctl cdb 38 * * * * /usr/local/var/qmail/bin/qmailctl cdb 39 * * * * /usr/local/var/qmail/bin/qmailctl cdb 40 * * * * /usr/local/var/qmail/bin/qmailctl cdb 41 * * * * /usr/local/var/qmail/bin/qmailctl cdb 42 * * * * /usr/local/var/qmail/bin/qmailctl cdb 43 * * * * /usr/local/var/qmail/bin/qmailctl cdb 44 * * * * /usr/local/var/qmail/bin/qmailctl cdb 45 * * * * /usr/local/var/qmail/bin/qmailctl cdb 46 * * * * /usr/local/var/qmail/bin/qmailctl cdb 47 * * * * /usr/local/var/qmail/bin/qmailctl cdb 48 * * * * /usr/local/var/qmail/bin/qmailctl cdb 49 * * * * /usr/local/var/qmail/bin/qmailctl cdb 50 * * * * /usr/local/var/qmail/bin/qmailctl cdb 51 * * * * /usr/local/var/qmail/bin/qmailctl
Re: [vchkpw] SMTP relay Problem
On Mon, 2003-09-15 at 09:29, gabi wrote: drwxr-xr-x 2 vpopmail vchkpw 4096 sep 15 16:31 . drwxr-xr-x 9 vpopmail vchkpw 4096 abr 12 09:57 .. -rw-r--r-- 1 vpopmail vchkpw 25 sep 13 14:03 inc_deps -rw-r--r-- 1 vpopmail vchkpw 32 sep 13 14:03 lib_deps -rw-r--r-- 1 root root 3374 sep 15 16:31 open-smtp -rw-r--r-- 1 vpopmail vchkpw 1221 sep 6 10:39 open-smtp.bak -rw-r--r-- 1 vpopmail vchkpw 0 sep 15 16:31 open-smtp.lock -rw-rw-rw- 1 vpopmail vchkpw 2692 sep 15 16:15 tcp.smtp -rw-r--r-- 1 vpopmail vchkpw 5480 sep 15 16:15 tcp.smtp.cdb something in there doesn't belong? can we see what it is? :) (hint: look for the word root) it's may be a permission problem? appears so. a bug in vpopmail? no. something I forgot? yes :) Thanks a lot, Gabi. you're welcome -Jeremy -- Jeremy Kitchen Systems Administrator . Inter7 Internet Technologies, Inc. www.inter7.com 866.528.3530 toll free 847.492.0470 int'l 847.492.0632 fax GNUPG key ID: 93BDD6CE
Re: [vchkpw] SMTP relay Problem
Jeremy Kitchen wrote: On Mon, 2003-09-15 at 09:29, gabi wrote: drwxr-xr-x 2 vpopmail vchkpw 4096 sep 15 16:31 . drwxr-xr-x 9 vpopmail vchkpw 4096 abr 12 09:57 .. -rw-r--r-- 1 vpopmail vchkpw 25 sep 13 14:03 inc_deps -rw-r--r-- 1 vpopmail vchkpw 32 sep 13 14:03 lib_deps -rw-r--r-- 1 root root 3374 sep 15 16:31 open-smtp -rw-r--r-- 1 vpopmail vchkpw 1221 sep 6 10:39 open-smtp.bak -rw-r--r-- 1 vpopmail vchkpw 0 sep 15 16:31 open-smtp.lock -rw-rw-rw- 1 vpopmail vchkpw 2692 sep 15 16:15 tcp.smtp -rw-r--r-- 1 vpopmail vchkpw 5480 sep 15 16:15 tcp.smtp.cdb something in there doesn't belong? can we see what it is? :) (hint: look for the word root) mmm, but open-smtp is updated by vpchkpw which is launched by root /usr/local/bin/tcpserver -v -R -H -l 0 0 110 /var/qmail/bin/qmail-popup \ mailplus.elmirador.info /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir 21 like vpopmail install instructions said... env - PATH=/var/qmail/bin:/usr/local/bin \ tcpserver -H -R 0 pop-3 \ /var/qmail/bin/qmail-popup your.domain.com \ /home-dir-of-vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir What should I do then? Thanks, Gabi. it's may be a permission problem? appears so. a bug in vpopmail? no. something I forgot? yes :) Thanks a lot, Gabi. you're welcome -Jeremy
Re: [vchkpw] SMTP relay Problem
Hi, Ganesh Netravali Hey there is nothing to feel ashame. language is just to convey the matter and feelings thats it, thats what I feel. Now a days lots of indians are learning japanis language to establish the good all kind of relationship with Japan. That's sounds good. I'm sure that your efforts never waste in the future. I heard Indian generally are sharp at math. In the future India will overtop Japan. Note: Whenever you are communicationg with others in different language forget your mother toung for time being. The problem comes when you try to translate your mother toung in other language and convey the same thig with whoom you are talking. I'm helped your advice. Thank you. By the way how old r you? I'm 28 years old. I'm embedded software engineer. I belong to ROAD.co.ltd, my company. my company's URL is the following. http://www.roadmap.co.jp/index_e.html Regards, Yasuyuki Toyoda From Japan, Tokyo
Re: [vchkpw] SMTP relay Problem
Dear,linuman exec tcpserver -H -l0 -R -c 512 -x /home/vpopmail/etc/tcp.smtp.cdb -u vpopmailduid -g vpopmaildgid 0 smtp rblsmtpd recordio /var/qmail/bin/qmail-smtpd mydomain.com /home/vpopmail/bin/vchkpw /bin/true 21 Above script will run the clearopensmtp everytime when users establish the smtp connection. clearopensmtp will check the IP's in the open-smtp and timestamp against the IP's if timestamp matches the value you have given during compiling the vpopmail it will remove the IP from tcp.smtp.cdb file. If it finds the new IP it will add it to cdb. There is even no need to keep the clearopensmtp in cronjob. Thank you very much for your advice. I tried your advice. That's good. No problem. Now I am facing one more problem. I am trying to workout the same concept with Courier-Imap.below is the compile option I have choosen ./configure --prefix=/var/qmail/courierimap --enable-workarounds-for-imap-client-bugs --without- authdaemon --without-authcustom --without-authcram --without-authuserdb --without-authshadow --without-authpwd Below is my courier-imapd/run file exec /usr/local/bin/tcpserver -v -H -R -l mydomain.com 0 143 recordio /var/qmail/courierimap/sbin/imaplogin /home/vpopmail/bin/vchkpw /var/qmail/courierimap/bin/imapd Maildir 21 When I try to send/receive the mail from outlook IMAP client it gives the error for both POP3 and SMTP. Let me know if you have done any workarrounds for this. Sorry,I have never install IMAP function. I couldn't answer your help. Regards, Yasuyuki Toyoda From Japan, Tokyo
Re: [vchkpw] SMTP relay Problem
Hi, linuman Yes you are right, in addition to that you have to modify the qmail-smtpd/run file. I have already modified the qmail-smtpd/run file. I think that my qmail-smtpd/run file is perhaps right. If my qmail-smtpd/run file is mistake, please let me know mistake point. My qmail-smtpd/run file is the following. #!/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 /home/vpopmail/etc/tcp.smtp.cdb -c $MAXSMTPD \ -u $QMAILDUID -g $NOFILESGID 0 smtp /usr/local/bin/rblsmtpd /var/qmail/bin/qmail-smtpd 21 Regards, Yasuyuki Toyoda From Japan, Tokyo
Re: [vchkpw] SMTP relay Problem
Hi, linuman I find the soluton for my problem Yahoo ,, for which you can avoide the cron job to run every second.Only one line of cron job to clear the open smtp for every one hour or whatever is enough, Let me know if you have done any exercise on this. Or else let me know will tell you how to over come from this problem. I think that the following configure is proper solution. ./configure --enable-roaming-users=y --enable-tcpserver-file=/home/vpopmail/etc/tcp.smtp --enable-relay-clear-minutes=60 Is this your same solution? Regards, Yasuyuki Toyoda From Japan, Tokyo
Re: [vchkpw] SMTP relay Problem
Hi, linuman Yes,,, just put the word 'recordio' after smtp in qmail-smtpd/run file and restart qmail. I am using following version of distros. qmail-1.03.tar.gz daemontools-0.76.tar.gz ucspi-tcp-0.88.tar.gz Your system similar to mine. Thank you for your reply. No problem. by the way, your supervise/qmail-smtp/run OK? your cron OK? Yeah qmail runs in my system without any problem except open relay for roaming users. my cron and cdb setting perhaps is valid for roaming users. see you again. Regards, Yasuyuki Toyoda From Japan Tokyo ;-)
Re: [vchkpw] SMTP relay Problem
Hi, linuman Is the following log generated by recordio? Below is my SMTP log messages I am also using multilog. @40003ee73ec91cdf0b6c 21359 RCPT TO: [EMAIL PROTECTED]^M @40003ee73ec91cdf1ef4 21359 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)^M @40003ee73ec91ce0920c 21359 RSET^M @40003ee73ec91ce0a1ac 21359 250 flushed^M @40003ee73ec91ce0b14c 21359 MAIL FROM: [EMAIL PROTECTED]^M @40003ee73ec91ce0c8bc 21359 250 ok^M @40003ee73ec91ce0d474 21359 RCPT TO: [EMAIL PROTECTED]^M @40003ee73ec91ce0ebe4 21359 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)^M @40003ee73ec91ce1073c 21359 QUIT^M @40003ee73ec91ce164fc 21359 221 mydomain.com^M Note: recordio is for generating detailed SMTP logs I want to look specific SMTP logs generated by recordio. I'm interested in recordio. by the way, your supervise/qmail-smtp/run OK? your cron OK? Regards, Yasuyuki Toyoda From Japan
Re: [vchkpw] SMTP relay Problem
Hi, linuman Your cron and cdb settings are verymuch valied but technically it is not a good Idea. clearopensmtp will not clear the relay opened for that IP. You need to check the cdb database either it will upend the relay database or overwrite the database. If it overwrites, you are safe or else one fine day your mail server will listed in RBL site. ;-) Thank you for your good advice. I have already set clearopensmtp in cron service. 40 * * * * /home/vpopmail/bin/clearopensmtp 21 /dev/null Vpopmail will erase IP in 3 hours by default setting. (configure option --enable-relay-clear-minutes=180) And, For realize POP before SMTP, I think it necessary to build VPN for security. because user password leak. Not encrypted password !! Regards, Yasuyuki Toyoda From Japan Tokyo :-P
Re: [vchkpw] SMTP relay Problem
Hi,linuman I think it is some ting to do with qmail-smtpd/run. Note: I have also patched the qmail distro for smtp relay and compiled. my run script !! if you like, please refer the following contents. #!/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 /home/vpopmail/etc/tcp.smtp.cdb -c $MAXSMTPD \ -u $QMAILDUID -g $NOFILESGID 0 smtp \ /usr/local/bin/rblsmtpd /var/qmail/bin/qmail-smtpd 21
Re: [vchkpw] SMTP relay Problem
Hi, linuman Thanks for the info, so far did you face any problem due to this work arround ??? like the person trying to send the mail and he has to wait till your cron job has to execute??? In detail, http://www.lifewithqmail.org/lwq.html Generally People look above URL. Note: recordio is for generating detailed SMTP logs. Please send me your specific SMTP logs by e-mail. Now I use multilog in deamontools. Multilog isn't specific SMTP logs. the following 2003-06-11 16:33:34.009191500 tcpserver: status: 0/20 2003-06-11 16:34:48.687903500 tcpserver: status: 1/20 2003-06-11 16:34:48.688762500 tcpserver: pid 21863 from 201.600.58.503 2003-06-11 16:34:48.734818500 tcpserver: ok 21863 mydomain.co.jp:256.254.254.254:25 mydomain.ne.jp:211.6.83.53::50483 2003-06-11 16:34:49.019251500 tcpserver: end 21863 status 0 2003-06-11 16:34:49.019360500 tcpserver: status: 0/20 2003-06-11 16:37:01.834952500 tcpserver: status: 1/20 2003-06-11 16:37:01.835814500 tcpserver: pid 23695 from 254.254.254.254 2003-06-11 16:37:02.408578500 tcpserver: ok 23695 mydomain.co.jp:210.233.254.254:25 :254.218.254.2::2030 2003-06-11 16:37:04.008356500 tcpserver: end 23695 status 0 2003-06-11 16:37:04.008437500 tcpserver: status: 0/20 2003-06-11 16:44:19.542462500 tcpserver: status: 1/20 2003-06-11 16:44:19.543302500 tcpserver: pid 32081 from 254.229.254.254 2003-06-11 16:44:19.561893500 tcpserver: ok 32081 mydomain.co.jp:254.233.254.254:25 mydomain.or.jp:210.254.254.10::1328 2003-06-11 16:44:19.642834500 tcpserver: end 32081 status 0 2003-06-11 16:44:19.647511500 tcpserver: status: 0/20 2003-06-11 16:44:24.945393500 tcpserver: status: 1/20 2003-06-11 16:44:24.946252500 tcpserver: pid 1421 from 254.254.254.52 2003-06-11 16:44:24.960059500 tcpserver: ok 1421 mydomain.co.jp:210.254.254.254:25 :254.254.254.254::254 2003-06-11 16:44:25.080369500 tcpserver: end 1421 status 0 Regards, Yasuyuki Toyoda From Japan
Re: [vchkpw] SMTP relay Problem
Hi, linuman Thanks for the info, so far did you face any problem due to this work arround ??? like the person trying to send the mail and he has to wait till your cron job has to execute??? In my system, My cron job needed. for example, cron job off - my system isn't realized POP before SMTP cron job on - my system is realized POP before SMTP because In my system, tcp.smtp.cdb automatically isn't update.
[vchkpw] SMTP relay Problem
Hi there, I am facing some problem in auth relay for roaming users. Following is the details of my setup. Installed packages: 1. qmail-1.03 2. vpopmail-5.3.20 my qmail-smtpd/run file as below exec /usr/local/bin/tcpserver -H -R -x /home/vpopmail/etc/tcp.smtp.cdb -u 502 - g 501 0 smtp recordio /var/qmail/bin/qmail-smtpd 21 -- qmail-pop3d/run as below exec /usr/local/bin/tcpserver -v -H -R 0 pop3 /var/qmail/bin/qmail-popup mydomain.com /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir 21 --- Following is the log error message. MAIL FROM: [EMAIL PROTECTED]^M @40003ee74a3337d4c72c 22981 250 ok^M @40003ee74a3337dfbfc4 22981 RCPT TO: [EMAIL PROTECTED]^M @40003ee74a3337e1fdfc 22981 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)^M Will provide any other info if required. Thanks in advance Linuman __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com
Re: [vchkpw] SMTP relay Problem
Hi,linuman bbb my qmail-smtpd/run file as below exec /usr/local/bin/tcpserver -H -R -x /home/vpopmail/etc/tcp.smtp.cdb -u 502 - g 501 0 smtp recordio /var/qmail/bin/qmail-smtpd 21 -- qmail-pop3d/run as below exec /usr/local/bin/tcpserver -v -H -R 0 pop3 /var/qmail/bin/qmail-popup mydomain.com /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir 21 Above setting perhaps, OK! I don't know recordio. The following contents is my example. Not generally. 1. my original qmailctl script in the cdb section. cdb) cp /home/vpopmail/etc/tcp.smtp.edit /home/vpopmail/etc/tcp.smtp cat /home/vpopmail/etc/open-smtp | colrm 50 \ /home/vpopmail/etc/open-smtp.tmp cat /home/vpopmail/etc/open-smtp.tmp /home/vpopmail/etc/tcp.smtp tcprules /home/vpopmail/etc/tcp.smtp.cdb \ /home/vpopmail/etc/tcp.smtp.tmp /home/vpopmail/etc/tcp.smtp chmod 644 /home/vpopmail/etc/tcp.smtp.cdb rm -rf /home/vpopmail/etc/open-smtp.tmp \ /home/vpopmail/etc/tcp.smtp.tmp 2. Next, cron daemon by my original # # POP before SMTP setting # 0 * * * * /usr/local/var/qmail/bin/qmailctl cdb 1 * * * * /usr/local/var/qmail/bin/qmailctl cdb 2 * * * * /usr/local/var/qmail/bin/qmailctl cdb 3 * * * * /usr/local/var/qmail/bin/qmailctl cdb 4 * * * * /usr/local/var/qmail/bin/qmailctl cdb 5 * * * * /usr/local/var/qmail/bin/qmailctl cdb 6 * * * * /usr/local/var/qmail/bin/qmailctl cdb 7 * * * * /usr/local/var/qmail/bin/qmailctl cdb 8 * * * * /usr/local/var/qmail/bin/qmailctl cdb 9 * * * * /usr/local/var/qmail/bin/qmailctl cdb 10 * * * * /usr/local/var/qmail/bin/qmailctl cdb 11 * * * * /usr/local/var/qmail/bin/qmailctl cdb 12 * * * * /usr/local/var/qmail/bin/qmailctl cdb 13 * * * * /usr/local/var/qmail/bin/qmailctl cdb 14 * * * * /usr/local/var/qmail/bin/qmailctl cdb 15 * * * * /usr/local/var/qmail/bin/qmailctl cdb 16 * * * * /usr/local/var/qmail/bin/qmailctl cdb 17 * * * * /usr/local/var/qmail/bin/qmailctl cdb 18 * * * * /usr/local/var/qmail/bin/qmailctl cdb 19 * * * * /usr/local/var/qmail/bin/qmailctl cdb 20 * * * * /usr/local/var/qmail/bin/qmailctl cdb 21 * * * * /usr/local/var/qmail/bin/qmailctl cdb 22 * * * * /usr/local/var/qmail/bin/qmailctl cdb 23 * * * * /usr/local/var/qmail/bin/qmailctl cdb 24 * * * * /usr/local/var/qmail/bin/qmailctl cdb 25 * * * * /usr/local/var/qmail/bin/qmailctl cdb 26 * * * * /usr/local/var/qmail/bin/qmailctl cdb 27 * * * * /usr/local/var/qmail/bin/qmailctl cdb 28 * * * * /usr/local/var/qmail/bin/qmailctl cdb 29 * * * * /usr/local/var/qmail/bin/qmailctl cdb 30 * * * * /usr/local/var/qmail/bin/qmailctl cdb 31 * * * * /usr/local/var/qmail/bin/qmailctl cdb 32 * * * * /usr/local/var/qmail/bin/qmailctl cdb 33 * * * * /usr/local/var/qmail/bin/qmailctl cdb 34 * * * * /usr/local/var/qmail/bin/qmailctl cdb 35 * * * * /usr/local/var/qmail/bin/qmailctl cdb 36 * * * * /usr/local/var/qmail/bin/qmailctl cdb 37 * * * * /usr/local/var/qmail/bin/qmailctl cdb 38 * * * * /usr/local/var/qmail/bin/qmailctl cdb 39 * * * * /usr/local/var/qmail/bin/qmailctl cdb 40 * * * * /usr/local/var/qmail/bin/qmailctl cdb 41 * * * * /usr/local/var/qmail/bin/qmailctl cdb 42 * * * * /usr/local/var/qmail/bin/qmailctl cdb 43 * * * * /usr/local/var/qmail/bin/qmailctl cdb 44 * * * * /usr/local/var/qmail/bin/qmailctl cdb 45 * * * * /usr/local/var/qmail/bin/qmailctl cdb 46 * * * * /usr/local/var/qmail/bin/qmailctl cdb 47 * * * * /usr/local/var/qmail/bin/qmailctl cdb 48 * * * * /usr/local/var/qmail/bin/qmailctl cdb 49 * * * * /usr/local/var/qmail/bin/qmailctl cdb 50 * * * * /usr/local/var/qmail/bin/qmailctl cdb 51 * * * * /usr/local/var/qmail/bin/qmailctl cdb 52 * * * * /usr/local/var/qmail/bin/qmailctl cdb 53 * * * * /usr/local/var/qmail/bin/qmailctl cdb 54 * * * * /usr/local/var/qmail/bin/qmailctl cdb 55 * * * * /usr/local/var/qmail/bin/qmailctl cdb 56 * * * * /usr/local/var/qmail/bin/qmailctl cdb 57 * * * * /usr/local/var/qmail/bin/qmailctl cdb 58 * * * * /usr/local/var/qmail/bin/qmailctl cdb 59 * * * * /usr/local/var/qmail/bin/qmailctl cdb 3. Contents of /home/vpopmail/etc/tcp.smtp.edit 127.0.0.1:allow,RELAYCLIENT= That's try again !! Regards, Yasuyuki Toyoda from Japan linuman bbb wrote: Hi there, I am facing some problem in auth relay for roaming users. Following is the details of my setup. Installed packages: 1. qmail-1.03 2. vpopmail-5.3.20 my qmail-smtpd/run file as below exec /usr/local/bin/tcpserver -H -R -x /home/vpopmail/etc/tcp.smtp.cdb -u 502 - g 501 0 smtp recordio /var/qmail/bin/qmail-smtpd 21 -- qmail-pop3d/run as below exec /usr/local/bin/tcpserver -v -H -R 0 pop3 /var/qmail/bin/qmail-popup mydomain.com /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir 21 --- Following is the log error message. MAIL FROM: [EMAIL PROTECTED]^M @40003ee74a3337d4c72c 22981 250 ok^M @40003ee74a3337dfbfc4 22981 RCPT TO: [EMAIL PROTECTED]^M @40003ee74a3337e1fdfc 22981 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)^M Will provide any
Re: [vchkpw] SMTP relay Problem
Hi, linuman Did you tested properly that it is clearing the open relay. I tested by manualy running the command it din't clear the open relay. I finished to test properly. You can't erase manually IP. Because vpopmail erase automatically IP. clearopensmtp soon can't erase IP. clearopensmtp manual is the following SYNOPSIS clearopensmtp - remove old IP's added after pop authentication In the above, you must check old. DESCRIPTION vpopmail can be configured to allow pop users IP's to be added to the list of IP's which are allowed to relay through the smtp server. This is done with the --enable-roaming-users=y option. With this option, users IP's who authenitcate via pop are added to the list of IP's which can relay through the smtp server. The smtp server must be run with tcpserver -x filename option. Each authenticated pop users IP is added with a time stamp. Every time clearopensmtp is run, this list is checked for time stamps which are older than the --enable-relay-clear-minutes option. The default is 360 minutes or 3 hours. Any IP with a time stamp older than this number are removed from the list. clearopenstmp rebuilds the tcp.smtp.cdb file with the list of static IP's stored in tcp.smtp and the list of IP's in open-smtp. In the above, you must check --enable-relay-clear-minutes. If it realy clears pls let me know which file it will modify. Please refer my original cron and cdb script. Note: Insted of putting 59 lines of cron job you can put it in single line to run every second. 0-59/1 * * * * /path/to/qmail/script cdb Thank you for your advice. I was said my japanese friend, too, the same. Regards, Yasuyuki Toyoda From Japan Tokyo