Koozali.org: home of the SME Server

Setting max eMailsize

Offline Rudi

  • **
  • 41
  • +0/-0
    • IT Consultant & Develpoment
Setting max eMailsize
« on: April 14, 2014, 12:03:50 PM »
Hi Everyone,

i might be doing something worg so i do not post this as a bug!

I am trying to send and recieve eMails with bigger Attachements (16Mb in the Test)
I am trying to send from one Server to another, both SME 9.4 all Updates installed.

I did this over the console:
config setprop qmail MaxMessageSize 25000000
signal-event email-update

I also changed the Values in the PHP.ini
I also did a Restart and also a Reconfigure ..

But the various Mailprogramms i tested keep telling me the same :
"552 File to big"

Someone here who can help?
thanks
Rudi

Offline mmccarn

  • *
  • 2,627
  • +10/-0

Offline Rudi

  • **
  • 41
  • +0/-0
    • IT Consultant & Develpoment
Re: Setting max eMailsize
« Reply #2 on: April 14, 2014, 01:51:12 PM »
sorry, i forgot to mention that i did all that too ... still the same Error!

Offline Rudi

  • **
  • 41
  • +0/-0
    • IT Consultant & Develpoment
Re: Setting max eMailsize
« Reply #3 on: April 14, 2014, 02:19:53 PM »
Oh, and the correct (complete) Message i get from the Mailprogramm is:

Die Nachricht konnte nicht gesendet werden, da ihre Größe das Serverlimit übersteigt. Sie können die Option unter "Extras | Konten | Eigenschaften | Erweitert" verwenden, um die Nachricht in kleinere Teile aufzuteilen. Betreff 'noch einmal', Konto: 'rudi@vielnascher.net', Server: 'mail.vielnascher.net', Protokoll: SMTP, Serverantwort: '552 Message too big!', Port: 465, Secure (SSL): Ja, Serverfehler: 552, Fehlernummer: 0x800CCC6D


And if this helps: with SME8 it works!


Offline mmccarn

  • *
  • 2,627
  • +10/-0
Re: Setting max eMailsize
« Reply #4 on: April 14, 2014, 04:34:05 PM »
On my system there's a file in /var/service/qpsmtpd/config named ''databytes'' that may be causing problems.

I read http://bugs.contribs.org/show_bug.cgi?id=7876 to imply that this file should be deleted so that qpsmtpd will use the value configured for qmail.

Try this:
Code: [Select]
'rm' /var/service/qpsmtpd/config/databytes
config setprop qmail MaxMessageSize 26213376
signal-event email-update

Here is a way to verify that the change is working (my input in bold):
After the changes:
# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.aicr.org ESMTP
ehlo me
250-aicr.local Hi localhost [127.0.0.1]
250-PIPELINING
250-8BITMIME
250-SIZE 26213376
250 STARTTLS
quit
#


(Before the changes:)
# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.aicr.org ESMTP
ehlo me
250-aicr.local Hi localhost [127.0.0.1]
250-PIPELINING
250-8BITMIME
250-SIZE 10485660
250 STARTTLS
quit
#


Offline mmccarn

  • *
  • 2,627
  • +10/-0
Re: Setting max eMailsize
« Reply #5 on: April 14, 2014, 04:40:14 PM »
sorry, i forgot to mention that i did all that too ... still the same Error!

I've added a note about deleting /var/service/qpsmtpd/config/databytes

Offline Rudi

  • **
  • 41
  • +0/-0
    • IT Consultant & Develpoment
Re: Setting max eMailsize
« Reply #6 on: April 14, 2014, 05:26:45 PM »
Hi mmcarn,

Cool that did it!
thanks!

Best
Rudi

Offline wellsi

  • *
  • 475
  • +0/-0
    • http://www.wellsi.com
Re: Setting max eMailsize
« Reply #7 on: April 14, 2014, 06:18:28 PM »
I've added a note about deleting /var/service/qpsmtpd/config/databytes

But for SME 8 this was fixed by smeserver-qpsmtpd-2.2.0-18.sme The SME 9 situation should be checked - we should not expect people to read the wiki and delete a file. (Although I appreciate the help and effort here)

Sounds like a bug should be raised to investigate and fix this.
............

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Setting max eMailsize
« Reply #8 on: April 14, 2014, 06:59:07 PM »
Hi mmcarn,

Cool that did it!
thanks!

Best
Rudi
Rudi you are the lucky winner, you have to raise the bug, please :)
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline mmccarn

  • *
  • 2,627
  • +10/-0
Re: Setting max eMailsize
« Reply #9 on: April 15, 2014, 01:53:26 PM »
Rudi you are the lucky winner, you have to raise the bug, please :)

The underlying problem was fixed in Bug 7876 and I've added a note to the wiki page for Email#Set_max_email_size

Are you recommending a 'new feature request' to delete qpsmtpd/config/databytes during the post-upgrade or reboot events?

Offline wellsi

  • *
  • 475
  • +0/-0
    • http://www.wellsi.com
Re: Setting max eMailsize
« Reply #10 on: April 15, 2014, 04:47:33 PM »
Bug 8329 http://bugs.contribs.org/show_bug.cgi?id=8329

Port the SME 8 change to SME 9
............

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Setting max eMailsize
« Reply #11 on: April 15, 2014, 06:09:25 PM »
mmccarn, i'm happy that you edit the documentation but you should use the correct syntax, please use that syntax in the wiki when you want to refer to a bug : [[bugzilla: 7876]]

in this manner we can see if the bug is solved or not :)

I corrected your editing and now we have one bug more to verify, is there a volunteer ?
http://bugs.contribs.org/show_bug.cgi?id=8329
« Last Edit: April 15, 2014, 06:11:27 PM by stephdl »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline wellsi

  • *
  • 475
  • +0/-0
    • http://www.wellsi.com
Re: Setting max eMailsize
« Reply #12 on: April 15, 2014, 06:14:21 PM »
mmccarn, i'm happy that you edit the documentation but you should use the correct syntax, please use that syntax in the wiki when you want to refer to a bug : [[bugzilla: 7876]]

Is there a place in the wiki that gives these hints - I know that I can never remember them.

And thanks to mmccarn for the help - one less bug in SME 9 now.
............

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Setting max eMailsize
« Reply #13 on: April 15, 2014, 06:25:49 PM »
http://wiki.contribs.org/Help:Links#How_to_link

this case didn't exist i have added it.
For the general help http://wiki.contribs.org/Help:Contents
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline mmccarn

  • *
  • 2,627
  • +10/-0
Re: Setting max eMailsize
« Reply #14 on: April 18, 2014, 12:55:23 PM »
[[bugzilla: 7876]]

Thanks - I always forget the bug syntax on the wiki.  I figured it was better to post the info than not in the time I was stealing borrowing from my daytime gig...