Author Topic: How to forward / pipe email to Osticket in Centos Web Panel  (Read 9423 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
How to forward / pipe email to Osticket in Centos Web Panel
« 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.

Offline
*
Re: How to forward / pipe email to Osticket in Centos Web Panel
« Reply #1 on: December 23, 2017, 12:33:20 AM »
No answer from anyone !!!

Offline
***
Re: How to forward / pipe email to Osticket in Centos Web Panel
« Reply #2 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

Offline
*
Re: How to forward / pipe email to Osticket in Centos Web Panel
« Reply #3 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

Offline
***

Offline
*
Re: How to forward / pipe email to Osticket in Centos Web Panel
« Reply #5 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 ?

Offline
*
Re: How to forward / pipe email to Osticket in Centos Web Panel
« Reply #6 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