Control Web Panel
WebPanel => E-Mail => Topic started by: crazytechin on December 22, 2017, 07:30:53 AM
-
In Cpanel, we can forward email to another email and also pipe email to OsTicket software.
How can we do it in Centos Wep Panel ?
I would like the original mail be retained.
-
No answer from anyone !!!
-
from http://www.anthonyhawk.com/piping-emails-to-osticket-with-postfix/
add following line in /etc/postfix/virtual_regexp
/^support@yourdomain.tld/ osticketsupport
add following line in /etc/aliases
osticketsupport: "|/usr/bin/php -q /path_to_pipe.php"
postmap hash:/etc/aliases
service postfix restart
never tried, diwyor
-
Thanks Jae for your response.
It works. But it does not retain original email in the mailbox. I would like only copy to be forwarded and the original be retained in the mailbox. How to do that ?
Thanks in advance
-
easiest way,
create email osticketsupport@youdomain.tld
cretare alias/forward osticketsupport@youdomain.tld to osticketsupport@youdomain.tld and osticketsupport1@youdomain.tld
pipe osticketsupport1@youdomain.tld to osticket
-
Jae,
Should I cretare alias/forward osticketsupport@youdomain.tld to osticketsupport@youdomain.tld and osticketsupport1@youdomain.tld in etc/alias ? How to do that ?
-
Jae,
I configured the forwarding to other emai osticketsupport1 using Centos Web Panel.
Using the etc/aliases method for piping, error mails saying that mail was undelivered were coming (although mails were being piped). So, I used this alternate method to pipe which I found and until now, I have not seen any errors -
http://forum.centos-webpanel.com/e-mail/postfix-mail-aliases-to-forward-to-command-pipe-1859/msg13647/#msg13647