Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5352220
  • 博文数量: 1144
  • 博客积分: 11974
  • 博客等级: 上将
  • 技术积分: 12312
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-13 20:06
文章存档

2017年(2)

2016年(14)

2015年(10)

2014年(28)

2013年(23)

2012年(29)

2011年(53)

2010年(86)

2009年(83)

2008年(43)

2007年(153)

2006年(575)

2005年(45)

分类: LINUX

2007-09-09 23:51:39

Hi folks,

my qmail-smtpd runscript uses rbl check, but with users authenticated
for relay too.
It's possible to avoid that?

This is my runscript:

#!/bin/sh
QMAILDUID=`/usr/bin/id -u vpopmail`
NOFILESGID=`/usr/bin/id -g vchkpw`
MAXSMTPD=`/bin/cat /var/qmail/control/concurrencyincoming`
#if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" ]; then
#    echo QMAILDUID, NOFILESGID, or MAXSMTPD is unset in
#    echo /var/qmail/supervise/qmail-smtpd/run
#    exit 1
#fi
exec /usr/local/bin/softlimit -m 70000000 \
    /usr/local/bin/tcpserver -v -R -h -l 0 -x
/home/vpopmail/etc/tcp.smtp.cdb -c "$MAXSMTPD" \
    -u "$QMAILDUID" -g "$NOFILESGID" 0 25 \
    /usr/local/bin/rblsmtpd -v -r korea.services.net -r list.dsbl.org
-r relays.ordb.org -r sbl-xbl.spamhaus.org /var/qmail/bin/qmail-smtpd
\
    /home/vpopmail/bin/vchkpw /usr/bin/true 2>&1

any advice will be appreciated
Regards
Andrea
########################################################################
Hi!

With a patch, you can take advantage from "PopBeforeSmtp" features.

For example:

 --- vpopmail.c ---
-  fprintf( fs_tmp_file, "%s:allow,RELAYCLIENT=\"\",RBLSMTPD=\"\"\t%d\n",
+  fprintf( fs_tmp_file,
"%s:allow,QMAILQUEUE=\"/var/qmail/bin/simscan\",RBLSMTPD=\"\"\t%d\n",

Remove RELAYCLIENT , add QMAILQUEUE and use RBLSMTPD!

Bye

2006/6/3, Andrea Riela <>:
> Hi folks,
>
> my qmail-smtpd runscript uses rbl check, but with users authenticated
> for relay too.
> It's possible to avoid that?
>
> This is my runscript:
>
> #!/bin/sh
> QMAILDUID=`/usr/bin/id -u vpopmail`
> NOFILESGID=`/usr/bin/id -g vchkpw`
> MAXSMTPD=`/bin/cat /var/qmail/control/concurrencyincoming`
> #if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" ]; then
> #    echo QMAILDUID, NOFILESGID, or MAXSMTPD is unset in
> #    echo /var/qmail/supervise/qmail-smtpd/run
> #    exit 1
> #fi
> exec /usr/local/bin/softlimit -m 70000000 \
>    /usr/local/bin/tcpserver -v -R -h -l 0 -x
> /home/vpopmail/etc/tcp.smtp.cdb -c "$MAXSMTPD" \
>    -u "$QMAILDUID" -g "$NOFILESGID" 0 25 \
>    /usr/local/bin/rblsmtpd -v -r korea.services.net -r list.dsbl.org
> -r relays.ordb.org -r sbl-xbl.spamhaus.org /var/qmail/bin/qmail-smtpd
> \
>    /home/vpopmail/bin/vchkpw /usr/bin/true 2>&1
>
> any advice will be appreciated
> Regards
> Andrea
>
阅读(2522) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~