Hi
I would like to deny messages with empty From headers.
I found such ACL:
deny message = Header From exist, but not have a valid address
condition = ${if def:h_from: {yes}{no}}
condition = ${if or { \
{ eq{${address:$h_from:}}{} } \
{ eq{${domain:$h_from:}}{} } \
{ eq{${local_part:$h_from:}}{} } \
} {yes}{no}}
but this does not work, if someone sends email with more than 1 email
address in From:, for example:
From: abcinfo@??? , abcint@???
Also it does not work if From: looks like:
From: <email@address>
(of course @address is valid domain name eg. gmail.com)
Can you tell me how can I reject email ONLY if there would be 100% empty
From: header like:
To: my-email@domain
From:
Subject: Some beauty subject
Reply-path: sender@email
Envelope-To: my-email@domain
?
Any idea would be appreciated.
Mike