Creating Bulk E-Mail Forwards

Discussion in 'Installation/Configuration' started by fatbear, Jan 5, 2013.

  1. fatbear

    fatbear Member HowtoForge Supporter

  2. tahunasky

    tahunasky New Member

    I think whatever you do is going to be time consuming.

    But you could write a script to put the required info in the required file. The forward info is in a .sieve file in the users mail dir:


    And it looks like this.

    require ["fileinto", "regex", "date", "relational", "vacation"];
    redirect "[email protected]";
    redirect "[email protected]";
  3. fatbear

    fatbear Member HowtoForge Supporter

    @tahunasky - thanks for the feedback. I think, however, the forwards are stored in the dbispconfig database.

    Please find attached my first work-in-progress at doing bulk updates. It presently requires that the script be modified to manually define the USERID and the GROUPID for the source domain. Just update the first couple of lines in the script. And the script takes its input from a file that defines the bulk mappings. The script has simple usage instructions in it. Lastly, only one domain can presently be done at a time. Nevertheless, I used it today and it saved me a lot of time.

    I will update this script to be able to handle the general case and will update this thread when I've completed that task.

    Happy New Year!

    Attached Files:

    Last edited: Jan 6, 2013
  4. tahunasky

    tahunasky New Member

    You are right.... there are 2 forwards, one in the database, which is an alias without a mailbox and the other uses sieve custom rules.

    Your script looks good, but is a forwarding_id needed ?

Share This Page