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

0 Members and 1 Guest are viewing this topic.

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
*   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[]: 550 5.1.1 <***>: Recipient address rejected: User unknown in virtual mailbox table; from=<> to=<> proto=ESMTP helo=<>

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?


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.