Re: [exim] Problems configuring Exim 4.20 with amavis-ne

Top Page
Delete this message
Reply to this message
Author: Jens Strohschnitter
Date:  
To: EXIM Official Maillist
Subject: Re: [exim] Problems configuring Exim 4.20 with amavis-ne
> > I have added the following lines:
> >
> > exim.conf -> local_interfaces = 0.0.0.0.25 : 127.0.0.1.10025
> > amavid.conf -> $forward_method = 'smtp:127.0.0.1:10025';  # where to forward checked mail
> >                $notify_method = $forward_method;          # where to submit notifications

> >
> > The trusted user entry was already added.
> >
> > But now my system seems to be running wild. The testmail will be
> > scanned about 10 times and after this, the log showes: "too many
> > recieved headers" suspect mail loop and the message is frozen in
> > mailqueue.
> >
> > What could be wrong ?
> >
> > Here my global lines of exim.conf:
> >
> > domainlist local_domains = @ : MyDom.xxx.yy : servername.xxx.yy : xxx.yy
> > domainlist relay_to_domains = *.xxx.yy
> > hostlist relay_from_hosts = 127.0.0.1 : 172.0.0.0/8 : 192.168.0.0/16
> > local_interfaces = 0.0.0.0.25 : 127.0.0.1.10025
>
> It sounds like you're managing to redirect scanned e-mails back into
> amavis and you've got a mail-loop.
>
> The condition in your amavis router needs to be
> "eq {$interface_port}{10025}" rather than the
> "eq {$received_protocol}{scanned-ok}" that you have in your
> configuration.
>
> I am a little confused by what your configuration is trying to do,
> however, especially the "amavis_director" bit - sounds suspiciously like
> some Exim 3.x configuration...


Hi

yes - years ago we had a running exim 3.13. With the old amavis (0.3.x) the
director workes :-)
So now I have removed the director and corrected the condition to:

amavis_router:
  driver = manualroute
  condition = "${if or {{eq {$interface_port}{10025}} \
        {eq {$received_protocol}{spam-scanned}} \
        {eq {$sender_address}{}} \
        }{0}{1}}"
  domains = ! +local_domains
  route_list = "*"
  transport = amavis


But now I got the following error - and yes I'm not an exim-admin, so I don't
know about some parameters in the config so here is the error:

R=amavis_router defer (-1): error in amavis_router router: no host(s) specified for domain *

Where do I have to add the "host" that is not specified ?

--
regards,
Jens Strohschnitter

-------------------------------------
- http://www.jens-strohschnitter.de -
-------------------------------------