Koozali.org: home of the SME Server

Email Attachment Limit Question

Offline gbentley

  • ****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
Email Attachment Limit Question
« on: May 19, 2016, 05:04:35 PM »
Hi All,

Here are my settings;

[root@mail ~]# config show qmail
qmail=service
    MaxMessageSize=15000000
    status=enabled
[root@mail ~]# config show php
php=service
    AllowUrlFopen=Off
    UploadMaxFilesize=15M
    status=enabled

Should any sender attempting to send anything over 15Mb get an error email in return?

If not what actually happens?

Thanks!

"If you don't know what you want, you end up with a lot you don't."

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Email Attachment Limit Question
« Reply #1 on: May 19, 2016, 08:35:34 PM »
Should any sender attempting to send anything over 15Mb get an error email in return?

Depends where they are trying to send from. If from a local MUA, they will get a 'failed to send' alert of some kind.. If remotely, they *should* get a bounce email message. But I believe that some providers no longer send back failure messages - so messages just disappear with no notification. Shame!

Offline gbentley

  • ****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
Re: Email Attachment Limit Question
« Reply #2 on: May 19, 2016, 08:44:29 PM »
Quote
But I believe that some providers no longer send back failure messages - so messages just disappear with no notification.

I kind of suspected something like this was happening but just wanted to get a 2nd opinion - confirmed my thoughts!

Thanks Charlie!
"If you don't know what you want, you end up with a lot you don't."

Offline mmccarn

  • *
  • 2,626
  • +10/-0
Re: Email Attachment Limit Question
« Reply #3 on: May 21, 2016, 03:54:56 PM »
If you haven't already done so, take a look at https://wiki.contribs.org/Email#Set_max_email_size

The size limit for email coming to your server from outside sources must be set in qpsmtpd.

qpsmtpd runs the email through clamav -- I don't remember if a message that's too large for clamav is rejected, or if it is accepted but not scanned.

In any case, a remote sender will not get a bounceback if the email is accepted by qpsmtpd then rejected by some other internal condition.

You should be able to figure out what's going on by looking at the qpsmtpd logs; here's some more info on analyzing email logs:
https://wiki.contribs.org/Mail_log_file_analysis

Offline gbentley

  • ****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
Re: Email Attachment Limit Question
« Reply #4 on: May 21, 2016, 04:15:26 PM »
All the limits from the table in your link are at 15MB apart from qpsmtpd which is at 25MB

I tried sending a 16MB file to admin but nothing happened?
« Last Edit: May 21, 2016, 04:19:53 PM by gbentley »
"If you don't know what you want, you end up with a lot you don't."

Offline Jean-Philippe Pialasse

  • *
  • 2,761
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Email Attachment Limit Question
« Reply #5 on: May 23, 2016, 03:24:22 PM »
All the limits from the table in your link are at 15MB apart from qpsmtpd which is at 25MB

I tried sending a 16MB file to admin but nothing happened?

are you meaning that when checking on your server 
tail -f /var/log/qpsmtpd/current|tai64nlocal

returns nothing when you send the mail  from a remote host to your server?
and you received nothing ?