Tuesday, February 18, 2014

How to send copy of incoming emails to other mailboxes in ISPConfig 3:






A copy of a incoming email can be sent to a second email or third email address by adding a cc command to the “Custom Rules” field of the mailbox in ISPConfig.

ISPConfig supports sieve as well as maildrop filter rules. The rule language depends on the LDA / POP3 / IMAP-Daemon that you use on your server.
  • If you use courier, then the filter language is maildrop.
  • When dovecot is installed, then the filter language is sieve.
Most important
  • IF you want to redirect to MULTIPLE addresses, when configuring e-mail account in ISPConfig, please keep in mind that DO NOT put an e-mail address in the ‘Send copy to’ (optional) box, because this automatically puts an extra line up top in the sieve file and fouls the additional info put in the Custom rules tab.
  • Do not copy paste the command, type your self.

Example in maildrop syntax:

To send a copy to the email address info@example.tld, add the following code at the beginning of the custom rules field.
cc '!info@domain1.tld'

Example in sieve syntax:

redirect "info@domain1.tld";
redirect "info@domain2.tld";
keep;



You can put many redirect as you needed.
You can check your .sieve file (in /var/vmail/domain.tld/user/ ) to see changes, but ISPConfig update .sieve file 60 seconds to do the changes ( remember that it crons changes once a minute.)
 
 

1 comments:

Akwal said...

very nice post,,
like it