Re: [exim] exim as a smarhost on a laptop

Top Page
Delete this message
Reply to this message
Author: Zbigniew Szalbot
Date:  
To: exim-users
Subject: Re: [exim] exim as a smarhost on a laptop
Hello,

On Fri, 17 Nov 2006, Zbigniew Szalbot wrote:

> Hello,
>
> I am looking for advice. After reading the docs, I found that I can use
> different smart hosts based on the sending email id.


I tested it again today and have one more observation. Even if I give up
on the idea of using multiple smarthosts and only hard code one smarthost
in routers plus appropriate authentication credentials I am still unable
to relay. Could you help me understand where I am wrong? I will be happy
to paste whatever information is needed. Thank you!

>
> So I created smtp_users file with the following content:
>
> zbyszek@???: smart_host=domain.tld auth_plain=^zbyszek@???^somepasswordhere
>
> and added two more entries like that.
>
> I only accept connections from localhost but I do use
>
> require verify        = sender

>
> 2006-11-17 21:42:38 H=localhost [127.0.0.1]:3132 I=[127.0.0.1]:25 sender
> verify fail for <zbyszek@???>: Unrouteable address
> 2006-11-17 21:42:38 H=localhost [127.0.0.1]:3132 I=[127.0.0.1]:25
> F=<zbyszek@???> rejected RCPT <zbyszek@???>: Sender
> verify failed
>
> Notice this error is generated at the localhost level. How do I make sure
> sender is verified then?
>
> Some other config
>
> hostlist relay_from_hosts = 127.0.0.1
>
> smart_route:
> driver = manualroute
> domains = !+local_domains
> transport = remote_smtp
>     route_list = "*
> ${extract{smart_host}{${lookup{$sender_address}lsearch{/etc/exim/smtp_users}{$value}fail}}}"
> no_more

>
> authentication to smarhost:
>
> plain:
>      driver = plaintext
>      public_name = PLAIN
>      client_send =
> "${extract{auth_plain}{${lookup{$sender_address}lsearch{/etc/exim/smtp_users}{$value}fail}}}"

>
> When I turn off sender verification I get relay not permitted from other
> servers.
>
> Only when I turn off sender verification I am able to use domain.tld setup
> where I think they have qmail as the mail server (and they accept my email
> relayed from exim at localhost). When I tried the same with my main FBSD
> server, it wouldn't allow me to relay through it.
>
> Would someone have any suggestion how to solve this?
>
> Many thanks!
>
> --
> Zbigniew Szalbot
>
> --
> ## List details at http://www.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://www.exim.org/eximwiki/
>


--
Zbigniew Szalbot