Add folder archive to maildir at mailbox creation

Discussion in 'Installation/Configuration' started by spazio, Jan 1, 2018.

  1. spazio

    spazio Member HowtoForge Supporter

    Hi,

    Anybody is familiar with the create mailbox event? Or the template file/script!
    Basically every time a new mailbox is created. I want to add a symbolic link archive folder so I can move old email every month for all users in that folder! After I can run a script to move older email to that folder.

    So the user will have an archive folder in the Maildir that will point to an NFS share on another server with BIG disks with all his/her email older than let's say X days.


    Thanks
    Spazio
     
    Last edited: Jan 1, 2018
  2. spazio

    spazio Member HowtoForge Supporter

    I'm just looking for the mailbox template creation file!
    Where are they?
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    The update safe way would be to write a small server side ISPConfig plugin and bind it to the mail_user_insert event. The maildir folders are created in the mail_plugin.inc.php file.
     

Share This Page