View Single Post

  #5 (permalink)  
Old 02-21-2008
Christian Winter
 
Posts: n/a
Default Re: Restricting mails to particular adress w.r.t. sender and size

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.

Viele Grüße
-Christian
Reply With Quote