Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: matjazr on October 07, 2009, 01:33:43 PM

Title: Limit user e-mail attachment size
Post by: matjazr on October 07, 2009, 01:33:43 PM
i try this sollution: http://forums.contribs.org/index.php/topic,9851.msg37347/topicseen.html#msg37347

but in last step give me answer -bash: /etc/rc.d/init/qmail-smtpd: No such file or directory

i have problem because attacment size is in this time set to 10Mb...This is so small....i use SME 7.4 ;)
 some idea?
Title: Re: Limit user e-mail attachment size
Post by: janet on October 07, 2009, 02:45:29 PM
matjazr

That's very old advice from year 2000, don't use it.
See the FAQ re Email (link at top of forums), and see
http://wiki.contribs.org/DB_Variables_Configuration#Php

Title: Re: Limit user e-mail attachment size
Post by: matjazr on October 07, 2009, 03:10:27 PM
matjazr

That's very old advice from year 2000, don't use it.
See the FAQ re Email (link at top of forums), and see
http://wiki.contribs.org/DB_Variables_Configuration#Php

yea now i change to 30M:

[PHP]

engine                                 = On
short_open_tag                         = On;
asp_tags                               = Off
precision                              = 14
y2k_compliance                         = Off
output_buffering                       = Off
output_handler                         =
implicit_flush                         = Off
allow_call_time_pass_reference         = On
safe_mode                              = Off
safe_mode_exec_dir                     =
safe_mode_allowed_env_vars             = PHP_
safe_mode_protected_env_vars           = LD_LIBRARY_PATH
disable_functions                      =
highlight.string                       = #DD0000
highlight.comment                      = #FF8000
highlight.keyword                      = #007700
highlight.bg                           = #FFFFFF
highlight.default                      = #0000BB
highlight.html                         = #000000
expose_php                             = On
max_execution_time                     = 30
memory_limit                           = 32M
mysql.allow_persistent                 = On
error_reporting                        = E_ALL & ~E_NOTICE
display_errors                         = Off
display_startup_errors                 = Off
log_errors                             = On
error_log                              = syslog
track_errors                           = Off
warn_plus_overloading                  = Off
mysql.allow_persistent                 = On
variables_order                        = "EGPCS"
register_globals                       = Off
register_argc_argv                     = On
post_max_size                          = 30M
gpc_order                              = "GPC"
magic_quotes_gpc                       = On
magic_quotes_runtime                   = Off
magic_quotes_sybase                    = Off
auto_prepend_file                      =
auto_append_file                       =
default_mimetype                       = "text/html"

mysql.allow_persistent                 = On
include_path                           = ".:/usr/share/pear-addons:/usr/share/pear"
doc_root                               =
user_dir                               =
extension_dir                          = /usr/lib/php4
enable_dl                              = On
file_uploads                           = On
upload_max_filesize                    = 30M
allow_url_fopen = Off


but stil not work....the message is: 552 Message too big!
but mail is only 16Mb
Title: Re: Limit user e-mail attachment size
Post by: Stefano on October 07, 2009, 03:29:11 PM
matjazr:

read also here (http://wiki.contribs.org/DB_Variables_Configuration#Clam_AntiVirus_.28clamav.29)

HTH
Title: Re: Limit user e-mail attachment size
Post by: matjazr on October 08, 2009, 09:41:28 AM
matjazr:

read also here (http://wiki.contribs.org/DB_Variables_Configuration#Clam_AntiVirus_.28clamav.29)

HTH

yea i try last sollution

ArchiveBlockEncrypted no
DatabaseDirectory /var/clamav
Debug no
DetectBrokenExecutables no
FixStaleSocket yes
Foreground yes
HeuristicScanPrecedence no
IdleTimeout 60
LeaveTemporaryFiles no
LocalSocket /var/clamav/clamd.socket
LogClean no
LogTime no
LogVerbose yes
MaxConnectionQueueLength 30
MaxDirectoryRecursion 20
MaxFileSize 30M
MaxFiles 1500
MaxRecursion 8
MaxThreads 20
ReadTimeout 300
ScanArchive yes
ScanHTML yes
ScanMail yes
ScanOLE2 yes
ScanPE yes
SelfCheck 1800
# Close the connection if this limit is exceeded.
StreamMaxLength 25M
#TCPAddr 127.0.0.1
#TCPSocket 3310
TemporaryDirectory /var/tmp
User clamav
AllowSupplementaryGroups yes


MaxFileSize 30M....how restart clamad service?
Title: Re: Limit user e-mail attachment size
Post by: Stefano on October 08, 2009, 01:08:29 PM
matjazr:

Code: [Select]
service clamd restart

should do the job

please don't post all the content of your config file, it's not necessary

thank you
Title: Re: Limit user e-mail attachment size
Post by: mmccarn on October 08, 2009, 01:57:45 PM
There is also a section on the Email wiki page listing all of the components involved in setting your maximum email message size: http://wiki.contribs.org/Email#Set_max_email_size
Title: Re: Limit user e-mail attachment size
Post by: janet on October 08, 2009, 02:26:48 PM
mmccarn

Quote
There is also a section on the Email wiki page ....

Which I already pointed out in my earlier post "See the FAQ re Email (link at top of forums)",
but it seems people don't bother to read carefully the advice given.