Checking POP via Blackberry leaves sent items in webmail sent items?

Charlottezweb

Member
Feb 11, 2004
19
0
151
Hi, this is something I haven't seen before myself and am hoping someone can help me troubleshoot.

I have a user who accesses his mailbox via his blackberry. From what he's describing, he's NOT logging into webmail via a browser on this device, he states he's having his bberry check his pop account directly.

That being said, when he sends an email from his blackberry, it seems to be saving a copy of that item in his "sent items" on the server (viewable via webmail, for example) as opposed to on the device.

I can't validate this to be 100% sure. Would this be the intended way for this to function?

Anyone else using their bberry -- do you have to login to webmail from time to time to clear your sent items if you're configured this way?

Thanks!
-Jason
 

pietrodroid

Member
Apr 7, 2011
5
0
51
Validated

Mail sent via a BB deposits a copy in the sent folder

Is there a resolution to this?
 
Last edited:

Pr0Ff3z0r

Member
Apr 8, 2011
8
0
51
cPanel Access Level
Root Administrator
I'm also looking for a solution to this, and also a way to clear the deleted items (trash) automatically without having to login to webmail.

Users delete messages on their devices, that moves the messages to trash, and eventually trash fills up their mailbox and I have to manually go empty their trash in each account to allow mails again.
 

Pr0Ff3z0r

Member
Apr 8, 2011
8
0
51
cPanel Access Level
Root Administrator
There is a setting for this that might be useful to you:

WHM > Service Configuration > Mailserver Configuration > IMAP Empty Trash
Thank you for the reply, but I can't find that option?

My options are:-
Protocols Enabled
Allow Plaintext Authentication
SSL Cipher List
Maximum IMAP Connections
Maximum POP3 Connections
Number of Spare Authentication Processes
Maximum Number of Authentication Processes
Size of Authentication Cache
Time to Cache Failed Logins
Use New Login Process for Each Connection
Idle Check Interval

I use Dovecot and WHM 11.28.87
 

Pr0Ff3z0r

Member
Apr 8, 2011
8
0
51
cPanel Access Level
Root Administrator
I just found that Dovecot has some sort of trash expunge function, please see below:

MainConfig - Dovecot Wiki

expire = Trash 7 Spam 30
Expire plugin. Mails are expunged from mailboxes after being there the configurable time. The first expiration date for each mailbox is stored in a dictionary so it can be quickly determined which mailboxes contain expired mails. The actual expunging is done in a nightly cronjob, which you must set up:

# dovecot --exec-mail ext /usr/libexec/dovecot/expire-tool
Can anyone tell me if they think this will work and would be safe to implement on my cPanel server?
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Because Dovecot isn't set to use a database for how it is started, you are going to end up with errors on attempts to set the expire_dict path. The error will be something like the following:

Code:
Error: Unknown dict module: db
Fatal: dict_init() failed
Additionally, you'll get the following error when you initially uncomment both of the expire lines:

Error: dlopen(/usr/lib64/dovecot/imap/lib11_imap_quota_plugin.so) failed: /usr/lib64/dovecot/imap/lib11_imap_quota_plugin.so: undefined symbol: capability_string
Fatal: Couldn't load required plugins
This has to be fixed using the workaround of creating /usr/libexec/dovecot/expire-tool.sh file and putting the following code into that file:

Code:
#!/bin/bash
MAIL_PLUGINS=${MAIL_PLUGINS//imap_quota/}
MAIL_PLUGINS=${MAIL_PLUGINS//mail_log/}

exec ${0%.sh} "[email protected]"
Then making the file executable:

Code:
chmod 755 /usr/libexec/dovecot/expire-tool.sh
At that point, the command then becomes the following to run the expire plugin:

Code:
dovecot --exec-mail ext /usr/libexec/dovecot/expire-tool.sh
Unfortunately, you then run into the issue with the fact Dovecot doesn't use DB, MySQL or anything of that nature with cPanel, so the database /var/lib/dovecot/expire.db doesn't exist nor can it be created to work (since Dovecot wasn't started with the option to use any SQL).

You probably could get it to work, but by the point I reached the stage that Dovecot would have to be started up differently, this was far beyond what cPanel could ever help to provide input on doing. In the meantime, it would be easier to use the recommendation in the thread (http://forums.cpanel.net/f145/case-11678-dovecot-trash-mail-97661.html#post496553 is the post where the find commands to remove the older trash is mentioned) to have a cron periodically clearing the trash on these accounts.