Everything can do it :p

Blog

Limit Attachment User Email / Account Cpanel

Posted by in cpanel on

Kali ini ada permintaan dari salah satu teman, untuk limit attachment user tertentu.

Berhubung user email untuk HRD keperluan attachmentnya kadang-kadang sampai maximum si attachment tersebut, misalkan di gmail itu bisa kirim sampe 25 Megabyte

Nah begini solusi nya

1. Login root remote by ssh

2.  contoh jika attachment di Akun Cpanel dilimit 3 M per attachment

Edit file /etc/vfilters/yourdomain.com and paste the following rule :



# Exim filter
#Rule1
if
 $message_body_size is above 3M then
mail
to $sender_address
from [email protected]
subject "RE: $header_subject:"
fail "Your message was over 3MB size limit and so it was not delivered."
seen finish
endif
3. Limit per User email dengan maximal 1 Mbyte
#Rule2
if
 $message_body_size is above 1M then
mail
subject “RE: $header_subject:”
fail “Your message was over 1MB size limit and so it was not delivered.”
seen finish
endif
4. Dan si pengirim email akan mendapat Mailer Daemon atau Bouncing email bahwa email tidak dapat terkirim
Sekian

Leave a Reply

Tweets