I have Cpanel related to exim mail server.

I want to refuse any email from sender which has attachment size over 15 MB.

How can i do this?

link|improve this question
feedback

migrated from stackoverflow.com Nov 22 '11 at 11:06

This question came from our site for professional and enthusiast programmers.

2 Answers

  • Go to WHM -> Main -> Service Configuration -> Exim Configuration Editor
  • At the bottom, click on "Advanced Editor"
  • put the line : message_size_limit = 15M on the first text box
  • Click on save.

Message size limit not actually limits attachment(s) only size, but...

link|improve this answer
Are you sure? This parameter is a Postfix parameter and not an Exim one. – mailq Nov 22 '11 at 22:58
@mailq, Exim too. exim.org/exim-html-current/doc/html/spec_html/ch14.html – Zoredache Nov 23 '11 at 3:46
thanks for help ^_^ message_size_limit = 15M Its work fine – eldorado Nov 23 '11 at 9:56
feedback

You should add

message_size_limit = 15M

to the exim.conf. And This line can be added below this line:

message_body_visible = 5000 
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.