Control Web Panel

WebPanel => E-Mail => Topic started by: crazytechin on December 22, 2017, 07:30:53 AM

Title: How to forward / pipe email to Osticket in Centos Web Panel
Post 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.
Title: Re: How to forward / pipe email to Osticket in Centos Web Panel
Post by: crazytechin on December 23, 2017, 12:33:20 AM
No answer from anyone !!!
Title: Re: How to forward / pipe email to Osticket in Centos Web Panel
Post by: Jae on December 23, 2017, 10:52:30 PM
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
Title: Re: How to forward / pipe email to Osticket in Centos Web Panel
Post by: crazytechin on December 25, 2017, 02:11:12 AM
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
Title: Re: How to forward / pipe email to Osticket in Centos Web Panel
Post by: Jae on December 25, 2017, 02:04:52 PM
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
Title: Re: How to forward / pipe email to Osticket in Centos Web Panel
Post by: crazytechin on December 26, 2017, 05:02:46 PM
Jae,

Should I cretare alias/forward osticketsupport@youdomain.tld  to osticketsupport@youdomain.tld and osticketsupport1@youdomain.tld in etc/alias ? How to do that ?
Title: Re: How to forward / pipe email to Osticket in Centos Web Panel
Post by: crazytechin on December 27, 2017, 07:19:39 AM
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