Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 09-06-2014, 06:23 AM   #1
LQ Newbie
Registered: Jan 2011
Location: Poznan/Poland
Distribution: Debian
Posts: 10

Rep: Reputation: 0
Angry qmail not using rblsmtd to filter mails


I have problem with running rblsmtpd on qmail.
I added rblsmtpd to init script of qmial:

logger="splogger qmail 2"       # facility mail == 2
#logger="|accustamp >>/var/log/qmail.log"   # If you have accustamp installed.
logger=">>/var/log/qmail.log"              # Does not give timing info.

# If you uncommented one of the lines that appends to /var/log/qmail.log, you
# need to uncomment the following two lines.
touch /var/log/qmail.log
chown qmaill /var/log/qmail.log

# If you want to use one or more of the Relay Black Lists, uncomment
# the appropriate lines.

rblmsg=" (with rblsmtpd)"
#rblsmtpd="/usr/bin/rblsmtpd -r"
#rblsmtpd="/usr/bin/rblsmtpd -b -r"
rblsmtpd="/usr/bin/rblsmtpd -r"

# End of configuration

test -x /usr/sbin/qmail-start || exit 0
test -x /usr/sbin/qmail-send || exit 0

case "$1" in
        sleep 3
        echo -n "Starting mail-transfer agent: qmail" $rblmsg
        sh -c "start-stop-daemon --start --quiet --user qmails \
                 --exec /usr/sbin/qmail-send \
                 --startas /usr/sbin/qmail-start -- \"$alias_empty\" $logger &"
        # prevent denial-of-service attacks, with ulimit
        #ulimit -v 8192
 #            $rblsmtpd \
        sh -c "start-stop-daemon --start --quiet --user qmaild \
            --exec /usr/bin/tcpserver -- -R -H \
            -u `id -u qmaild` -g `id -g nobody` -x /etc/tcp.smtp.cdb 0 smtp  $rblsmtpd \
            /usr/sbin/qmail-smtpd /bin/cmd5checkpw /bin/true 2>&1 \
            | $logger &"

        # Uncomment the following lines to automatically start the pop3 server
        sh -c "start-stop-daemon --start --quiet --user root \
            --exec /usr/bin/tcpserver -- -R -H \
            0 pop-3 /usr/sbin/qmail-popup `hostname`.`dnsdomainname` \
            /usr/bin/checkpassword /usr/sbin/qmail-pop3d Maildir &"

        echo "."
But in log I don't see rblsmtpd and test sending from mail delivered to mailbox.

Maybe someone has idea what is wrong?

Thanks for any help.
Old 09-09-2014, 03:01 AM   #2
LQ Newbie
Registered: Jan 2011
Location: Poznan/Poland
Distribution: Debian
Posts: 10

Original Poster
Rep: Reputation: 0
Does somebody have some advice how to fix it?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
AMAVIS: filter mails with certain characters t0bias Linux - Server 2 10-27-2008 06:44 AM
Postfix 2.3.3-1 - calling content filter for all mails not just inbound - ubuntu 6.10 swilliams2006 Linux - Server 1 10-16-2007 06:55 PM
How to keep only mails that are 0 to 2 months old with QMAIL! Sleen Linux - Server 13 10-21-2006 02:24 AM
Spamassassin and Postfix: Filter only incoming mails? Fonk Linux - Software 0 10-07-2004 01:43 PM
Scripts to filter spam mails grubjo Linux - Software 2 04-14-2003 01:54 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:52 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration