Question : virtual_domains router not handling remote forwarding

my exim4.conf has (cut down version)


domainlist local_domains = @

domainlist virtual_domains = dsearch;CONFDIR/virtual/

acl_check_rcpt:

accept  domains = +virtual_domains


begin routers


# This router handles our virtual domains
virtual_domain_alias:
        debug_print = "R: virtual_domain_alias for $local_part@$domain"
        domains = +virtual_domains
        driver = redirect
        data = ${lookup{$local_part}lsearch*{CONFDIR/virtual/$domain}}
       
        allow_fail
       

virtual_domain:
        debug_print = "R: virtual_domain for $local_part@$domain"
        domains = +virtual_domains
        driver = accept
        transport = virtual_delivery


and  have files in
CONFDIR/virtual/
eg testdomain.com

containing
info: [email protected]
someonelese: [email protected]

for some reason its not forwarding the remote ones, its delivering them locally in files in the /var/spool/mail/testdomain.com/  directory

Answer : virtual_domains router not handling remote forwarding

there were spaces beofre the addresses in the file.
Its fixed
Random Solutions  
 
programming4us programming4us