Author Topic: pipe to php script  (Read 3960 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
pipe to php script
« on: May 16, 2020, 08:30:20 PM »
Hi, I am trying to pipe all emails that don't have an email account setup to a php script

Forwarder         Domain      Version de php  script
*@test.com   test.com   null   /home/test/forward_email.php

so sending an email to an account that doesn't exist should send email details to php script.
However i get this in the logs -

NOQUEUE: reject: RCPT from mail-db8eur06olkn2101.outbound.protection.outlook.com[40.92.51.101]: 550 5.1.1 <***@test.com>: Recipient address rejected: User unknown in virtual mailbox table; from=<test1234@hotmail.com> to=<test222@test.com> proto=ESMTP helo=<EUR06-DB8-obe.outbound.protection.outlook.com>

The account test222 doesn't exist, but i want emails that are sent to accounts that doesn't exist to be parsed via the php script.
Any ideas?

Thanks

Offline
*
Re: pipe to php script
« Reply #1 on: May 16, 2020, 09:07:07 PM »
nevermind sorted, had to create a forwarder first to forward all emails to an account, then use that account to pipe it.