Hi Isianto,

If you're using fetchmail on the same box as qmail toaster is running
on then the mail will obey

127.:allow,RELAYCLIENT="",DKSIGN="/var/qmail/control/domainkeys/%/private",QMAILQUEUE="/var/qmail/bin/simscan"

And since the first rule is RELAYCLIENT it'll just let the mail
straight through. This is normally what you'll want 'cos otherwise
squirrelmail may flake when trying to send.

You could try making a separate tcp.smtp instance for fetchmail to
send to with a different rule set... These instructions are based on
ones I found here
(http://forum.qmailrocks.org/showthread.php?t=2372&goto=nextoldest)
and it all seems to work for me though I've yet to hit heavy testing.

Stop Qmail Services
qmailctl stop

Make a copy of the SMTP supervise stuff
cp -R /var/qmail/supervise/smtp /var/qmail/supervise/smtp2

Go into your new directory
cd /var/qmail/supervise/smtp2

And edit run to look like this:

#!/bin/sh
QMAILDUID=`id -u vpopmail`
NOFILESGID=`id -g vpopmail`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
BLACKLIST=`cat /var/qmail/control/blacklists`
SMTPD="/var/qmail/bin/qmail-smtpd"
TCP_CDB="/etc/tcprules.d/tcp.smtp2.cdb"
RBLSMTPD="/usr/bin/rblsmtpd"
HOSTNAME=`hostname`
VCHKPW="/home/vpopmail/bin/vchkpw"

exec /usr/bin/softlimit -m 12000000 \
    /usr/bin/tcpserver -v -R -H -l $HOSTNAME -x $TCP_CDB -c "$MAXSMTPD" \
    -u "$QMAILDUID" -g "$NOFILESGID" 0 2525 \
    $RBLSMTPD $BLACKLIST $SMTPD $VCHKPW /bin/true 2>&1

Notice that instead of calling tcp.smtp.cdb you're calling
tcp.smtp2.cdb and the port is no longer "smtp" but 2525.

Go into ./supervise and remove the control, lock, ok and status files
Go into ./log/supervise and remove the control, lock, ok and status files
In the ./log directory edit run and comment out all lines (put a # at
the front). I couldn't get logging to work mailman kep complaining
that it couldn't access a file... if anyone else has got some ideas on
how to get that working, do chip in!

Go back to /var/qmail/supervise/ and change the ownership of the new
smtp2 folder
cd /var/qmail/supervise/
chown -R qmaill:qmail smtp2

Next we need the new tcp.smtp2 file
cd /etc/tcprules.d
cp tcp.smtp tcp.smtp2

Edit tcp.smtp2 removing the RELAYCLIENT="" from the first line. You
might want to refer to
http://www.mail-archive.com/[email protected]/msg01507.html
for more details on tcp.smtp you want this one to send all local mail
through simscan.

Next we need to edit  /usr/bin/qmailctl to build tcp.smtp2.cdb find
the bit that starts cdb) and add the line you see in the block below:

cdb)
   tcprules /etc/tcprules.d/tcp.smtp.cdb /etc/tcprules.d/tcp.smtp.tmp
< /etc/tcprules.d/tcp.smtp
   tcprules /etc/tcprules.d/tcp.smtp2.cdb
/etc/tcprules.d/tcp.smtp2.tmp < /etc/tcprules.d/tcp.smtp2
   chmod 644 /etc/tcprules.d/tcp.smtp*
   echo "Reloaded /etc/tcprules.d/tcp.smtp and tcp.smtp2"
   if [ -f /var/qmail/bin/qmail-badmimetypes ] ; then
       /var/qmail/bin/qmail-badmimetypes;
       echo "Reloaded /var/qmail/control/badmimetypes.cdb";
   fi
   if [ -f /var/qmail/bin/qmail-badloadertypes ] ; then
       /var/qmail/bin/qmail-badloadertypes;
       echo "Reloaded /var/qmail/control/badloadertypes.cdb";
   fi
   if [ -f /var/qmail/bin/simscanmk ] ; then
       /var/qmail/bin/simscanmk -g >/dev/null 2>&1;
       echo "Reloaded /var/qmail/control/simversions.cdb";
       if [ -f /var/qmail/control/simcontrol ] ; then
          /var/qmail/bin/simscanmk >/dev/null 2>&1;
          echo "Reloaded /var/qmail/control/simcontrol.cdb";
       fi
   fi
   ;;

Cool.

Now do a

qmailctl cdb

and a

qmailctl start

You should now have another smtp listener running on port 2525 which
will obey the rules set up in your tcp.smtp2 file. Do a

telnet localhost 2525

to test it. You might need to open the port in iptables:

iptables -A INPUT -p tcp -m tcp --syn --dport 2525 -j ACCEPT
service iptables save

Finally get fetchmail to send mail to the new port by calling it with
--port 2525

And you should be golden!

I'm trying to do something very similar myself but am only just at the
point of actually setting up fetchmail. Good luck!

Cheers,

Jamie

On 08/08/06, Isianto Istiadi <[EMAIL PROTECTED]> wrote:
Dear All, I'm a new member of this mailling list, please pardon my english.
I have a problem with the installation of qmail toaster on centos 4.3
64. Everything works fine except for simscan and spamassassin. I've
googled and read the archieve mailling list but found no solution. I
have also delete and reinstall with no success.

here's my tcp.smtp
127.:allow,RELAYCLIENT="",DKSIGN="/var/qmail/control/domainkeys/%/private",QMAILQUEUE="/var/qmail/bin/simscan"
:allow,BADMIMETYPE="",BADLOADERTYPE="M",CHKUSER_RCPTLIMIT="50",CHKUSER_WRONGRCPTLIMIT="10",DKVERIFY="DEGIJKfh",QMAILQUEUE="/va
r/qmail/bin/simscan",DKQUEUE="/var/qmail/bin/qmail-queue.orig",DKSIGN="/var/qmail/control/domainkeys/%/private"
It seems that simscan cannot find spamassassin even though in the
qmail-inject test, it found the version and work fine
in the logs I don't find any activity that shows spamd is called
Please Help.
Thanks

Isianto

---------------------------------------------------------------------
    QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to