Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 30
  1. #1
    Member rhenderson's Avatar
    Join Date
    Apr 2005
    Location
    Oklahoma
    Posts
    742

    Default Dovecot Trash Mail [Case 11678]

    I was wondering if anyone has addressed the issue of trash for dovecot. I assume we could write a script. I have see some add-ons but not sure how those would work with cPanel. Just curious if anybody has addressed this issue and if so how did you fix this?
    Regards,
    Randy
    Affordable Web Hosting
    _________________________

  2. #2
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,782
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by rhenderson View Post
    I was wondering if anyone has addressed the issue of trash for dovecot. I assume we could write a script. I have see some add-ons but not sure how those would work with cPanel. Just curious if anybody has addressed this issue and if so how did you fix this?
    There is a Trash plugin for Dovecot that we are working on integrating properly. The plugin is rather flakey so it didn't make the cut for 11.24 (perhaps 11.24.1 or later).

    Other than that a cron job that compares mtimes would suffice (and is close to what the plugin does).

  3. #3
    Member rhenderson's Avatar
    Join Date
    Apr 2005
    Location
    Oklahoma
    Posts
    742

    Default

    Thanks for the update
    Regards,
    Randy
    Affordable Web Hosting
    _________________________

  4. #4
    Member
    Join Date
    May 2006
    Location
    Johannesburg, South Africa
    Posts
    943
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Hi,

    Is there any update on this plugin yet?
    • cPanel :: Fantastico :: RVSkin :: WHM :: ModernBill
    • Reseller Hosting :: SSL Certificates :: Domain Registrations :: Affiliate Program
    • Blog Hosting :: CMS Hosting :: Forum Hosting :: E-Commerce Hosting
    SoftDux- The Leaders in Software
    Use the coupon: cpanel-06 to get 20% off our packages

  5. #5
    Member
    Join Date
    Jan 2008
    Location
    Buenos Aires, Argentina
    Posts
    942
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by cpanelkenneth View Post
    There is a Trash plugin for Dovecot that we are working on integrating properly. The plugin is rather flakey so it didn't make the cut for 11.24 (perhaps 11.24.1 or later).

    Other than that a cron job that compares mtimes would suffice (and is close to what the plugin does).
    Is there any news about this?

  6. #6
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,782
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    The Plugin and its efficacy are in the same state as when I posted earlier.

  7. #7
    Member
    Join Date
    Jan 2008
    Location
    Buenos Aires, Argentina
    Posts
    942
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by cpanelkenneth View Post
    The Plugin and its efficacy are in the same state as when I posted earlier.
    ok, but if this plugin just works fine, where could I grab a copy to give it a try?

  8. #8
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,782
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    It's shipped as part of the RPM.

  9. #9
    Member
    Join Date
    Jan 2008
    Location
    Buenos Aires, Argentina
    Posts
    942
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by cpanelkenneth View Post
    It's shipped as part of the RPM.
    So...... it will automatically deployed when I migrate to Dovecot? or should I do anything else?

  10. #10
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,782
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    This plugin requires some extensive setup to work properly. The documentation from Dovecot is rather vague in parts, exacerbating the issue. For those, and related, reasons we do not support this plugin at this time. When Dovecot 1.2 is released we will re-examine the matter.

  11. #11
    Member
    Join Date
    Jan 2008
    Location
    Buenos Aires, Argentina
    Posts
    942
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by cpanelkenneth View Post
    This plugin requires some extensive setup to work properly. The documentation from Dovecot is rather vague in parts, exacerbating the issue. For those, and related, reasons we do not support this plugin at this time. When Dovecot 1.2 is released we will re-examine the matter.
    ok, I will be waiting for that release since it will be the best moment to migrate for those who do prefer the STABLE version of everything

  12. #12
    Member
    Join Date
    Mar 2008
    Location
    Mexico
    Posts
    20

    Default Script to delete Trash

    Would a script like this

    find /home/*/mail/*/*/.Trash/cur/* -type f -mtime +1 | xargs rm -f
    find /home/*/mail/*/*/.Trash/new/* -type f -mtime +1 | xargs rm -f

    Would be sufficient to delete Trash for all accounts with files (emails) older than 24 hours?

    Looking forward to your response.

  13. #13
    Member
    Join Date
    Jan 2008
    Location
    Buenos Aires, Argentina
    Posts
    942
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by aag73 View Post
    Would a script like this

    find /home/*/mail/*/*/.Trash/cur/* -type f -mtime +1 | xargs rm -f
    find /home/*/mail/*/*/.Trash/new/* -type f -mtime +1 | xargs rm -f

    Would be sufficient to delete Trash for all accounts with files (emails) older than 24 hours?

    Looking forward to your response.
    Hola, it's pretty nice, BUT, it will enforce the deletion, whether the customer wants to empty the Trash or not. I'm not sure if we should take on that decissions (it depends on every case, I guess). BTW, Horde should be the responsible for doing this because it has a config screen where you can set how old the Trash elements shall be before they're deleted.

  14. #14
    Member
    Join Date
    Mar 2008
    Location
    Mexico
    Posts
    20

    Default

    Hi, thanks for the reply, I guess forcing to empty the Trash was what I was looking for.

    I guess I'm just trying to find out if using such a script would create havoc in something else, for example freeze up horde or not allowing customers to download e-mail. I'm not an expert in maildir or courier.

  15. #15
    Member
    Join Date
    Jan 2008
    Location
    Buenos Aires, Argentina
    Posts
    942
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by aag73 View Post
    Hi, thanks for the reply, I guess forcing to empty the Trash was what I was looking for.

    I guess I'm just trying to find out if using such a script would create havoc in something else, for example freeze up horde or not allowing customers to download e-mail. I'm not an expert in maildir or courier.
    I think you should probably have to run ...

    Code:
    /scripts/generate_maildirsize --allaccounts --force
    after your script execution, to ensure the usage reports being correctly updated. The case is, if you manually delete files from the cur/new folders, you should run generate_maildirsize to sync the contents of maildirsize with the new scenario.


    You can also run it from the console in a more graphical and specific way:

    Code:
    /scripts/generate_maildirsize --verbose --allaccounts --force username
    will show you how the sync process goes on, and only applying it for username user


    what I really really don't know, is whether generate_maildirsize really takes in account specifically the Trash folder or not.
    Here should come somebody from staff to illuminate us.

Similar Threads & Tags
Similar threads

  1. Filed with Developers Exim Mail Rate Limiting Pre-Mailqueue [Case 58953]
    By cPanelDavidG in forum Feature Requests for cPanel/WHM
    Replies: 2
    Last Post: 11-12-2011, 09:32 PM
  2. Dovecot update to v1.2.17 [Case 50093]
    By paneller in forum Archived Feature Requests
    Replies: 4
    Last Post: 07-14-2011, 10:36 AM
  3. Convert standard Dovecot to cPanel Dovecot
    By nfs in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 11-14-2009, 08:55 AM
  4. http://wiki.dovecot.org/Plugins/Trash not available in cpanel?
    By sharmaine001 in forum E-mail Discussions
    Replies: 0
    Last Post: 02-17-2009, 08:08 AM
  5. Dovecot use Cpaenel mail accounts
    By allan1956 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-22-2006, 10:03 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube