Re: [Exim] Exim 4.12 + amavisd-new + virtual domains/mysql

Página Inicial
Delete this message
Reply to this message
Autor: Jose de Paula Eufrasio Junior
Data:  
Para: Lista Exim
Assunto: Re: [Exim] Exim 4.12 + amavisd-new + virtual domains/mysql
--
--
Gosh... It's really getting to my nerves...

I used this router:


-----
amavis:
       driver = manualroute
       condition = "${if or {{eq{$interface_port}{10025}} \
               {eq {$sender_address}{}} \
               }       {0}{1}}"
       transport = amavis
       verify = false
       route_list = "* localhost byname"
       self = send
-----



Normally, email arrives to @pib.com.br (it's a local domain), but trying
this router the email doesn't get to the user nor the sender gets an
error message or bounce. The message just vanishes :\

I tried to send an email to me from another provider, I'm putting down
the results from exim -bdf -d (just the amavis router part, skipping the
verifications and such):

15554 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
15554 Considering: jjunior@???
15554 unique = jjunior@???
15554 dbfn_read: key=R:pib.com.br
15554 dbfn_read: key=R:jjunior@???
15554 no domain retry record
15554 no address retry record
15554 jjunior@???: queued for routing
15554 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
15554 routing jjunior@???
15554 --------> amavis router <--------
15554 local_part=jjunior domain=pib.com.br
15554 checking "condition"
15554 calling amavis router
15554 amavis router called for jjunior@???
15554   domain = pib.com.br
15554 route_item = * localhost byname
15554 pib.com.br in "*"? yes (matched "*")
15554 original hostlist=localhost options=byname
15554 expanded hostlist="localhost" options=byname
15554 set transport amavis
15554 finding IP address for localhost
15554 calling getipnodebyname15554 local host found for non-MX address
15554 fully qualified name = localhost
15554 localhost 127.0.0.1
15554 remote host address is the local host: pib.com.br: configured to
try delivery anyway
15554 queued for amavis transport: local_part = jjunior
15554 domain = pib.com.br
15554   errors_to=NULL
15554   domain_data=NULL localpart_data=NULL
15554 routed by amavis router
15554   envelope to: jjunior@???
15554   transport: amavis
15554   host localhost [127.0.0.1]
15554 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
15554 After routing:
15554   Local deliveries:
15554   Remote deliveries:
15554     jjunior@???
15554   Failed addresses:
15554   Deferred addresses:
15554 search_tidyup called
15554 >>>>>>>>>>>>>>>> Remote deliveries >>>>>>>>>>>>>>>>
15554 --------> jjunior@??? <--------
15554 search_tidyup called
15554 set_process_info: 15554 delivering 18luHu-00042k-00: waiting for a
remote delivery subprocess to finish
15554 selecting on subprocess pipes
15554 reading pipe for subprocess 15555 (not ended)
15554 read() yielded 71
15554 Z0 item read
15554 remote delivery process 15555 ended
15554 set_process_info: 15554 delivering 18luHu-00042k-00
15554 post-process jjunior@??? (1)
15554 LOG: retry_defer MAIN
15554   == jjunior@??? R=amavis T=amavis defer (-53): retry time
not reached for any host
15554 >>>>>>>>>>>>>>>> deliveries are done >>>>>>>>>>>>>>>>
15554 changed uid/gid: post-delivery tidying
15554   uid=501 gid=66 pid=15554
15554   auxiliary group list: <none>
15554 set_process_info: 15554 tidying up after delivering
18luHu-00042k-00
15554 Processing retry items
15554 Succeeded addresses:
15554 Failed addresses:
15554 Deferred addresses:
15554 jjunior@???: no retry items
15554 end of retry processing
15554 delivery deferred: update_spool=1 header_rewritten=0
15554 Writing spool header file
15554 Size of headers = 917
15554 end delivery of 18luHu-00042k-00
15554 search_tidyup called
15554 search_tidyup called
15554 >>>>>>>>>>>>>>>> Exim pid=15554 terminating with rc=0

>>>>>>>>>>>>>>>>


-----------

Just for knowing, in this test the amavisd doesn't even get a connection
from exim to process the email.

I then searched the other process (that was created for delivering the message):

----------

15555 changed uid/gid: remote delivery to jjunior@??? with
transport=amav
is
15555 uid=501 gid=66 pid=15555
15555 auxiliary group list: <none>
15555 set_process_info: 15555 delivering 18luHu-00042k-00 using amavis
15555 amavis transport entered
15555 jjunior@???
15555 pib.com.br in queue_smtp_domains? no (option unset)
15555 checking status of localhost
15555 locking /var/spool/mail/db/retry.lockfile
15555 locked /var/spool/mail/db/retry.lockfile
15555 opened hints database /var/spool/mail/db/retry: flags=0
15555 dbfn_read: key=T:localhost:127.0.0.1:10024
15555 dbfn_read: key=T:localhost:127.0.0.1:10024:18luHu-00042k-00
15555 no message retry record
15555 address match: subject=*@localhost pattern=*
15555 localhost in "*"? yes (matched "*")
15555 *@localhost in "*"? yes (matched "*")
15555 retry time not reached: checking ultimate address timeout
15555 localhost [127.0.0.1]:10024 status = unusable
15555 all IP addresses skipped or deferred at least one address
15555 locking /var/spool/mail/db/wait-amavis.lockfile
15555 locked /var/spool/mail/db/wait-amavis.lockfile
15555 opened hints database /var/spool/mail/db/wait-amavis: flags=2
15555 dbfn_read: key=localhost
15555 dbfn_write: key=localhost
15555 Leaving amavis transport
15555 set_process_info: 15555 delivering 18luHu-00042k-00 (just run
amavis for j
junior@??? in subprocess)
15555 search_tidyup called

----

Why in blazes I get "15555 localhost [127.0.0.1]:10024 status =
unusable" ???
And why-god-why I can't get amavisd-new to run with exim! :|

Thanks for any help

--
José de Paula Eufrásio Júnior
Analista de Sistema | CPD
ProInternet do Brasil
--
Content-Description: This is a digitally signed message part

[ signature.asc of type application/pgp-signature deleted ]
--
Content-Description: This is a digitally signed message part

[ signature.asc of type application/pgp-signature deleted ]
--