Page 1 of 1
E-mail PIPE
Posted: Fri 23. Jun 2023, 15:06
by silverhost
Hi,
There is solution to set email PIPE to some email addresses? I use WISECP and the support system use PIPE system, so some email adresses have redirect to specific php file.
Thanks for help
Re: E-mail PIPE
Posted: Fri 23. Jun 2023, 15:52
by 24unix
You want to send an email via script?
Code: Select all
echo "mymail" | mail -s "Subject" user@domain.tld
If the
mail command ist missing, install
mailutils.
Re: E-mail PIPE
Posted: Fri 23. Jun 2023, 20:13
by Tobi
No.
He wants an incoming email to be passed directly to a PHP script and trigger any actions.
Unfortunately, KeyHelp cannot natively process incoming emails at this time. Currently you still have to deal with the API and your own scripts.
Maybe in the future such addons will be integrated into KeyHelp. We will see.
Re: E-mail PIPE
Posted: Fri 23. Jun 2023, 20:36
by 24unix
Tobi wrote: ↑Fri 23. Jun 2023, 20:13
No.
He wants an incoming email to be passed directly to a PHP script and trigger any actions.
Ah that way.
Never needed it before, but is it not what fetchmail is made for?
Re: E-mail PIPE
Posted: Fri 23. Jun 2023, 21:20
by Tobi
Once again „No“ for unix24
Fetchmail ruft E-Mails von entfernten Mail-Servern ab und leitet sie über SMTP weiter, so dass sie dann von normalen Mail-Benutzeragenten wie mutt, elm oder BSD Mail gelesen werden können. Es ermöglicht es allen Filter-, Weiterleitungs- und Aliasing-Funktionen Ihres System-MTAs, genauso zu arbeiten wie auf normalen E-Mails.
https://www.berlios.de/software/fetchmail/
This has nothing to deal with „trigger PHP actions“.
Re: E-mail PIPE
Posted: Sat 24. Jun 2023, 18:43
by silverhost
Tobi wrote: ↑Fri 23. Jun 2023, 20:13
No.
He wants an incoming email to be passed directly to a PHP script and trigger any actions.
Unfortunately, KeyHelp cannot natively process incoming emails at this time. Currently you still have to deal with the API and your own scripts.
Maybe in the future such addons will be integrated into KeyHelp. We will see.
I strongly hope this, because I choose the KeyHelp and became contracted translator for KeyHelp system, because it has a good api wich is built in WISECP. But WISECP for it's support system use the PIPE system for different support deparments and different e-mail adresses for support departments. So if the KeyHelp developped a very usefull API and built in into WISECP would be very good if KeyHelp also support the PIPE system wich is need for WISECP system.
Re: E-mail PIPE
Posted: Tue 28. Nov 2023, 20:06
by silverhost
Hi,
Several updates have come out since I asked my question/request.
My question: any updates? Several of my customers are already missing this feature, and I would be reluctant to tamper with the system as originally installed. Under Forwarding, it would be nice to have such a setting per email account, and it would be much needed.
Re: E-mail PIPE
Posted: Wed 29. Nov 2023, 08:27
by Alexander
Hello,
no updates on this topic. Piping still has to be configured manually.
Alternatively, WISECP may support other methods?! I never used WISECP, but there was a thread about piping in OSTicket where the community mentioned alternative solutions to piping:
https://community-keyhelp-de.translate. ... r_pto=wapp
Re: E-mail PIPE
Posted: Thu 1. Feb 2024, 19:56
by Luukullus
Hello =)
Are there at the moment any news about that or are there already plans to implement this feature?
I also took the decision to use WISECP because of the advanced Keyhelp integration.
Sadly it seems impossible to use the Mail to Ticket function from WISECP.
I also checked the mentioned topic from you Alexander, but sadly WISECP has no function to fetch mails from a mailbox as far as i know.
Also i tried to write my own mailfetcher php script which sends unreaded mails from a mailbox to the system, but sadly that is not working.
Greetings,
Luuk
Re: E-mail PIPE
Posted: Fri 2. Feb 2024, 08:18
by Alexander
For now, this still has to be configured manually. It is not part of the upcoming KeyHelp 24.0
Re: E-mail PIPE
Posted: Fri 2. Feb 2024, 12:58
by Luukullus
Okay, thanks alot for your info.
For the moment i still try to figure out why it is not working if manually configured.
I did this already some times in smaller ticketing systems, but sadly here it is not working.
I sent a support message to WISECP because it seems the problem is on their side.
From the pipe.php, wisecp uses to process the emails into tickets, i get an error: stdin content not found.
Have a great Weekend,
Luuk
Re: E-mail PIPE
Posted: Fri 2. Feb 2024, 13:04
by Tobi
Luukullus wrote: ↑Fri 2. Feb 2024, 12:58
stdin content not found.
This most likely means, the input file aka e-mail is not located where it was expected to be.
It is best practise to double-check all paths and permissions.
And have a look in the PHP error log or activate error_reporting(E_ALL);
Re: E-mail PIPE
Posted: Fri 2. Feb 2024, 18:41
by Luukullus
Thanbk you for the hint Tobi.
I was talking with the WISECP support today and they checked my scripts.
It is simply not possible doing it this way as their piping scripts handle emails totally different.
BUT: To all people who might have the same problem.
They are working at the moment on the WISECP V3.2 which will come in 2 - 3 months estimated in their road map.
In this release direct email and imap piping will be implemented and they make it possible to setup email to ticket mailboxes.
Original message:
Importing Received Emails Into The Ticket System
Transferring data to the ticket system from e-mails sent to the relevant e-mail address using PHP and converting them into support tickets. More advanced version of Email Piping.
Type: New Feature
So no worries, they will make it happen.
For me, i will wait. There is not that much traffic in the support box, that i would tryhard to find a solution now for this small amount of time.
Greetings,
Luuk
Re: E-mail PIPE
Posted: Fri 14. Jun 2024, 22:17
by silverhost
Hi,
I looked after the WISECP roadmap, and I did not see anything wich one connected to PIPE e-mail development or any kind of e-mail imap or pop3 development.
I've waited long enough for this.
So I wrote a PHP script for WISECP that uses POP3 to pull the mail with attachments and passes it to the WISECP PIPE script in the same format as if it had been received on PIPE. Tested with 7 email accounts. It is working.
I also set a timer to run every 5 minutes. From an account it will download mail every 1 second because that is the rate at which PIPE scritp can process it.
I don't understand the WISECP people, it's a very simple solution, I had it done in half a day.
Re: E-mail PIPE
Posted: Sun 22. Dec 2024, 13:44
by bernhard
I'd also be interested in this feature!
Alexander wrote: ↑Fri 2. Feb 2024, 08:18
For now, this still has to be configured manually. It is not part of the upcoming KeyHelp 24.0
Would it be possible to get some links or instructions on how to do that? Especially some notes about which files not to touch as they might be recreated by KeyHelp. For example is it safe to modify /etc/postfix/main.cf ?
Thx a lot!