On 23/10/20 6:26 pm, Nick Tait wrote:
In summary, you'd want to create a script in a language of your
choice, which in the simplest case does this:
1. Reads in lines until a blank line.
2. Then sees if the lines that it read included the line
"client_address=127.0.0.1".
3. If it did, then it checks if it also received the line
"helo_name=localhost".
4. Then it outputs a result based on the results of steps #2 & #3:
* If #2 matched and #3 matched, then it prints "dunno", followed
by a blank line.
* If #2 matched but #3 didn't, then it prints "reject You look
like you're trying to get me to send spam", followed by a
blank line.
* If #2 didn't match, then it prints "dunno", followed by a
blank line.
NB: The reason for using "dunno" (rather than "ok") is so that other
following checks will still be performed.
Sorry I made an error above. Step #4 should have said:
4. Then it outputs a result based on the results of steps #2 & #3:
* If #2 matched and #3 matched, then it prints "*action=*dunno",
followed by a blank line.
* If #2 matched but #3 didn't, then it prints "*action=*reject You
look like you're trying to get me to send spam", followed by a
blank line.
* If #2 didn't match, then it prints "*action=*dunno", followed by
a blank line.
Thanks,
Nick.