Webmail problems

tlchost

Verified User
Joined
Apr 4, 2007
Messages
320
I have several users who initially checked their mail via web mail, but have since started using their own clients.

How can I stop the creation of the message files that webmail creates?

Alternatively, is there a script that I could use to zero out the mail files for a specific user.

Thanks
 
Thom, I'm not sure what you mean by message files. Do you mean the actual emails in the various folders? The user can use the webmail client to empty the web folders.

Jeff
 
Thom, I'm not sure what you mean by message files. Do you mean the actual emails in the various folders? The user can use the webmail client to empty the web folders.

Jeff

Sorry for the confusion....the users started out with web mail and then switched to reading/sending the mail via their mail clients....and so there are messages in squirel mail taking up space.

Can I simply delete those messages and what can I do to sop them from being created...since they will never be read/deleted via the web.
 
Now you've got me confused.

First, let's make sure we have our terms straight. webmail in the generic or webmail in the DirectAdmin specific? in the DirectAdmin specific, webmail means The uebimiau program.

The uebimiau program's main inbox is simply the main inbox for the user. If mail is staying in the uebimiau program's main inbox it's becase the user's email client isn't deleting it after downloading and reading it. That's a simple change in the user's local email client.

Other email boxes used by uebimiau are proprietary to uebimiau and you or your clients should delete the contents if your client doesn't want those emails.

You or your client can delete them using uebimiau, or you can delete them through the shell.

For some crazy reason I've never figured out, uebimiau stores email folders as subdirectories in a tmp subdirectory:
Code:
/var/www/html/webmail/tmp/username_example.com_localhost/foldername
I'd just delete the contents of each such directory.

(uebimiau, just as crazily, stores temporarily files in /var/www/html/webmail/database/.)

If squirrelmail:

squirrelmail acts as a standard IMAP client; again, the inbox is the same as the user inbox, and the fix is the same; the user should set his email client to stop saving emails on the server.

For emails moved into other folders: These are the same folders used by all imap clients, including desktop imap clients. You shouldn't delete this email unless you're positive your client is NOT depending on imap on any of his/her email clients (for example, blackberry). If the client is using IMAP then if you delete these emails you may, depending on the client's settings on his/her email clients, also cause the email to be deleted on the client's local system(s).

Otherwise, use squirrelmail to delete them; it's the safest way for imap.

Created? Emails don't get created by either uebimiau or squirrelmail unless the client uses them to send outgoing emails. Incoming emails in the inbox are put there so squirrelmail, uebimiau, and any other email program, including desktop email programs, can get them. If you delete them that's email the client may not have read. Emails don't appear in other folders in squirrelmail unless the client moves them there, either using squirrelmail or if the client uses imap to read mail, perhaps in the client's desktop email program.

And of course none of this really has anything to do with DirectAdmin ;) .

Jeff
 
Back
Top