
web at iszczecin
Mar 27, 2012, 5:40 PM
Views: 639
Permalink
|
|
Please help me with my ACL to deal with empty From: headers
|
|
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 [at] web , abcint [at] web Also it does not work if From: looks like: From: <email [at] addres> (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 [at] domai From: Subject: Some beauty subject Reply-path: sender [at] emai Envelope-To: my-email [at] domai ? Any idea would be appreciated. Mike -- ## List details at https://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/
|