Mailing List Archive

problem sending unknown user to another server
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:
25c9a670-09e8-4d5d-a0ba-26705f78f1c3@csc.it). From <myuser@myserver.com>
(host=NULL [192.168.153.151]) for anotheruser@myservercom
2018-12-03 14:20:45 1gTo9V-0002lm-5U <= myuser@myserver.com
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
id=25c9a670-09e8-4d5d-a0ba-26705f78f1c3@myserver.com
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=<myuser@gmail.com> 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/
Re: problem sending unknown user to another server [ In reply to ]
On 2018-12-03, Max Franco via Exim-users <exim-users@exim.org> wrote:
> 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".

>From external why should exim want the email?
you'll need that condition represented in the rcpt acl.



--
When I tried casting out nines I made a hash of it.

--
## 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/
Re: problem sending unknown user to another server [ In reply to ]
Max Franco via Exim-users <exim-users@exim.org> (Mo 03 Dez 2018 14:38:46 CET):
> this is the log for a forwarded mail (i change domain name and mail
> addresses):

Do not obfuscate please.
Help is almost impossible with changed domains if your issue is realated
to mail routing.

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

Try

exim -bt anotheruser@myservercom

What does Exim tell you?

Best regards from Dresden/Germany
Viele Grüße aus Dresden
Heiko Schlittermann
--
SCHLITTERMANN.de ---------------------------- internet & unix support -
Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
gnupg encrypted messages are welcome --------------- key ID: F69376CE -
! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ -