Bug#273302: exim4-daemon-heavy: [30_exim-config_check_rcpt] better local_parts test

jaalto@cante.cante.net, 273302@bugs.debian.org jaalto@cante.cante.net, 273302@bugs.debian.org
Sun, 27 Feb 2005 12:18:33 +0200


| On Sun, Feb 27, 2005 at 11:33:17AM +0200, Jari Aalto wrote:
| > For unstable/main exim4-config 4.44-2
| > 
| >   # Two different rules are used. The first one is stricter, and is applied to
| >   # messages that are addressed to one of the local domains handled by this
| >   # host. It blocks local parts that begin with a dot or contain @ % ! / or |.
| >   # If you have local accounts that include these characters, you will have to
| >   # modify this rule.
| >   deny    domains       = +local_domains
| >           local_parts   = ^[.] : ^.*[@%!/|]
| > 
| > =>
| > 
| >   deny    domains       = +local_domains
| >           local_parts   = ^[.] : ^.*[@%!/|\'`#&?]
| >                                           ======
| 
| And no changes to the acl handling non-local domains?

Good point. Make it:

  # The second rule applies to all other domains, and is less strict. This
  ...

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

=>

          local_parts   = ^[./|] : ^.*[@%!\'`#&?] : ^.*/\\.\\./
                                          ======

I'm not sure if the single-quote (') should necessarily be in the class though.

Jari