I've been looking some similar examples and slight changes to them to perform that but unsuccessfully.
This is the first recipe at $HOME/.procmailrc of the user "me".
Mail is received by [email protected] but the auto response is not sent.
Centos 7, Postfix
procmail log doesn't say anything about that.
:0
* ^[email protected]
* !^FROM_DAEMON
* !^FROM_MAILER
* !^X-Loop: [email protected]
| (formail -rk \
-A "X-Loop: [email protected]" \
-A "Precedence: junk"; \
echo "Testing";\
echo "This is an automated response";\
echo "Not sure to see your message";\
echo "So please try again tomorrow" ) | $SENDMAIL -t -oi
Best Answer
I used the structure of the second line
* ^[email protected]
from , page suggested in another question/answer in SeverFault.I simply changed that by
* ^From.*[email protected]
and it worked