At 11/05/2002 11/05/2002 -0700, chris wrote:
>Hello list,
>
>     I understand that a method of running "per-domain scanning" would be to
>use MX records to point to different IP's that are local to your single mail
>server running qmail-scanner.  Then you would have separate instances of
>TCPSERVER running that are listening to those IP's.  In your setup for
>TCPSERVER, you would either have the QMAILQUEUE variable set or not for each
>instance you wished to either scan or not...  etc.
>
>     While this works fine, I found that it was a pain to set up all these
>separate "run" instances in /service.  You would need one for each binding
>of IP address, since you can't simply use the "0" option in TCPSERVER
>because you want to have separate control over which domains get scanned or
>not.
>
>     Has anyone figured out a way to have multiple "exec
>/usr/local/bin/tcpserver ...  " instances in a SINGLE run in a SINGLE
>/service ?
>
>     I tried the following but it didn't work.  ./run:
>
>#!/bin/sh
>QMAILDUID=`/usr/xpg4/bin/id -u qmaild`
>NOFILESGID=`/usr/xpg4/bin/id -g qmaild`
>QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" export QMAILQUEUE
>exec /usr/local/bin/tcpserver -S -R -H -c100 -x
>/RAID/vpopmail/etc/tcp.smtp.cdb\
>  -u "$QMAILDUID" -g "$NOFILESGID" -l 0 192.168.1.25 smtp\
>  /var/qmail/bin/qmail-smtpd 2>&1

I don't see the detach (&) parameter at the end of you tcpserver command, 
so the second tcpserver cannot start if first is not detached.

Just add & at the end of the previous line:
  /var/qmail/bin/qmail-smtpd 2>&1 &


>unset QMAILQUEUE="" export QMAILQUEUE
>exec /usr/local/bin/tcpserver -S -R -H -c100 -x
>/RAID/vpopmail/etc/tcp.smtp.cdb\
>  -u "$QMAILDUID" -g "$NOFILESGID" -l 0 192.168.1.82 smtp\
>  /var/qmail/bin/qmail-smtpd 2>&1
>
>
>the process hangs after the first exec tcpserver command and never makes it
>to the second one...   I tried making ./run call two other separate files
>called bat1 and bat2 which contained the separate exec's of tcpserver but
>that didn't work either.
>
>I just can't see it being necessary to make all these separate instances of
>svscan's for each and every domain I want to handle.  Now, of course, if I
>didn't care about NOT scanning certain domains (per-domain qmail-scanner
>config) then I would just have one instance of /service/qmail-smtpd/run with
>a tcpserver binding of "0" and that would be it - but if you want per-domain
>scanning, that doesn't work.
>
>Any thoughts?
>
>Chris Bunnell
>Senior Engineer - Network Implementation
>Avantac Technologies, Inc. - Formerly Sonic Internet Services
>9719 Lincoln Village Drive #503
>Sacramento, CA. 95827
>(916) 854-5940
>www.avantac.com
>
>
>
>_______________________________________________________________
>
>Have big pipes? SourceForge.net is looking for download mirrors. We supply
>the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
>_______________________________________________
>Qmail-scanner-general mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general


------------------------------------------------------------
         Inter@zioni            Interazioni di Antonio Nati
    http://www.interazioni.it      [EMAIL PROTECTED]
------------------------------------------------------------


_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to