[linux] Postfix a obmedzenie velkosti mailu {OK}

mareke mareke na tatranska.sk
Neděle Březen 19 21:29:06 CET 2006


najjednoduchsie by sa to dalo spravit pomocou MailScanner-u.
http://www.sng.ecs.soton.ac.uk/mailscanner/

# The maximum size, in bytes, of any message including the headers.
# If this is set to zero, then no size checking is done.
# This can also be the filename of a ruleset, so you can have different
# settings for different users. You might want to set this quite small for
# dialup users so their email applications don't time out downloading huge
# messages.
Maximum Message Size = 0

# The maximum size, in bytes, of any attachment in a message.
# If this is set to zero, effectively no attachments are allowed.
# If this is set less than zero, then no size checking is done.
# This can also be the filename of a ruleset, so you can have different
# settings for different users. You might want to set this quite small for
# large mailing lists so they don't get deluged by large attachments.
Maximum Attachment Size = -1

# The minimum size, in bytes, of any attachment in a message.
# If this is set less than or equal to zero, then no size checking is done.
# It is very useful to set this to 1 as it removes any zero-length
# attachments which may be created by broken viruses.
# This can also be the filename of a ruleset.
Minimum Attachment Size = -1

engi

Ing. Jan ONDREJ wrote:

>Dalo by sa to ale riesit cez nejaky "policy filter". Postfix ma moznost
>definovat externy policy filter, ktory predava tusim informacie ako:
>  odosielatel,
>  autentifikovany pouzivatel,
>  velkost posty
>
>Takze ide len o to, napisat vhodny policy scanner, co nieje az take
>zlozite (popripade mozem pridat do sagatora 0.8+). :)
>
>Ziaden klient ale nieje nuteny v SMTP hlavicke posielat aj velkost
>spravy, takze je mozne, ze to nebude 100% kompatibilne, ale vpodstate by to
>malo fungovat, pretoze ESMTP sa uz takmer vsade pouziva a kde nie,
>tak je tusim mozne velkost zapisat aj v SMTP.
>
>		SAL
>
>On Fri, Mar 17, 2006 at 04:10:18PM +0100, Lubor Kacian wrote:
>  
>
>>Dňa Pi 17. Marec 2006 10:21 Tomas napísal:
>>    
>>
>>>Dobry den,
>>>
>>>potreboval by som obmedzit velkost mailov prechadzajuci cez postfix, ale
>>>len pre niektorych (nepoucitelnych) uzivatelov. V configu som samozrejme
>>>nasiel ako obmedzit velkost mailu message_size_limit, ale to je generalne.
>>>Nechcem koli jednemu co posiela len same nezmysly komplikovat zivot
>>>ostatnym. Budem rad za kazdy napad a nasmerovanie.
>>>Dakujem
>>>
>>>Tomas
>>>      
>>>
>>asi nie. citujem :
>>----------------------------------------cut---------------------------------
>>    
>>
>>>        Can postfix set a size limit to a message sent by a local user? 
>>>      
>>>
>>Thanks.
>>
>>No it can't since it's almost impossible in *most* situations to correctly
>>determine what user sends that mail.  Only commandline sendmail binary can
>>told who invoked it (but one can use another program for this *if*
>>permissions allows he to do so), and when using smtp it's far harder (this
>>may work but not on all archs).  At the end, local user can write it's own
>>program/script to send a mail to outside world, not touching local mail
>>system at all...   Postfix implements almost only features that works
>>*anywhere* (i.e. not "half-works"), that's one of some basic Wietse's
>>principles.
>>--------------------------------------cut-----------------------------
>>
>>
>>
>>-- 
>>Lubor Kacian
>>FONET s.r.o.
>>    
>>
>
>  
>
>>_______________________________________________
>>https://lists.linux.sk/mailman/listinfo/linux
>>Prehladavanie archivu: http://search.lists.linux.sk
>>Meta FAQ: http://www.sklug.sk/lists/linux/metafaq.html
>>    
>>
>_______________________________________________
>https://lists.linux.sk/mailman/listinfo/linux
>Prehladavanie archivu: http://search.lists.linux.sk
>Meta FAQ: http://www.sklug.sk/lists/linux/metafaq.html
>
>  
>


-- 
Tato sprava bola prehladana na vyskyt virusov
a nebezpecneho obsahu antivirovym systemom
a zda sa byt cista.




Další informace o konferenci linux