i followed  Q0403 and i set 900_exim4-config_local_user (i'm using ubuntu) this way:

local_user:
  debug_print = "R: local_user for $local_part@$domain"
  driver = accept
  domains = +local_domains
  check_local_user
  local_parts = ! root
  transport = LOCAL_DELIVERY
  cannot_route_message = Unknown user

unknown:
  driver = manualroute
  transport = remote_smtp
  route_list = * myserver.com
  no_verify

-------------

if i send a mail from a client inside my lan, authorized to send without user verification, or if i use user authentication from client on WAN, the mail is sent. If i send a mail from another domain,  the mail is rejected with "550 Unrouteable address".

this is the log for a forwarded mail (i change domain name and mail addresses):

2018-12-03 14:20:45 1gTo9V-0002lm-5U SA: Action: scanned but message isn't spam: score=-2.9 required=5.0 (scanned in 0/0 secs | Message-Id: [email protected]). From <[email protected]> (host=NULL [192.168.153.151]) for anotheruser@myservercom 2018-12-03 14:20:45 1gTo9V-0002lm-5U <= [email protected] H=([192.168.153.151]) [192.168.153.151] P=esmtpsa X=TLS1.0:RSA_AES_128_CBC_SHA1:16 A=plain_saslauthd_server:myuser S=3666 [email protected] 2018-12-03 14:20:48 1gTo9V-0002lm-5U =>  R=unknown T=remote_smtp H=server.myserver.com [xx.xx.xx.xx] X=TLS1.0:RSA_AES_256_CBC_SHA1:32 DN="CN=server.myserver.com"
2018-12-03 14:20:48 1gTo9V-0002lm-5U Completed

this is what i see if i try to send from a mail of another domain:

2018-12-03 14:31:22 H=mail-wr1-f49.google.com [209.85.221.49] F=<[email protected]> rejected RCPT <anotheruser@myservercom>: Unrouteable address

i suppose that i should put the 'unknown' section elsewhere in conf.d/router, but i didn't find any help googling and reading exim docs.

any help is appreciated.

many thanks and forgive my really bad english ;)



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