HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Developers' Forum (http://www.howtoforge.com/forums/forumdisplay.php?f=33)
-   -   Amavisd policy & message_size_limit (http://www.howtoforge.com/forums/showthread.php?t=54218)

wyrie 21st September 2011 19:22

Amavisd policy & message_size_limit
 
Hi

I've come across a interesting situation with the amavisd policy settings, specifically regarding message size restrictions.

The situation is this:
I have set message size restrictions in my main config file using @message_size_limit_maps (for example: test@tester.com => 3*1024*1024)

In ISPC the test@tester.com mailbox spam policy is set to 'Normal' which has it's message size restriction set to zero. Amavisd interprets this value as disable which overrides my main config file value. Manually setting the value to NULL in the spamfilter_policy table fixes the situation and amavisd adheres to the value set in the main config file.

Is this behavior intended?

It's problematic for me as I would like to enforce size limits that a user cannot override by setting or changing their policy. Chaning the default value of zero to NULL would fix this.


All times are GMT +2. The time now is 23:04.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.