[exim] Problem with vacation

Página Inicial
Delete this message
Reply to this message
Autor: Mathias Lagerwall
Data:  
Para: exim-users
Assunto: [exim] Problem with vacation
I have been trying to setup a vacation function (for many hours now...),
but cant seem to get it right.
The router seems to work, but the autoreply transport is not doing what
I want. As far as I can see the important lines in the log is:
19070 == vactest@??? R=uservacation T=uservacation_transport
defer (0): Failed to send message from uservacation_transport transport (1)
But I do not know what to do to fix this.

All my files can be seen below. I have setup a user called vactest that
I am using for testing.

Any help is greatly appreciated!
Thanks
//Mathias


Router:
uservacation:
  driver = accept
  domains = +local_domains
  check_local_user
  require_files = $home/vacation.msg
  # do not reply to errors or lists or with ADV in the subject
  condition =  ${if or { \
                {match {$h_precedence:} {(?i)junk|bulk|list}} \
                {eq {$sender_address} {}} \
                {match {$h_subject:} {(ADV|Adv)}} \
                } {no} {yes}}
  no_expn
  # do not reply to errors or bounces or lists
  senders = ! ^.*-request@.*:\
            ! ^bounce-.*@.*:\
            ! ^.*-bounce@.*:\
            ! ^owner-.*@.*:\
            ! ^postmaster@.*:\
            ! ^webmaster@.*:\
            ! ^listmaster@.*:\
            ! ^mailer-daemon@.*:\
            ! ^root@.*
  transport = uservacation_transport
  unseen
  no_verify


Transport:
uservacation_transport:
   driver = autoreply
   file = $home/vacation.msg
   file_expand
#  once = $home/.vacation.db
#  once_file_size = 2K
#  once_repeat = 14d
   from = $local_part@???
   to = $sender_address
   subject = "Re: $h_subject"
   text = "This is an automatic reply.  Please feel free to send
additional\n\
           mail, as only this one notice will be generated.\n\
           ================================================\n\n"
Debug log:
19070 --------> uservacation router <--------
19070 local_part=vactest domain=XXXX.se
19070 checking domains
19070 cached yes match for +local_domains
19070 cached lookup data = NULL
19070 XXXX.se in "+local_domains"? yes (matched "+local_domains" - cached)
19070 checking for local user
19070 checking senders
19070 address match: subject=p03-vla@??? pattern=^.*-request@.*
19070 address match: subject=p03-vla@??? pattern=^bounce-.*@.*
19070 address match: subject=p03-vla@??? pattern=^.*-bounce@.*
19070 address match: subject=p03-vla@??? pattern=^owner-.*@.*
19070 address match: subject=p03-vla@??? pattern=^postmaster@.*
19070 address match: subject=p03-vla@??? pattern=^webmaster@.*
19070 address match: subject=p03-vla@??? pattern=^listmaster@.*
19070 address match: subject=p03-vla@??? pattern=^mailer-daemon@.*
19070 address match: subject=p03-vla@??? pattern=^root@.*
19070 p03-vla@??? in "! ^.*-request@.*:! ^bounce-.*@.*:!
^.*-bounce@.*:! ^owner-.*@.*:! ^postmaster@.*:! ^webmaster@.*:!
^listmaster@.*:! ^mailer-daemon@.*:! ^root@.*"? yes (end of list)
19070 checking require_files
19070 file check: $home/vacation.msg
19070 expanded file: /netset/vactest/vacation.msg
19070 stat() yielded 0
19070 checking "condition"
19070 calling uservacation router
19070 uservacation router called for vactest@???
19070   domain = XXXX.se
19070 set transport uservacation_transport
19070 queued for uservacation_transport transport: local_part = vactest
19070 domain = XXXX.se
19070   errors_to=NULL
19070   domain_data=NULL localpart_data=NULL
19070 routed by uservacation router (unseen)
19070   envelope to: vactest@???
19070   transport: uservacation_transport
19070 "unseen" set: replicated vactest@???
19070 locking /var/spool/exim4/db/retry.lockfile
19070 locked /var/spool/exim4/db/retry.lockfile
19070 opened hints database /var/spool/exim4/db/retry: flags=0
19070 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
19070 Considering: vactest@???
19070 unique = \0\vactest@???
19070 dbfn_read: key=R:XXXX.se
19070 dbfn_read: key=R:vactest@???
19070 no domain retry record
19070 no address retry record
19070 vactest@???: queued for routing
19070 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
19070 routing vactest@???
--SNIP--

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

19070 After routing:
19070   Local deliveries:
19070     vactest@???
19070     vactest@???
19070   Remote deliveries:
19070   Failed addresses:
19070   Deferred addresses:
19070 search_tidyup called
19070 >>>>>>>>>>>>>>>> Local deliveries >>>>>>>>>>>>>>>>
19070 --------> vactest@??? <--------
19070 locking /var/spool/exim4/db/retry.lockfile
19070 locked /var/spool/exim4/db/retry.lockfile
19070 opened hints database /var/spool/exim4/db/retry: flags=0
19070 dbfn_read: key=T:vactest@???
19070 retry record exists: age=703 (max=604800)
19070   time to retry = -197 expired = 0
19070 search_tidyup called
19071 changed uid/gid: local delivery to vactest <vactest@???>
transport=mail_spool
19071   uid=5503 gid=8 pid=19071
19071   auxiliary group list: <none>
19071   home=/netset/vactest current=/netset/vactest
19071 set_process_info: 19071 delivering 1Fs3E6-0004xZ-2H to vactest
using mail_spool
19071 T: appendfile for vactest@???
19071 appendfile transport entered
19071 appendfile: mode=660 notify_comsat=0 quota=0 warning=0
19071   directory=/netset/vactest/Maildir format=maildir
19071   message_prefix=
19071   message_suffix=null
19071   maildir_use_size_file=no
19071 ensuring maildir directories exist in /netset/vactest/Maildir
19071 delivering in maildir format in /netset/vactest/Maildir
19071 writing to file tmp/1150659990.H117808P19071.gateway.netset.se
19071 writing data block fd=6 size=1214 timeout=0
19071 renaming temporary file
19071 renamed tmp/1150659990.H117808P19071.gateway.netset.se as
new/1150659990.H117808P19071.gateway.netset.se
19071 appendfile yields 0 with errno=0 more_errno=0
19071 search_tidyup called
19070 journalling vactest@???/mail_spool
19070 mail_spool transport returned OK for vactest@???
19070 added retry item for T:vactest@???: errno=0 0 flags=1
19070 post-process vactest@??? (0)
19070 vactest@??? delivered
19070 LOG: MAIN
19070   => vactest <vactest@???> R=local_user T=mail_spool
19070 --------> vactest@??? <--------
19070 locking /var/spool/exim4/db/retry.lockfile
19070 locked /var/spool/exim4/db/retry.lockfile
19070 opened hints database /var/spool/exim4/db/retry: flags=0
19070 dbfn_read: key=T:vactest@???
19070 retry record exists: age=703 (max=604800)
19070   time to retry = -197 expired = 0
19070 search_tidyup called
19072 changed uid/gid: local delivery to vactest <vactest@???>
transport=uservacation_transport
19072   uid=5503 gid=100 pid=19072
19072   auxiliary group list: <none>
19072   home=/netset/vactest current=/netset/vactest
19072 set_process_info: 19072 delivering 1Fs3E6-0004xZ-2H to vactest
using uservacation_transport
19072 uservacation_transport transport entered
19072 taking data from transport
19073 exec /usr/sbin/exim4 -d=0xfbbd5cfd -t -oem -oi -f <>
-E1Fs3E6-0004xZ-2H
19073 Exim version 4.34 uid=5503 gid=100 pid=19073 D=fbbd5cfd
Berkeley DB: Sleepycat Software: Berkeley DB 3.2.9: (May 26, 2004)
Support for: iconv() IPv6 GnuTLS
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz
dsearch nis nis0 passwd
Authenticators: cram_md5 plaintext
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore autoreply lmtp pipe smtp
Fixed never_users: 0
19073 changed uid/gid: forcing real = effective
19073   uid=0 gid=100 pid=19073
19073   auxiliary group list: <none>
19073 configuration file is /var/lib/exim4/config.autogenerated
19073 log selectors = 00000ffc 00010400
exim: debugging permission denied
19072 uservacation_transport transport succeeded
19072 search_tidyup called
19070 uservacation_transport transport returned DEFER for vactest@???
19070 added retry item for T:vactest@???: errno=0 0 flags=0
19070 post-process vactest@??? (1)
19070 LOG: MAIN
19070   == vactest@??? R=uservacation T=uservacation_transport
defer (0): Failed to send message from uservacation_transport transport (1)
19070 >>>>>>>>>>>>>>>> deliveries are done >>>>>>>>>>>>>>>>
19070 changed uid/gid: post-delivery tidying
19070   uid=102 gid=102 pid=19070
19070   auxiliary group list: <none>
19070 set_process_info: 19070 tidying up after delivering 1Fs3E6-0004xZ-2H
19070 Processing retry items
19070 Succeeded addresses:
19070 vactest@???
19070 locking /var/spool/exim4/db/retry.lockfile
19070 locked /var/spool/exim4/db/retry.lockfile
19070 opened hints database /var/spool/exim4/db/retry: flags=2
19070 deleted retry information for T:vactest@???
19070 vactest@???: no retry items
19070 Failed addresses:
19070 Deferred addresses:
19070 vactest@???
19070 address match: subject=vactest@??? pattern=*
19070 netset.se in "*"? yes (matched "*")
19070 vactest@??? in "*"? yes (matched "*")
19070 retry for T:vactest@??? = *
19070 dbfn_read: key=T:vactest@???
19070 Writing retry data for T:vactest@???
19070   first failed=1150659990 last try=1150659990 next try=1150660890
expired=0
19070   error 0 0: Failed to send message from uservacation_transport
transport (1)
19070 dbfn_write: key=T:vactest@???
19070 vactest@???: no retry items
19070 end of retry processing
19070 time on queue = 0s
19070 warning counts: required 0 done 0
19070 delivery deferred: update_spool=1 header_rewritten=0
19070 Writing spool header file
19070 Size of headers = 1069
19070 end delivery of 1Fs3E6-0004xZ-2H
19070 search_tidyup called
19070 search_tidyup called


Exim mainlog:
2006-06-18 21:53:02 1Fs3KQ-00050H-1k <= mathias@???
H=([192.168.1.101]) [XX.XXX.215.6] P=asmtp
X=TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16 A=plain_server:mathias S=528
id=4495AF86.3020809@???
2006-06-18 21:53:02 1Fs3KQ-00050H-1k => vactest <vactest@???>
R=local_user T=mail_spool
2006-06-18 21:53:02 1Fs3KQ-00050H-1k == vactest@??? R=uservacation
T=uservacation_transport defer (0): Failed to send message from
uservacation_transport transport (1)