Zentyal Forum, Linux Small Business Server

Zentyal Server => Email and Groupware => Topic started by: johnk on March 30, 2016, 11:38:13 pm

Title: Redirect a user's outgoing email to another user
Post by: johnk on March 30, 2016, 11:38:13 pm
Hello, I have setup a Zentyal 4.0.6 server for a client. They have a sales person leaving the company and going to a competitor. They want every email he sends delivered to his supervisor and then the supervisor will send it from his email to the final recipient if acceptable. Does anyone have any ideas?
Title: Re: Redirect a user's outgoing email to another user
Post by: igp on June 15, 2016, 03:42:28 am
You can use a sieve script.  See the following link for the syntax if you write it manually.
https://support.tigertech.net/sieve#forwarding-messages-jmp

Otherwise, login via the Sogo interface and set it up as a filter there under Mail Options.
Title: Re: Redirect a user's outgoing email to another user
Post by: trysomething on June 16, 2016, 12:10:48 am
Figure out how to write your sieve script then jump into a terminal and do the following:
sudo nano /var/vmail/default.sieve

Put your sieve script into this file and then save and close it.  Now just restart the mail and openchange modules:

sudo service Zentyal mail restart
sudo service Zentyal openchange restart
Title: Re: Redirect a user's outgoing email to another user
Post by: johnk on March 11, 2017, 02:56:17 pm
Thank you both for your replies, although I was a little late. Should I put the script in the vmail directory or in the sieve directory that exists in the vmail directory?