Re: [exim] Error while using smarthost, unknown user.

Top Page
Delete this message
Reply to this message
Author: W B Hacker
Date:  
To: exim users
Subject: Re: [exim] Error while using smarthost, unknown user.
Machiel van Veen wrote:
> On Thursday 15 November 2007 12:57:14 pm W B Hacker wrote:
>> Before going any further...
>>
>> Is that copy of your config verbatim?
>
> Hi,
>
> No, I left out all the comments and whitespace in the posted config.
>


Ok - first shot...

domainlist local_domains = dodge.haarlem.dem.local
domainlist relay_to_domains =
hostlist relay_from_hosts = 127.0.0.1
acl_smtp_rcpt = acl_check_rcpt
acl_smtp_data = acl_check_data
host_lookup = *
rfc1413_hosts = *
rfc1413_query_timeout = 5s
ignore_bounce_errors_after = 2d
timeout_frozen_after = 7d

begin acl

<<may have been snipped, but you need the same name here as you are calling above>>

acl_check_recpt:

accept hosts = :

<< NB: 'local' submissions are not smtp sessions, so won't traverse these at
all. As you seem to be building an 'outbound only' critter that accepts from NO
ONE external, NOTHING would traverse these.

AFIAK, you would need an acl_not_smtp clause to check cross-box submissions>>

===
deny    message       = Restricted characters in address
           domains       = +local_domains
           local_parts   = ^[.] : ^.*[@%!/|]
deny    message       = Restricted characters in address
           domains       = !+local_domains
           local_parts   = ^[./|] : ^.*[@%!] : ^.*/\\.\\./
accept  local_parts   = postmaster
           domains       = +local_domains
require verify        = sender
accept  hosts         = +relay_from_hosts
           control       = submission
accept  authenticated = *
           control       = submission
require message = relay not permitted
           domains = +local_domains : +relay_to_domains
accept



acl_check_data:
accept


<< otherwise, where you want us to look is at these:>>

begin routers

smarthost:
    driver = manualroute
    domains = ! +local_domains
    transport = remote_smtp
    route_list = "xxx.xxx.xxx.xxx"


<< manualroute I've never needed or used, but I believe that you want:

!+local_domains

i.e. - no space between the '!' and the '+local_domains'

I suspect THAT is what is causing this first-in-sequence router to not find a
match>>

===== trimmed =====


begin transports

remote_smtp:
driver = smtp



<< pretty standard, BUT seems to have no provision for hitting the submission
port on your ISP's smarthost and authenticating. Do they alow unauthenticated
relay over port 25 on the basis of your originating from within their IP pool?
or ...? >>