Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-19-2009, 12:54 AM
Junior Member
 
Posts: 6
Unhappy [SOLVED] apolicyd and smtpd_end_of_data_restrictions

Hello,

I'm trying to use apolicyd to limit mail size per user.

I installed apolicyd, added lines to /opt/zimbra/conf/postfix_recipient_restrictions.cf files like Postfix Policy page.

Everyting ok, but I couldn't add this to main.cf file :
smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:10001

I want to add line to zmtta.cnf file, but I couldn't figure out how to add. I try this, but didn't work :
POSTCONF smtpd_end_of_data_restrictions LOCAL check_policy_service inet:127.0.0.1:10001

So, how can I add "smtpd_end_of_data_restrictions" property to zimbra?

Thank you.
Reply With Quote
  #2 (permalink)  
Old 06-19-2009, 01:13 AM
Moderator
 
Posts: 7,928
Default

Welcome to the forums

No need to touch zmmta.cf why not just do
Code:
su - zimbra
zmprov mcf zimbraMtaRestriction "smtpd_end_of_data_restrictions LOCAL check_policy_service inet:127.0.0.1:10001"
zmmtactl stop
zmmtactl start
just like in the PolicyD wiki article ?
__________________
Reply With Quote
  #3 (permalink)  
Old 06-19-2009, 01:22 AM
Junior Member
 
Posts: 6
Default

zmprov mcf zimbraMtaRestriction "smtpd_end_of_data_restrictions LOCAL check_policy_service inet:127.0.0.1:10001"
ERROR: account.INVALID_ATTR_VALUE (zimbraMtaRestriction value length(78) larger then max allowed: 64)
Reply With Quote
  #4 (permalink)  
Old 06-19-2009, 01:29 AM
Moderator
 
Posts: 7,928
Default

Oops, so try
Code:
su - zimbra
postconf -e smtpd_end_of_data_restrictions LOCAL check_policy_service inet:127.0.0.1:10001
and if it fails what error message is being returned ?
__________________
Reply With Quote
  #5 (permalink)  
Old 06-19-2009, 01:46 AM
Junior Member
 
Posts: 6
Default

This is working :
su - zimbra
postconf -e "smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:10001"

And apolicy is working too.

But this change is not permanent. It will gone when I restart smtp server.
How can I do this permanent?
Reply With Quote
  #6 (permalink)  
Old 06-19-2009, 01:51 AM
Moderator
 
Posts: 7,928
Default

As a workaround you could try adding it to /opt/zimbra/postfix/conf/main.cf.default and restart the MTA ... I would also recommend filing a RFE at Bugzilla Main Page to increase the size of that LDAP variable so large parameters can be entered.
__________________
Reply With Quote
  #7 (permalink)  
Old 06-19-2009, 02:22 AM
Junior Member
 
Posts: 6
Default

System is not using /opt/zimbra/postfix/conf/main.cf.default file. So it is worthless.
I added attribute size limit change enhancement to Bugzilla.
Reply With Quote
  #8 (permalink)  
Old 06-19-2009, 03:01 AM
Moderator
 
Posts: 7,928
Default

Why are you adding apolicy to data_restrictions and not client_restrictions as the documentation says ? I have just installed apolicy to test and can get the client_restrictions to stick across restarts using
Code:
su - zimbra
zmlocalconfig -e postfix_smtpd_client_restrictions="reject_unauth_pipelining,check_policy_service inet:127.0.0.1:10001"
__________________
Reply With Quote
  #9 (permalink)  
Old 06-19-2009, 03:49 AM
Junior Member
 
Posts: 6
Default

I already added to postfix_smtpd_client_restrictions.

But I need to use "size acl" and it is not working properly without smtpd_end_of_data_restrictions .
Reply With Quote
  #10 (permalink)  
Old 06-19-2009, 07:19 AM
Moderator
 
Posts: 7,928
Default

Hmmm, only option I can see is to use either postconf or move your AS/AV checking infront of ZCS; which is infact what I am working on at the moment.
__________________
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.