Re: [Exim] amavis / amavisd and Exim 4.14 - Fixed?!

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Dan Egli
Date:  
À: Nico Erfurth
CC: Exim Users, amavis-user
Anciens-sujets: Re: [Exim] amavis / amavisd and Exim 4.14
Sujet: Re: [Exim] amavis / amavisd and Exim 4.14 - Fixed?!
Nico Erfurth wrote:

> Dan Egli wrote:
>
>> So, sender verification in Amavis and no_verify in the router? It's
>> already set no_verify.
>>
>> amavis_director:
>> driver = accept
>> condition = "${if eq {$received_protocol}{scanned-ok} {0}{1}}"
>> retry_use_local_part
>> transport = amavis
>> verify = false
>>
>> see? verify = false.
>>
>> That is (as I said before) taken DIRECTLY from readme.EXIM in the
>> distribution archive.
>>
>> Next idea?
>
>
> Does
> exim -oMr scanned-ok -d9 -bt virustest@???
> and
> exim -oMr scanned-ok -d9 -bv virustest@???
>
> give any hints?
>
> Nico
>

-d9 doens't work in Exim v4. I did a similiar command:
exim -oMr scanned-ok
-d+acl+deliver+dns+dnsbl+filter+hints_lookup+host_lookup+route+transport
-bt virustest@???

result was:

Exim version 4.14 uid=0 gid=0 pid=21430 D=fbb95efd
Berkeley DB: Sleepycat Software: Berkeley DB 2.7.5: (04/18/99)
Support for: PAM TCPwrappers OpenSSL
Authenticators: cram_md5 plaintext
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore/mbx autoreply lmtp pipe smtp
changed uid/gid: forcing real = effective
uid=0 gid=0 pid=21430
auxiliary group list: <none>
configuration file is /etc/exim.conf
log selector = 020d99d8
trusted user
admin user
finduser used cached passwd data for mail
finduser used cached passwd data for mail
finduser used cached passwd data for mail
finduser used cached passwd data for mailman
finduser used cached passwd data for mailman
originator: uid=0 gid=0 login=ghost name=
sender address = ghost@???
Address testing: uid=0 gid=12 euid=0 egid=12
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Testing virustest@???
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Considering virustest@???
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

routing virustest@???
--------> lookuphost router <--------
local_part=virustest domain=flickinger-sutterfield.com
checking domains
flickinger-sutterfield.com in "@:localhost:infohighway.dyndns.org"? no
(end of list)
flickinger-sutterfield.com in "! +local_domains"? yes (end of list)
cached lookup data = NULL
checking "condition"
lookuphost router skipped: condition failure
--------> amavis_director router <--------
local_part=virustest domain=flickinger-sutterfield.com
checking "condition"
amavis_director router skipped: condition failure
--------> system_aliases1 router <--------
local_part=virustest domain=flickinger-sutterfield.com
calling system_aliases1 router
rda_interpret (string): ${lookup{$local_part@$domain}lsearch{/etc/aliases}}
search_open: lsearch "/etc/aliases"
search_find: file="/etc/aliases"
key="virustest@???" partial=-1 affix=NULL
starflags=0
LRU list:
8/etc/aliases
End
internal_search_find: file="/etc/aliases"
type=lsearch key="virustest@???"
file lookup required for virustest@???
in /etc/aliases
lookup failed
expanded:
file is not a filter file
parse_forward_list:
system_aliases1 router declined for virustest@???
--------> system_aliases2 router <--------
local_part=virustest domain=flickinger-sutterfield.com
calling system_aliases2 router
rda_interpret (string): ${lookup{$local_part}lsearch*@{/etc/aliases}}
search_open: lsearch "/etc/aliases"
cached open
search_find: file="/etc/aliases"
key="virustest" partial=-1 affix=NULL starflags=2
LRU list:
8/etc/aliases
End
internal_search_find: file="/etc/aliases"
type=lsearch key="virustest"
file lookup required for virustest
in /etc/aliases
lookup failed
trying to match *
internal_search_find: file="/etc/aliases"
type=lsearch key="*"
file lookup required for *
in /etc/aliases
lookup failed
expanded:
file is not a filter file
parse_forward_list:
system_aliases2 router declined for virustest@???
--------> bbs_aliases router <--------
local_part=virustest domain=flickinger-sutterfield.com
calling bbs_aliases router
rda_interpret (string): ${lookup{@*}partial-lsearch{/etc/aliases}}
search_open: lsearch "/etc/aliases"
cached open
search_find: file="/etc/aliases"
key="@*" partial=2 affix=*. starflags=0
LRU list:
8/etc/aliases
End
internal_search_find: file="/etc/aliases"
type=lsearch key="@*"
file lookup required for @*
in /etc/aliases
lookup failed
trying partial match *.@*
internal_search_find: file="/etc/aliases"
type=lsearch key="*.@*"
file lookup required for *.@*
in /etc/aliases
lookup failed
expanded:
file is not a filter file
parse_forward_list:
bbs_aliases router declined for virustest@???
--------> procmail_director router <--------
local_part=virustest domain=flickinger-sutterfield.com
checking for local user
procmail_director router skipped: virustest is not a local user
--------> list_owner_director router <--------
local_part=virustest domain=flickinger-sutterfield.com
list_owner_director router skipped: suffix mismatch
--------> owner_list_director router <--------
local_part=virustest domain=flickinger-sutterfield.com
owner_list_director router skipped: prefix mismatch
--------> list_admin_director router <--------
local_part=virustest domain=flickinger-sutterfield.com
list_admin_director router skipped: suffix mismatch
--------> list_request_director router <--------
local_part=virustest domain=flickinger-sutterfield.com
list_request_director router skipped: suffix mismatch
--------> list_director router <--------
local_part=virustest domain=flickinger-sutterfield.com
checking require_files
file check: /var/mailman/lists/${local_part}/config.db
expanded file: /var/mailman/lists/virustest/config.db
stat() yielded -1
errno = 2
list_director router skipped: file check
--------> userforward router <--------
local_part=virustest domain=flickinger-sutterfield.com
checking for local user
finduser used cached passwd data for virustest
userforward router skipped: virustest is not a local user
--------> localuser router <--------
local_part=virustest domain=flickinger-sutterfield.com
checking for local user
finduser used cached passwd data for virustest
localuser router skipped: virustest is not a local user
--------> system_aliases3 router <--------
local_part=virustest domain=flickinger-sutterfield.com
calling system_aliases3 router
rda_interpret (string): ${lookup{@$domain}lsearch{/etc/aliases}}
search_open: lsearch "/etc/aliases"
cached open
search_find: file="/etc/aliases"
key="@flickinger-sutterfield.com" partial=-1 affix=NULL starflags=0
LRU list:
8/etc/aliases
End
internal_search_find: file="/etc/aliases"
type=lsearch key="@flickinger-sutterfield.com"
file lookup required for @flickinger-sutterfield.com
in /etc/aliases
lookup failed
expanded:
file is not a filter file
parse_forward_list:
system_aliases3 router declined for virustest@???
no more routers
virustest@??? is undeliverable:
Unrouteable address
search_tidyup called

When I saw that I got suspicious of what was going on. it skipped the
lookuphost router which is used for remote smtp delivery. SO I looked
over the config. Seems that somehow the ! in the condition line
vanished. When I put it back in (condition = ! "${if eq
{$received_protocol}{scanned-ok} {0}{1}}") it seems to work OK. I will
do some more testing, but looks good. Thanks a LOT! I really appreciate
the help.