[xmail] Re: Mailbox size
The problem here is that not all SMTP servers tell the receiving server how big the email will be before sending. 1. If the xmail switch you mentioned could enable xmail to drop the connection once the quote was reached, then the sending MTA would just try again because it was dropped mid stream. I don't know if you can bounce an email once you have processed the DATA command. 2. If the xmail switch you mentioned could enable xmail to drop the message after completely receiving it, then that would be ok, but I suppose you could run a filter to check the quota size *after* the msg is received, and that would be the same. The filter could even bounce a message back. I know which one Davide will take. Rob :-) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Shiloh Jennings Sent: Wednesday, 2 June 2004 1:37 PM To: [EMAIL PROTECTED] Subject: [xmail] Re: Mailbox size As I understand it, XMail is checking to see the mailbox is already over quota before deciding whether or not to accept the new email. It does = not consider whether or not the new email will put the mailbox over. I have received some complaints from end users about this, because they expect = the mailbox quota to not allow the large messages that would put them over = their quota. We have seen some customers with 5MB quota that have received a = 30MB message. They were alarmed that the email server let that happen, and = they were upset because they could not quickly download or delete the = message. Since the message was larger than their 20MB webmail quota, the webmail would not let them delete it. In this case, the webmail was trying to = move the 30MB message to the trash folder within webmail and 30MB was larger = than the 20MB limit, so the webmail software did not allow the message to = move from the inbox to any folder (not even trash). I wish XMail has a = switch regarding quota enforcement, so it could be configured to not allow the large message into a mailbox if that message was going to push the = mailbox over its quota. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] = On Behalf Of Orion Productions Sent: Tuesday, June 01, 2004 6:50 PM To: [EMAIL PROTECTED] Subject: [xmail] Mailbox size Hello, I'm sure this has been brought up before, but I searched the list from = 2001 onwards and couldn't find anything. If you configure a mailbox with a size of, let's say, 1MB, and then send = a message to it of, let's say, 5MB, it is still accepted and the mailbox = has become... 6MB in size! Now, this seems to be unacceptable for some of = our users (LOL, they are scared that they would have to pay more for their hosting space I guess :p). So is there a way to alter this behavior? My clients cannot understand = that XMail works that way ;) Or if it can't be done with XMail itself, maybe with the new pre-data filters?! Has anybody come up with a solution to = this problem? Thanks, Fr=E9d=E9ric - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED] - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED] - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED]
[xmail] Re: Mailbox size
Rob Arends wrote: The problem here is that not all SMTP servers tell the receiving server how big the email will be before sending. 1. If the xmail switch you mentioned could enable xmail to drop the connection once the quote was reached, then the sending MTA would just try again because it was dropped mid stream. I don't know if you can bounce an email once you have processed the DATA command. 2. If the xmail switch you mentioned could enable xmail to drop the message after completely receiving it, then that would be ok, but I suppose you could run a filter to check the quota size *after* the msg is received, and that would be the same. The filter could even bounce a message back. I know which one Davide will take. the second one sounds like a better solution anyway :) -- alex - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED]
[xmail] Re: Mailbox size
You can use mailbox size together with MaxMessageSize server.tab=20 property. If your problem is in dimensions 1 MB mailbox / 5 MB e-mail,=20 setting MaxMessageSize to 1 MB would cause the mailbox to have 2 MB in the= =20 worth case (instead of 6 MB in your case). Just keep in mind MaxMessageSize= =20 is server-wide setting. Roman At 01:49 2.6.2004, you wrote: Hello, I'm sure this has been brought up before, but I searched the list from=20 2001 onwards and couldn't find anything. If you configure a mailbox with a size of, let's say, 1MB, and then send a= =20 message to it of, let's say, 5MB, it is still accepted and the mailbox has= =20 become... 6MB in size! Now, this seems to be unacceptable for some of our= =20 users (LOL, they are scared that they would have to pay more for their=20 hosting space I guess :p). So is there a way to alter this behavior? My clients cannot understand=20 that XMail works that way ;) Or if it can't be done with XMail itself,=20 maybe with the new pre-data filters?! Has anybody come up with a solution= =20 to this problem? Thanks, Fr=E9d=E9ric - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED] - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED]
[xmail] Re: Mailbox size
On Wed, 2 Jun 2004, Orion Productions wrote: Hello, I'm sure this has been brought up before, but I searched the list from 2001 onwards and couldn't find anything. If you configure a mailbox with a size of, let's say, 1MB, and then send a message to it of, let's say, 5MB, it is still accepted and the mailbox has become... 6MB in size! Now, this seems to be unacceptable for some of our users (LOL, they are scared that they would have to pay more for their hosting space I guess :p). So is there a way to alter this behavior? My clients cannot understand that XMail works that way ;) Or if it can't be done with XMail itself, maybe with the new pre-data filters?! Has anybody come up with a solution to this problem? Doing this in online SMTP is impossible. The step that goes from the SMTP session to the message delivery is definitely not atomic. It'd be possible to reject the message at mailbox delivery time, by sending a notification message to the sender. Considering everything, I think this is going to stay as is. - Davide - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED]
[xmail] Re: Mailbox size
At 09:50 6/2/2004, you wrote: Doing this in online SMTP is impossible. The step that goes from the SMTP session to the message delivery is definitely not atomic. It'd be possible to reject the message at mailbox delivery time, by sending a notification message to the sender. Considering everything, I think this is going to stay as is. Would it not be possible to reject at the post-data filter stage? Since the message is, essentially, complete at that point, a post-data filter could check the size of the message - although checking the available space in the mailbox might be a bit more problematical - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED]
[xmail] Re: Mailbox size
That makes sense. Mabye we could address this issue from a different = angle. Would it be possible to extend the functionality of the MaxMessageSize = to automatically block messages that were larger than the mailbox quota? = You already have a server level MaxMessageSize, but end users also expect a = per user MaxMessageSize setting equal to their mailbox quota. Since the = mailbox quota varies from mailbox to mailbox, the server level setting is only useful for setting the MaxMessageSize for the largest mailbox. -- Doing this in online SMTP is impossible. The step that goes from the = SMTP=20 session to the message delivery is definitely not atomic. It'd be = possible=20 to reject the message at mailbox delivery time, by sending a = notification=20 message to the sender. Considering everything, I think this is going to=20 stay as is. - Davide - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED] - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED]
[xmail] Re: Mailbox size
On Wed, 2 Jun 2004, Tracy wrote: At 09:50 6/2/2004, you wrote: Doing this in online SMTP is impossible. The step that goes from the SMTP session to the message delivery is definitely not atomic. It'd be possible to reject the message at mailbox delivery time, by sending a notification message to the sender. Considering everything, I think this is going to stay as is. Would it not be possible to reject at the post-data filter stage? Since the message is, essentially, complete at that point, a post-data filter could check the size of the message - although checking the available space in the mailbox might be a bit more problematical Two problems. First, you don't know if the message is gonna hit the mailbox (think about mailproc). Second, at that stage you'd be forced to reject the message, and not only the recipient. - Davide - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED]
[xmail] Re: Mailbox size
On Wed, 2 Jun 2004, Shiloh Jennings wrote: That makes sense. Mabye we could address this issue from a different = angle. Would it be possible to extend the functionality of the MaxMessageSize = to automatically block messages that were larger than the mailbox quota? = You already have a server level MaxMessageSize, but end users also expect a = per user MaxMessageSize setting equal to their mailbox quota. Since the = mailbox quota varies from mailbox to mailbox, the server level setting is only useful for setting the MaxMessageSize for the largest mailbox. Nope. There could be many recipients in a single SMTP transaction. The only way to handle this correctly is rejecting the message at mailbox delivery time. - Davide - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED]
[xmail] Re: Mailbox size
This is quick an dirty, and I have not tested it, but couldn't you just use something like: (this is in vbs, so windows only. I leave the perl conversion as an exercise for the reader :) '///---/// Dim MAILROOT, MsgFilePath, Rrcpt, Domain, Username, AtPos, FullMbPath '/// Set the mailroot path MAILROOT = c:\mailroot\ '/// Get the msg path rrcpt MsgFilePath = WScript.Arguments(0) Rrcpt = WScript.Arguments(1) MaxMbSize = WScript.Arguments(2) '/// convert to bytes from Mb MaxMbSize = MaxMbSize * 1024 * 1024 '/// pull the domain out of the address AtPos = Instr(1, Rrcpt, @, 1) Domain = Right(Rrcpt, Len(Rrcpt)-AtPos) '/// pull the username out of the address Username = Left(Rrcpt, AtPos-1) '/// build the path to the mailbox FullMbPath = MAILROOT domains\ Domain \ Username \mailbox Dim Fso, FolderMb, tsMsg set Fso = CreateObject(Scripting.FileSystemObject) set FolderMb = Fso.GetFolder(FullMbPath) set tsMsg = Fso.GetFile(MsgFilePath) '/// test to see if we have exceeded the max mailbx size if(tsMsg.Size + FolderMb.Size) MaxMbSize then '/// this would put us over the limit, '/// reject, and notify the sender WScript.Quit(6) end if set Fso = Nothing '///---/// Note, I am expecting @@FILE @@RRCPT Max mailbox size in Mb. Example: cscript.exe[tab]VerifyMailboxSize.vbs[tab]@@File[tab]@@RRCPT[tab]20 This would verify that the mailbox would be less than 20Mb after delivery, or bounce the msg. Enjoy, -tim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Davide Libenzi Sent: Wednesday, June 02, 2004 12:00 PM To: [EMAIL PROTECTED] Subject: [xmail] Re: Mailbox size On Wed, 2 Jun 2004, Shiloh Jennings wrote: That makes sense. Mabye we could address this issue from a different = angle. Would it be possible to extend the functionality of the MaxMessageSize = to automatically block messages that were larger than the mailbox quota? = You already have a server level MaxMessageSize, but end users also expect a = per user MaxMessageSize setting equal to their mailbox quota. Since the = mailbox quota varies from mailbox to mailbox, the server level setting is only useful for setting the MaxMessageSize for the largest mailbox. Nope. There could be many recipients in a single SMTP transaction. The only way to handle this correctly is rejecting the message at mailbox delivery time. - Davide - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED] - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED]
[xmail] Re: Mailbox size
Er, change the line: MaxMbSize = MaxMbSize * 1024 * 1024 to... MaxMbSize = MaxMbSize / 1024 / 1024 Doh! I had been converting the file and folder sizes to Mb, but wanted to compare on the byte level for better resolution, so changed what I was converting...the ever so popular copy/paste bug ;) Thanks to Achim for pointing this out... -tim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Aranki Sent: Wednesday, June 02, 2004 12:57 PM To: [EMAIL PROTECTED] Subject: [xmail] Re: Mailbox size This is quick an dirty, and I have not tested it, but couldn't you just use something like: (this is in vbs, so windows only. I leave the perl conversion as an exercise for the reader :) '///---/// Dim MAILROOT, MsgFilePath, Rrcpt, Domain, Username, AtPos, FullMbPath '/// Set the mailroot path MAILROOT = c:\mailroot\ '/// Get the msg path rrcpt MsgFilePath = WScript.Arguments(0) Rrcpt = WScript.Arguments(1) MaxMbSize = WScript.Arguments(2) '/// convert to bytes from Mb MaxMbSize = MaxMbSize * 1024 * 1024 '/// pull the domain out of the address AtPos = Instr(1, Rrcpt, @, 1) Domain = Right(Rrcpt, Len(Rrcpt)-AtPos) '/// pull the username out of the address Username = Left(Rrcpt, AtPos-1) '/// build the path to the mailbox FullMbPath = MAILROOT domains\ Domain \ Username \mailbox Dim Fso, FolderMb, tsMsg set Fso = CreateObject(Scripting.FileSystemObject) set FolderMb = Fso.GetFolder(FullMbPath) set tsMsg = Fso.GetFile(MsgFilePath) '/// test to see if we have exceeded the max mailbx size if(tsMsg.Size + FolderMb.Size) MaxMbSize then '/// this would put us over the limit, '/// reject, and notify the sender WScript.Quit(6) end if set Fso = Nothing '///---/// Note, I am expecting @@FILE @@RRCPT Max mailbox size in Mb. Example: cscript.exe[tab]VerifyMailboxSize.vbs[tab]@@File[tab]@@RRCPT[tab]20 This would verify that the mailbox would be less than 20Mb after delivery, or bounce the msg. Enjoy, -tim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Davide Libenzi Sent: Wednesday, June 02, 2004 12:00 PM To: [EMAIL PROTECTED] Subject: [xmail] Re: Mailbox size On Wed, 2 Jun 2004, Shiloh Jennings wrote: That makes sense. Mabye we could address this issue from a different = angle. Would it be possible to extend the functionality of the MaxMessageSize = to automatically block messages that were larger than the mailbox quota? = You already have a server level MaxMessageSize, but end users also expect a = per user MaxMessageSize setting equal to their mailbox quota. Since the = mailbox quota varies from mailbox to mailbox, the server level setting is only useful for setting the MaxMessageSize for the largest mailbox. Nope. There could be many recipients in a single SMTP transaction. The only way to handle this correctly is rejecting the message at mailbox delivery time. - Davide - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED] - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED] - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED]
[xmail] Re: Mailbox size
Ignore me, it was right in the first place... Damn this caffeine! -t -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Aranki Sent: Wednesday, June 02, 2004 2:08 PM To: [EMAIL PROTECTED] Subject: [xmail] Re: Mailbox size Er, change the line: MaxMbSize = MaxMbSize * 1024 * 1024 .to... MaxMbSize = MaxMbSize / 1024 / 1024 Doh! I had been converting the file and folder sizes to Mb, but wanted to compare on the byte level for better resolution, so changed what I was converting...the ever so popular copy/paste bug ;) Thanks to Achim for pointing this out... -tim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Aranki Sent: Wednesday, June 02, 2004 12:57 PM To: [EMAIL PROTECTED] Subject: [xmail] Re: Mailbox size This is quick an dirty, and I have not tested it, but couldn't you just use something like: (this is in vbs, so windows only. I leave the perl conversion as an exercise for the reader :) '///---/// Dim MAILROOT, MsgFilePath, Rrcpt, Domain, Username, AtPos, FullMbPath '/// Set the mailroot path MAILROOT = c:\mailroot\ '/// Get the msg path rrcpt MsgFilePath = WScript.Arguments(0) Rrcpt = WScript.Arguments(1) MaxMbSize = WScript.Arguments(2) '/// convert to bytes from Mb MaxMbSize = MaxMbSize * 1024 * 1024 '/// pull the domain out of the address AtPos = Instr(1, Rrcpt, @, 1) Domain = Right(Rrcpt, Len(Rrcpt)-AtPos) '/// pull the username out of the address Username = Left(Rrcpt, AtPos-1) '/// build the path to the mailbox FullMbPath = MAILROOT domains\ Domain \ Username \mailbox Dim Fso, FolderMb, tsMsg set Fso = CreateObject(Scripting.FileSystemObject) set FolderMb = Fso.GetFolder(FullMbPath) set tsMsg = Fso.GetFile(MsgFilePath) '/// test to see if we have exceeded the max mailbx size if(tsMsg.Size + FolderMb.Size) MaxMbSize then '/// this would put us over the limit, '/// reject, and notify the sender WScript.Quit(6) end if set Fso = Nothing '///---/// Note, I am expecting @@FILE @@RRCPT Max mailbox size in Mb. Example: cscript.exe[tab]VerifyMailboxSize.vbs[tab]@@File[tab]@@RRCPT[tab]20 This would verify that the mailbox would be less than 20Mb after delivery, or bounce the msg. Enjoy, -tim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Davide Libenzi Sent: Wednesday, June 02, 2004 12:00 PM To: [EMAIL PROTECTED] Subject: [xmail] Re: Mailbox size On Wed, 2 Jun 2004, Shiloh Jennings wrote: That makes sense. Mabye we could address this issue from a different = angle. Would it be possible to extend the functionality of the MaxMessageSize = to automatically block messages that were larger than the mailbox quota? = You already have a server level MaxMessageSize, but end users also expect a = per user MaxMessageSize setting equal to their mailbox quota. Since the = mailbox quota varies from mailbox to mailbox, the server level setting is only useful for setting the MaxMessageSize for the largest mailbox. Nope. There could be many recipients in a single SMTP transaction. The only way to handle this correctly is rejecting the message at mailbox delivery time. - Davide - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED] - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED] - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED] - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED]
[xmail] Re: Mailbox size
Does the script that Tim Aranki posted not cause these problems? - Original Message - From: Davide Libenzi To: [EMAIL PROTECTED] Sent: Wednesday, June 02, 2004 6:57 PM Subject: [xmail] Re: Mailbox size Two problems. First, you don't know if the message is gonna hit the mailbox (think about mailproc). Second, at that stage you'd be forced to reject the message, and not only the recipient. - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED]
[xmail] Re: Mailbox size
As I understand it, XMail is checking to see the mailbox is already over quota before deciding whether or not to accept the new email. It does = not consider whether or not the new email will put the mailbox over. I have received some complaints from end users about this, because they expect = the mailbox quota to not allow the large messages that would put them over = their quota. We have seen some customers with 5MB quota that have received a = 30MB message. They were alarmed that the email server let that happen, and = they were upset because they could not quickly download or delete the = message. Since the message was larger than their 20MB webmail quota, the webmail would not let them delete it. In this case, the webmail was trying to = move the 30MB message to the trash folder within webmail and 30MB was larger = than the 20MB limit, so the webmail software did not allow the message to = move from the inbox to any folder (not even trash). I wish XMail has a = switch regarding quota enforcement, so it could be configured to not allow the large message into a mailbox if that message was going to push the = mailbox over its quota. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] = On Behalf Of Orion Productions Sent: Tuesday, June 01, 2004 6:50 PM To: [EMAIL PROTECTED] Subject: [xmail] Mailbox size Hello, I'm sure this has been brought up before, but I searched the list from = 2001 onwards and couldn't find anything. If you configure a mailbox with a size of, let's say, 1MB, and then send = a message to it of, let's say, 5MB, it is still accepted and the mailbox = has become... 6MB in size! Now, this seems to be unacceptable for some of = our users (LOL, they are scared that they would have to pay more for their hosting space I guess :p). So is there a way to alter this behavior? My clients cannot understand = that XMail works that way ;) Or if it can't be done with XMail itself, maybe with the new pre-data filters?! Has anybody come up with a solution to = this problem? Thanks, Fr=E9d=E9ric - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED] - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED]
[xmail] Re: Mailbox Size
1. Set the size to a very large number 2. The space available on your hard drive. Bill -- From: Michael Harrington[SMTP:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 11:18 AM To:[EMAIL PROTECTED] Subject: [xmail] Mailbox Size Two very simple questions, and I can not seem to find an answer in the documentation. 1. Is there a way to specify a mailbox to have an unlimited size? 2. What is the maximum size possible for a mailbox? That's it! Can anyone answer them? -Mike - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED] - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED]