On Wed, 21 May 2014 08:42:21 -0300 M. Rodrigo Monteiro wrote: > Hi. > > How to create a rule to tag e-mails from *@word.*.com.br? > > This is what I tested: > header TEST From =~ /.*\@word\..*\.com\.br/i
Firstly using From:addr will just match the email address and not the whole header Secondly you don't need the .* at the beginning, but it is advisable to anchor the expression at the end with a "$" so .br has to be the end of the address. So: header TEST From:addr =~ /\@word\..*\.com\.br$/i However, unless you a specific reason for doing it this way, you might be better-off with a simple blacklist entry: blacklist_from *@word.*.com.br