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
Hi

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


> From: "Jens Strohschnitter" <exim-ml@???>
> To: "EXIM Official Maillist" <exim-users@???>
> Sent: Thursday, January 27, 2005 3:37 PM
> Subject: Re: [exim] Problems configuring Exim 4.20 with amavis-ne
>
>
> > Hi,
> >
> > thanxx, now the mail will be sent to the amavisd! But amavis logs the
> > following errors:
> >
> > Jan 27 15:35:01 smb-sles amavisd[20210]: (20210-01) FWD via SMTP:
> > [127.0.0.1]:10025 <FROM@???> -> <TO@???>
> > Jan 27 15:35:01 smb-sles amavisd[20210]: (20210-01) prolong_timer after
> > fwd-connect: remaining time = 300 s
> > Jan 27 15:35:01 smb-sles amavisd[20210]: (20210-01) mail_via_smtp: session
> > failed: Can't connect to 127.0.0.1 port 10025, Connection refused at
> > /usr/sbin/amavisd line 2872, <GEN5> line 41.
> > Jan 27 15:35:01 smb-sles amavisd[20210]: (20210-01) mail_via_smtp: 450
> > 4.4.1 Can't connect to 127.0.0.1 port 10025, Connection refused at
> > /usr/sbin/amavisd line 2872, <GEN5> line 41., id=20210-01
> > Jan 27 15:35:01 smb-sles amavisd[20210]: (20210-01) mail_via_smtp: DATA
> > skipped, 0, 0, 0
> > Jan 27 15:35:01 smb-sles amavisd[20210]: (20210-01) prolong_timer after
> > forwarding: remaining time = 300 s
> > Jan 27 15:35:01 smb-sles amavisd[20210]: (20210-01) one_response_for_all
> > <FROM@???>: 4xx found, '450 4.4.1 Can't connect to 127.0.0.1 port
> > 10025, Connection refused at /usr/sbin/amavisd line 2872, <GEN5> line 41.,
> > id=20210-01'
> > Jan 27 15:35:01 smb-sles amavisd[20210]: (20210-01)
> > warnsender_with_pass=(,,,), dsn_needed=, exit=75, 450 4.4.1 Can't connect
> > to 127.0.0.1 port 10025, Connection refused at /usr/sbin/amavisd line
> > 2872, <GEN5> line 41., id=20210-01
> > Jan 27 15:35:01 smb-sles amavisd[20210]: (20210-01) Not-Delivered,
> > <FROM@???> -> <TO@???>, Message-ID:
> > <41F7B8AD.mailDIS1IBHAB@XXXXXXXXXXXXXXXXXXXXXXXX>, Hits: 0.339
> > Jan 27 15:35:01 smb-sles amavisd[20210]: (20210-01) sending SMTP response:
> > "450 4.4.1 Can't connect to 127.0.0.1 port 10025, Connection refused at
> > /usr/sbin/amavisd line 2872, <GEN5> line 41., id=20210-01"
> > Jan 27 15:35:01 smb-sles amavisd[20210]: (20210-01) timer stopped after
> > DATA end
> > Jan 27 15:35:01 smb-sles amavisd[20210]: (20210-01) rmdir_recursively:
> > /var/spool/amavis/amavis-20050127T153459-20210/parts, excl=1
> > Jan 27 15:35:01 smb-sles amavisd[20210]: (20210-01) TIMING [total 2797
> > ms] - SMTP EHLO: 5 (0%), SMTP pre-MAIL: 1 (0%), mkdir tempdir: 0 (0%),
> > create email.txt: 1 (0%), SMTP pre-DATA-flush: 5 (0%), SMTP DATA: 38 (1%),
> > body hash: 1 (0%), mkdir parts: 1 (0%), mime_decode: 16 (1%),
> > get-file-type: 12 (0%), decompose_part: 3 (0%), parts: 0 (0%), AV-scan-1:
> > 2651 (95%), SA msg read: 2 (0%), SA parse: 1 (0%), SA check: 47 (2%),
> > fwd-rundown: 8 (0%), unlink-1-files: 4 (0%), rundown: 0 (0%)
> > Jan 27 15:35:01 smb-sles amavisd[20210]: (20210-01) ESMTP> 450 4.4.1 Can't
> > connect to 127.0.0.1 port 10025, Connection refused at /usr/sbin/amavisd
> > line 2872, <GEN5> line 41., id=20210-01
> > Jan 27 15:35:01 smb-sles amavisd[20210]: (20210-01) prolong_timer after
> > reading SMTP command: remaining time = 0 s
> > Jan 27 15:35:01 smb-sles amavisd[20210]: (20210-01) ESMTP< QUIT\r\n
> > Jan 27 15:35:01 smb-sles amavisd[20210]: (20210-01) ESMTP> 221 2.0.0
> > [127.0.0.1] (amavisd) closing transmission channel
> >
> > The mail won't be delivered :-(
> >
> >> try this:
> >> condition = "${if or {{eq {$interface_port}{10025}} \
> >>         {eq {$received_protocol}{spam-scanned}} \
> >>         {eq {$sender_address}{}} \
> >>         }{0}{1}}"

> >
> >> Hi list,
> >>
> >> I want to use Exim 4.20 on a new Linux-Installation (SuSE
> >> Enterprise-Server 9) with amavis-new. So I have configured Exim like
> >> showen in the README.exim_v4 of amavis-new, but on sending a mail, the
> >> following error appears in the mainlog:
> >>
> >> 1CtpCH-0004Yf-Dj == XXX@??? R=amavis_director T=amavis defer (0):
> >> SMTP error from remote mailer after end of data: host 127.0.0.1
> >> [127.0.0.1]: 450 4.4.1 Can't connect to 127.0.0.1 port 10025, Connection
> >> refused at /usr/sbin/amavisd line 2872, <GEN4> line 205., id=17460-05
> >>
> >> My exim.conf looks like:
> >>
> >> amavis_router:
> >>  driver = manualroute
> >>  condition = "${if or{ {eq {$received_protocol}{scanned-ok}} \
> >>              {eq {$received_protocol}{spam-scanned}} } {0}{1}}"
> >>  domains = ! +local_domains
> >>  route_list = *
> >>  transport = amavis

> >>
> >> amavis_director:
> >>  driver = accept
> >>  condition = "${if or{ {eq {$received_protocol}{scanned-ok}} \
> >>              {eq {$received_protocol}{spam-scanned}} } {0}{1}}"
> >>  retry_use_local_part
> >>  transport = amavis
> >> amavis:
> >>   driver = smtp
> >>   port = 10024
> >>   hosts = 127.0.0.1
> >>   allow_localhost

> >>
> >> What can be wrong ? A test with telnet 127.0.0.1 10024 works:
> >> Trying 127.0.0.1...
> >> Connected to 127.0.0.1.
> >> Escape character is '^]'.
> >> 220 [127.0.0.1] ESMTP amavisd-new service ready
> >>
> >> Hope someone can help me to fix this "little" prob :-)
> >>
> >
> > --
> > ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim
> > details at http://www.exim.org/ ##
>
>