> From: Renaud Allard

> > what is right condition to test local_part of the
> > sender address ?
> 
>         deny
>         local_parts     = ^...@%!|] : ^\\.
> 
> That's about it

There are valid addresses with ! and %
(though only in relayed mail, not for local mailboxes). So:

  deny    message       = Restricted characters in address
          domains       = +local_domains
          local_parts   = ^[.] : ^...@%!/|]
  deny    message       = Restricted characters in address
          domains       = !+local_domains
          local_parts   = ^[./|] : ^...@] : ^.*/\\.\\./

But "local_parts" is for testing recipient address (in rcpt ACL).
I don't test localpart of sender address at all.

-- 
## List details at http://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/

Reply via email to