Alejandro Cabrera Obed wrote:
> Dear all, I have a Debian server with postfix 2.3.8 & postfix-policyd
> 1.80-2 as part of my mail system. I need to set up message size limits
> to different users from my mail server (they are virtual users because
> my postfix has virtual domains), i.e.:
> 
> [EMAIL PROTECTED] --- message size 2 MB
> [EMAIL PROTECTED] --- message size 10 MB
> 
> vdomain.com is one of my virtual domains.
> 
> I follow the installation documentation but I can't put the system to
> work. I tell you the relevant data in order to get your help:
> 
> 1) SENDER Throttle by (envelope) From address:
> 
> INSERT INTO throttle \
>  
> (_from,_count_max,_count_cur,_date,_quota_cur,_quota_max,_time_limit,_mail_size,_count_tot,_rcpt_max,_rcpt_cur,_rcpt_tot,_abuse_cur,_abuse_tot,_log_warn,_log_panic,_priority)
>  VALUES ('[EMAIL PROTECTED]',  # from address                             
>           ....    
>           ....    
>           ......  
>           2500000,          # maximum message size (10 meg)
>           ......  

Not sure how this equals 10 MB but anyway...

>       
> Same to [EMAIL PROTECTED]
> 
> 2) In my main.cf:
> 
> smtpd_recipient_restrictions =
>         check_recipient_access hash:/etc/postfix/access
>         permit_mynetworks
>         reject_unauth_destination
>         check_policy_service inet:127.0.0.1:10031

Make sure your senders are not sending from machines in mynetworks and 
result in PERMIT in the check_recipient_access restriction.
Check your logs and make sure the sender address from your users matches 
the entry in the DB.

> 3) In my postix-policyd.conf I have these main lines:
> 
> MYSQLHOST="localhost"
> MYSQLDBASE="postfixpolicyd"
> WHITELISTING=0
> BLACKLISTING=0
> BLACKLIST_HELO=0
> BLACKLISTSENDER=0
> SPAMTRAPPING=0
> GREYLISTING=0
> SENDERTHROTTLE=1
> RECIPIENTTHROTTLE=0
> 
> Finally, the throttle table is fullfilled with external mail accounts and I 
> have not my virtual mail acounts I have set up, they dissapeared.

This will be the case because all mail coming in will also pass through 
the policyd server.  You can avoid this by selectively calling the 
policyd server based on sender, or by using a separate instance of 
postfix that does outgoing mail only.

John Beaver

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
policyd-users mailing list
policyd-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/policyd-users

Reply via email to