
kakooty at gmail
Jul 21, 2009, 10:44 PM
Post #1 of 1
(1080 views)
Permalink
|
|
limit attachment per-user
|
|
Hi guys I really try to solve my problem and i won't get your glade time.I have problem with limit attachment per user, so i use patch AUTH_CDB. i recompile my qmail-1.03 with combine patch(i install myqmail with life-with-qmail), after it i recompile my vpopmail-5.4.27 with parameter : ./configure --enable-onchange-script --with-pop3d --disable-ipv6 --without-passwd --without-shadow --enable-logging=p i work step by step like authcdb.shtml(mkauth, qmail-updater ...) and at the end follow "Setting up an SMTP service" i run my qmail-smtpd as service ... i uncomment auth_cdb and set my ip to 0.0.0.0. now in /var/qmail/control/ i have: ----------------------------------------------------------------------------- auth.cdb concurrencyincoming locals me rcpthosts.lock validrcptto.cdb virtualdomains.lock authenv.txt defaultdelivery locals.last plusdomain servercert.pem virtualdomains clientcert.pem defaultdomain locals.lock rcpthosts smtpgreeting virtualdomains.last ------------------------------------------------------------------------------ and in /etc/tcp/: -------------------------------------------------------------------------- ls /etc/tcp Makefile smtp smtp.cdb cat /etc/tcp/smtp 127.:allow,RELAYCLIENT="" 10.0.0.:allow,RELAYCLIENT="" -------------------------------------------------------------------------- i sure everything is work ok except limit attachment, see this: tail /service/qmail-smtpd/log/main/current @400000004a6690a42f00fb5c AUTH_CDB="/var/qmail/control/auth.cdb" @400000004a6690a430648eb4 VALIDRCPTTO_CDB="/var/qmail/control/validrcptto.cdb" @400000004a6690a4315714a4 VALIDRCPTTO_LIMIT="10" @400000004a6690a431759154 VALIDRCPTTO_LOG="2" @400000004a6690a431865a34 SPFBEHAVIOR="0" @400000004a6690a431a32164 SPF_LOG="1" @400000004a6690a431b3d2d4 SPF_BLOCK_PLUS_ALL="1" @400000004a6690a431f1742c NOP0FCHECK="1" @400000004a6690a4322d7774 command-line: exec tcpserver -vR -l example.com -c 30 -u 501 -g 500 -x /etc/tcp/smtp.cdb 0.0.0.0 25 /var/qmail/bin/qmail-smtpd 2>&1 @400000004a6690a50c4fae14 tcpserver: status: 0/30 check this out: cdbget kakooty [at] example < /var/qmail/control/auth.cdb $1$voi1v5jI$g4xcndWWqWGpzYyMmdN2r/,DATABYTES="2000" but when send a mail it doesn't check the size of attachment and accept it. vi /service/qmail-smtpd/run you can this this in paste-bin( i don't paste it, beacuse it be really long ;) ) thanks for great patch ;) ----------------------------------------------- http://pastebin.com/f6fab38fb
|