Forwarding E-mail and the Limits

dannymichel

Member
Aug 13, 2013
21
0
1
cPanel Access Level
Root Administrator
I have a cPanel account level filter that redirects mail from my server to gmail, but gmail doesn't allow attachments over 25MBs. I have tested it, and it in-fact does send a gmail attachment size exceeded error. My question is are there parameters I can set in cPanel that says redirect mail if this and if that but do not if attachment size exceeds ---MBs?
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello :)

You could utilize the "message_size_limit" in Exim to block emails that are over a certain size. This is documented at:

14. Main configuration

Per this document:

This limit cannot be made to depend on a message’s sender or any other properties of an individual message, because it has to be advertised in the server’s response to EHLO. String expansion failure causes a temporary error. A value of zero means no limit, but its use is not recommended. See also bounce_return_size_limit.
You can enable this limit via:

"WHM Home » Service Configuration » Exim Configuration Manager » Advanced Edtitor"

Browse down to "Add Additional Configuration Setting" and it will be listed in the drop-down list.

Thank you.
 

dannymichel

Member
Aug 13, 2013
21
0
1
cPanel Access Level
Root Administrator
i dont want to block the emails. i want to the the exact opposite. i want the emails to come through. the emails forward to gmail, but when they are over 25mbs, the fail. i want cpanel to keep emails over 25mbs on the server rather than trying to redirect them to gmail
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
While you may be able to setup a custom filter with Exim, it's not something that is possible through the use of the filter options in cPanel. Feel free to open a feature request for this via:

Submit A Feature Request

Or, you can develop a custom filter rule using the documentation at:

3. Exim filter files

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Check /var/log/exim_mainlog to see if the email forward was attempted at all. Do you have a forwarder setup for the email address where mail was cc'd to?

Thank you.