I set it back as you said. I tried the redirect (as above) and it worked fine.
I now replaced the redirect code with the following in /var/vmail/globalsieverc
Code:
if header :contains ["To", "Cc", "Bcc"] "support@example.com.au" {
pipe "/var/www/clients/client1/web4/web/support/api/pipe.php";
stop;
}
When a message is sent to
support@example.com.au, the log shows:
Code:
Jan 24 11:03:35 server1 dovecot: deliver(support@example.com.au): sieve: main_script: line 2: unknown command 'pipe' (only reported once at first occurence)
The question now is how do I do a pipe to
pipe.php without a pipe command in Dovecot sieve?