0

I try to make exim4 work with multiple interfaces, I have the following config:

IFVIP = 192.0.0.6
IFEXT = 192.0.0.9
IFLOCAL = 10.0.0.9

in my acl_check_rcpt i have the following snippet:

# localdomains
  accept  domains   = +local_domains
      condition = ${if or {{eq{interface_address}{IFLOCAL}} \
                        {eq {$interface_address}{IFVIP}} \
                        {eq {$interface_address}{IFEXT}}} \
                        {1}{0}}
      endpass
      verify        = recipient
      acl           = acl_check_quota

...

  accept  authenticated = *

  # Reaching the end of the ACL causes a "deny", but we might as well give
  # an explicit message.
  deny    message       = relay not permitted

However, this will result in "relay not permitted" when trying to submit mails externally.

If I copy the snippet 3 times for each interface with condition = ${if eq {$interface_address}{IFVIP} {1}{0}} it works. So I think the error is somewhere in the condition. Is there some error I just can't see?

fsp
  • 515
  • 6
  • 21

0 Answers0