Koozali.org: home of the SME Server

databytes, smtpfront, and Not implemented

shcu

databytes, smtpfront, and Not implemented
« on: June 29, 2005, 08:49:07 PM »
If I try to set a max file size for incoming/outgoing email using the databytes variable (or /sbin/e-smith/db configuration setprop smtpfront-qmail MaxMessageSize) this is what happens when a big message comes through:

Messages sent from here in thunderbird get back an immediate response of maximum file size exceeded, and are rejected by the client before they are even sent.  Messages from external sites get no error from the server, but eventually get an error from their own server saying there was an error sending the message.

In both cases, the smtpfront-qmail/current log looks something like this:

Code: [Select]
2005-06-29 14:34:43.917593500 smtpfront-qmail[21547]: Sorry, that message exceeds the maximum message length.
2005-06-29 14:34:43.917596500 smtpfront-qmail[21547]: Writing data to qmail-queue failed.
2005-06-29 14:34:43.917597500 smtpfront-qmail[21547]: Not implemented.
2005-06-29 14:34:43.917796500 smtpfront-qmail[21547]: Not implemented.
2005-06-29 14:34:43.917798500 smtpfront-qmail[21547]: Not implemented.
2005-06-29 14:34:43.917799500 smtpfront-qmail[21547]: Not implemented.
2005-06-29 14:34:43.917800500 smtpfront-qmail[21547]: Not implemented.
2005-06-29 14:34:43.917801500 smtpfront-qmail[21547]: Not implemented.
2005-06-29 14:34:43.917801500 smtpfront-qmail[21547]: Not implemented.
2005-06-29 14:34:43.917802500 smtpfront-qmail[21547]: Not implemented.
2005-06-29 14:34:43.917803500 smtpfront-qmail[21547]: Not implemented.
2005-06-29 14:34:43.917834500 smtpfront-qmail[21547]: Not implemented.
2005-06-29 14:34:43.917835500 smtpfront-qmail[21547]: Not implemented.
(continues repeating for quite awhile)


What I would expect is a simple rejection error that notifies the sender that the mail didn't get through.

All other mail (and large attachments if databytes is disabled) seems to go through just fine.

I am running spamassassin (3.0.4) and clamav (0.86-1) as well.

Offline raem

  • *
  • 3,972
  • +4/-0
Re: databytes, smtpfront, and Not implemented
« Reply #1 on: June 29, 2005, 09:54:31 PM »
shcu

A quick search on MaxMessageSize would have found this

http://forums.contribs.org/index.php?topic=27202.msg111865#msg111865

You need to make changes in more than one place.
...

shcu

databytes, smtpfront, and Not implemented
« Reply #2 on: June 29, 2005, 10:18:16 PM »
I did find that, that's where I found the MaxMessageSize change in the first place.

I changed the MaxMessageSize to 5000000, updated the clamd.conf and amavis.conf each to read 5M (and restarted clamd), and I still get the error.

Offline raem

  • *
  • 3,972
  • +4/-0
databytes, smtpfront, and Not implemented
« Reply #3 on: June 29, 2005, 11:44:12 PM »
shcu

> I changed the MaxMessageSize to 5000000, updated the clamd.conf and amavis.conf each to read 5M (and restarted clamd), and I still get the error

Check your entries carefully:

/sbin/e-smith/config show smtpfront-qmail
or
/sbin/e-smith/config getprop smtpfront-qmail MaxMessageSize

Keep in mind the size is the total size including the message body text and the attachment, so how big is the message you are sending. The size you specify needs to be bigger than the message will be.
Try making them all 10M temporarily and see if you still get errors.
...

cc_skavenger

databytes, smtpfront, and Not implemented
« Reply #4 on: June 30, 2005, 12:56:01 AM »
I changed mine to 20M to make sure I had no problems.