Author Topic: Redirect a user's outgoing email to another user  (Read 1946 times)

johnk

  • Zen Apprentice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Redirect a user's outgoing email to another user
« 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?

igp

  • Zen Apprentice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Redirect a user's outgoing email to another user
« Reply #1 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.

trysomething

  • Zen Warrior
  • ***
  • Posts: 118
  • Karma: +5/-0
  • Founder of The Tiki Lab
    • View Profile
    • The Tiki Lab | Bridging the gap between technology and vision impairment!
Re: Redirect a user's outgoing email to another user
« Reply #2 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
You will have to excuse my posts not having actual links in them.  I'm blind and can never find that insert hyperlink button LoL.  If you, or someone you know has vision problems check out The Tiki Lab.

johnk

  • Zen Apprentice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Redirect a user's outgoing email to another user
« Reply #3 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?