Hello,

Thanks.

I tried it with acl_m9 and exim start without warnings.

But when I send a mail to the user1@localdomain, it stay in the local
mailbox (not routed to the external SMTP).

No errors reported in the log.

I think that the rule is not at the right place in the config file.


To understand, here is the part with the warn rule :

### acl/30_exim4-config_check_rcpt
#################################

acl_check_rcpt:

  warn
  domains = +local_domains
  local_parts = user1
  set acl_m9 = 1

# Then: Exim default config

  accept
    hosts = :

.ifdef CHECK_RCPT_LOCAL_LOCALPARTS
  deny
    domains = +local_domains
    local_parts = CHECK_RCPT_LOCAL_LOCALPARTS
    message = restricted characters in address
.endif


And the part with the route for acl_m9 :

### router/00_exim4-config_header
#####################################################

######################################################################
#                      ROUTERS CONFIGURATION                         #
#               Specifies how addresses are handled                  #
######################################################################
#     THE ORDER IN WHICH THE ROUTERS ARE DEFINED IS IMPORTANT!       #
# An address is passed to each router in turn until it is accepted.  #
######################################################################

begin routers


forward_not_quite_local:
driver=manualroute
condition=${if eq{acl_m9}{1}{1}{0}}
route_data=external_adress_of_smtp
transport=remote_smtp


Thanks in advance.

Sebastien


-- 
## 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