|
Hello everybody, I'm trying to implement per IP message size limit on my mail server (postfix+dovecot+policyd). Here is my postfix setup (only important parts): message_size_limit = 52857600 mailbox_size_limit = 0 ... smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_non_fqdn_sender, reject_unknown_sender_domain, reject_authenticated_sender_login_mismatch, # reject_unlisted_sender, permit ... smtpd_recipient_restrictions = check_policy_service inet:127.0.0.1:10031, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, ... And here are the parts from policyd.conf: SENDERTHROTTLE=1 SENDER_THROTTLE_SASL=0 SENDER_THROTTLE_HOST=1 QUOTA_EXCEEDED_TEMP_REJECT=0 ... SENDERQUOTALIMIT=250000000 SENDERTIMELIMIT=6m SENDERMSGSIZE=35414592 ... RECIPIENTTHROTTLE=0 So, basically, I've set a limit of aprox 35 Megs for everyone, and I want some of my servers or users to be able to send bigger mails. So I've set this in database for one of my servers: mysql> SELECT * FROM throttle WHERE _from LIKE '212.249.44.78'; +---------------+------------+------------+------------+------------+------------+-------------+------------+ | _from | _count_max | _count_cur | _date | _quota_cur | _quota_max | _time_limit | _mail_size | +---------------+------------+------------+------------+------------+------------+-------------+------------+ | heres.my.serv.ip | 100 | 12 | 1383895855 | 34026610 | 1900000000 | 360 | 1000000000 | +---------------+------------+------------+------------+------------+------------+-------------+------------+ changing the qouta_max to 1900000000 (aprox. 1.9 GB) and _mail_size to 1000000000 (aprox. 1 GB). But, when sending mail with aprox. size of 500 MB from that server (heres.my.serv.ip), I still get: ERROR {MSGQ_OUT_7} [AbstractMessagingModule:send(594)] Error while sending message: com.nth.msgs.MessagingExceptio n: Error while sending mail: 552 5.3.4 Error: message file too big That is the error I see on sending server (heres.my.serv.ip). In my mail log on mail server there's no error: Nov 4 16:34:43 newmail2 postfix/smtpd[40969]: connect from unknown[heres.my.serv.ip] Nov 4 16:34:43 newmail2 policyd: rcpt=429, throttle=clear(a), host=heres.my.serv.ip, from=sender@domain, to=recipient@domain, size=0/1000000000, quota=0/1900000000, count=1/100(5233), rcpt=1/3600(10270), threshold=0%|0%|0% Nov 4 16:34:43 newmail2 postfix/smtpd[40969]: 7D67E1D8054C: client=unknown[heres.my.serv.ip] Nov 4 16:34:43 newmail2 postfix/cleanup[40976]: 7D67E1D8054C: message-id=<244877011.1234.1383579283443.JavaMail.root@server> What I'm I missing? Thnx! --
Zeljko
Culek
IT Department Samurai Digital d.o.o. ![]() NTH Group Office Osijek Ivana Gundulica 5 31000 Osijek, Croatia Mobile company: 00385 99 262 2661 [VPN 214] Skype: nthuser128 Email: [email protected] www.nth.ch |
_______________________________________________ Users mailing list [email protected] http://lists.policyd.org/mailman/listinfo/users_lists.policyd.org

