Christian Winter wrote:
> Joachim Reichel schrieb:
>>> If you're somewhat proficient with Perl, you shouldn't have trouble
>>> building your own policy daemon that compares the actual message size
>>> against a hash value for a recipient address. The docs give a number
>>> of pointers in
>>> http://www.postfix.org/SMTPD_POLICY_README.html
>>
>> Ok, I see how to proceed. If someone has a working script for the size
>> limit, please let me know.
>
> Ich habe mal im Archiv gewühlt und aus den Einzelteilen eines
> nie produktiv geschalteten policy daemons etwas gestrickt, das
> funktionieren sollte. Liegt auf
> http://www.chrwinter.de/index.php?aid=24
>
> Die netten Features daran sind, dass es eine BerkeleyDB verwendet
> (d.h. "postmap message_sizes" funktioniert), sowohl auf die
> volle Adresse als auch auf die Domain sucht und ins Syslog logt.
> Auf die schnelle ist natürlich noch ein ganzer Teil hardgecodet,
> der eigentlich konfigurierbar sein sollte.
Ups, that should have gone out per Mail, sorry for the German
intermezzo :)
It's a link to a quick-n-dirty policy daemon for size checking,
just meant as a starting point and not as a production tool.
Don't hit me if you stumble over the link above and find it
doesn't work ;)
In fact, I just realized it definitely won't work (as expected),
as "$attr->{recipient}" has to be swapped with "$attr->{sender}".
Too much copy'n'paste there.
-Chris, lately a bit uncoordinated