Score:0

Procmail autoresponse to a single sender (or few ones)

in flag

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 
djdomi avatar
za flag
I found similar thing on [howto forge](https://www.howtoforge.com/how-to-set-up-a-postfix-autoresponder-with-autorespons/) maybe it might help you
in flag
Link is 404. At howtoforge.com I tried search by "autorespons","autoreply","vacation", "procmail" with no results
Score:0
in flag

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

tripleee avatar
ar flag
Indeed, `^[email protected]` would simply look in the headers for this exact string (after the `^`, except `.` matches any character) at beginning of line, which is not fundamentally impossble, but not something you would ever see in reality.
djdomi avatar
za flag
can you please refer the answers from serverfault.com which you mean?
in flag
@djdomi Done, added to the question
djdomi avatar
za flag
Great, dont forgot to accept your answer later on
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.