[Exim] Questions about the .forwardfile and Exim filters.

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Warren Vanichuk
Date:  
À: exim-users
Sujet: [Exim] Questions about the .forwardfile and Exim filters.
Greetings.

We are attempting to get Exim 3.03 into production, and along the way, we
are working around some of the aspects of our delivery. Everything was
working great, but I've run into a small problem with autoresponders from
the .forward file filter. I have included the -d9 output from Exim in this
email, as well as the relevant configuration sections.

I've gone over the documentation and the -d9 output, but I am unable to spot
what I'm doing wrong. I'm sure it's something trivial.. :) Basically it's
not doing the auto-responding part of the filter. The delivery to the local
mailbox works fine.

My thanks in advance for any assistance anybody can lend me on this issue.
:)

Sincerely, Warren

-----
magicmail.db is a simply DB file keyed on user@domain and includes
uid=123456 gid=9999 homedir=/mail/some/user/homedir for each of the email
addresses.

-----
exim filter being used:

# Exim filter <<== do not edit or remove this line!

#AutoResponse
save /mail/accts/q/q0726241/mbox 600
mail to $reply_address subject "Re: $header_Subject:" text "This is a new test to see if servicer is broken again.\n\n"
once .history

-----
configure sections:

address_pipe:
driver = pipe
return_output
envelope_to_add = true

address_file:
driver = appendfile

address_reply:
driver = autoreply

virtual_forward:
driver = forwardfile
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply
check_ancestor
filter
check_local_user = false
current_directory = ${lookup{$local_part@$domain:homedir}dbm{/services/mail/exim/etc/magicmail.db}{$value}}
user = ${lookup{$local_part@$domain:uid}dbm{/services/mail/exim/etc/magicmail.db}{$value}}
group = ${lookup{$local_part@$domain:gid}dbm{/services/mail/exim/etc/magicmail.db}{$value}}
file = ${lookup{$local_part@$domain:homedir}dbm{/services/mail/exim/etc/magicmail.db}{$value}}/.forward

-----
-d9 output :

Exim version 3.03 debug level 9 uid=0 gid=1
probably Berkeley DB version 1.8x (native mode)
sender address = root@???
set_process_info: 6314 3.03 accepting a local non-SMTP message from <root@???>
Sender: root@???
Recipients:
foo@???
search_tidyup called
>>Original headers (size=18):


This is a test (1)
search_tidyup called
>>Final headers:

P Received: from root by gouda.direct.ca with local (Exim 3.03 #2)
    id 11GoU9-0001dq-00
    for foo@???; Tue, 17 Aug 1999 12:01:25 -0700
I Message-Id: <E11GoU9-0001dq-00@???>
F From: Super-User <root@???>
T To: foo@???
  Date: Tue, 17 Aug 1999 12:01:25 -0700


This is a test (1)
Data file written for message 11GoU9-0001dq-00
Writing spool header file
Size of headers = 278
LOG: 0 MAIN
  <= root@??? U=root P=local S=298
exec /services/mail/exim/bin/exim -d9 -Mc 11GoU9-0001dq-00      
Exim version 3.03 debug level 9 uid=53 gid=15
probably Berkeley DB version 1.8x (native mode)
set_process_info:  6316 3.03 delivering specified messages
delivering message 11GoU9-0001dq-00
set_process_info:  6316 3.03 delivering 11GoU9-0001dq-00
Opened spool file 11GoU9-0001dq-00-H
user=root uid=0 gid=1 sender=root@???
sender_local=1 resent=no ident=root
Non-recipients:
Empty Tree
---- End of tree ----
recipients_count=1
body_linecount=1 message_linecount=7
Delivery address list:
  foo@??? 
locked /services/mail/exim/var/spool/db/retry.lockfile
opened DB file /services/mail/exim/var/spool/db/retry: flags=0

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

Considering: foo@???
foobaz.net in percent_hack_domains? no (end of list)
unique = foo@???
dbfn_read: key=D:foo@???
foo@???: queued for directing
>>>>>>>>>>>>>>>>>>>>>>>>

directing foo@???
calling fail_aliases director
fail_aliases director: dbm key=foo@???
file="/services/mail/exim/etc/fail_aliases.db"
search_open: dbm "/services/mail/exim/etc/fail_aliases.db"
search_find: file="/services/mail/exim/etc/fail_aliases.db"
key="foo@???" partial=-1
LRU list:
1/services/mail/exim/etc/fail_aliases.db
End
internal_search_find: file="/services/mail/exim/etc/fail_aliases.db"
type=dbm key="foo@???"
file lookup required for foo@???
in /services/mail/exim/etc/fail_aliases.db
lookup failed
fail_aliases director failed for foo:
calling system_aliases director
system_aliases director: dbm key=foo@???
file="/services/mail/exim/etc/aliases.db"
search_open: dbm "/services/mail/exim/etc/aliases.db"
search_find: file="/services/mail/exim/etc/aliases.db"
key="foo@???" partial=-1
LRU list:
1/services/mail/exim/etc/aliases.db
1/services/mail/exim/etc/fail_aliases.db
End
internal_search_find: file="/services/mail/exim/etc/aliases.db"
type=dbm key="foo@???"
file lookup required for foo@???
in /services/mail/exim/etc/aliases.db
lookup failed
system_aliases director failed for foo:
calling majordomo_aliases director
majordomo_aliases director: dbm key=foo
file="/mail/majordom/majordomo.aliases.db"
search_open: dbm "/mail/majordom/majordomo.aliases.db"
search_find: file="/mail/majordom/majordomo.aliases.db"
key="foo" partial=-1
LRU list:
1/mail/majordom/majordomo.aliases.db
1/services/mail/exim/etc/aliases.db
1/services/mail/exim/etc/fail_aliases.db
End
internal_search_find: file="/mail/majordom/majordomo.aliases.db"
type=dbm key="foo"
file lookup required for foo
in /mail/majordom/majordomo.aliases.db
lookup failed
majordomo_aliases director failed for foo:
calling virtual_forward director
search_open: dbm "/services/mail/exim/etc/magicmail.db"
search_find: file="/services/mail/exim/etc/magicmail.db"
key="foo@???:homedir" partial=-1
LRU list:
1/services/mail/exim/etc/magicmail.db
1/mail/majordom/majordomo.aliases.db
1/services/mail/exim/etc/aliases.db
1/services/mail/exim/etc/fail_aliases.db
End
internal_search_find: file="/services/mail/exim/etc/magicmail.db"
type=dbm key="foo@???"
file lookup required for foo@???:homedir
in /services/mail/exim/etc/magicmail.db
lookup yielded: uid=726241 gid=9999 homedir=/mail/accts/q/q0726241 quota=15m
virtual_forward director: file = /mail/accts/q/q0726241/.forward
search_open: dbm "/services/mail/exim/etc/magicmail.db"
cached open
search_find: file="/services/mail/exim/etc/magicmail.db"
key="foo@???:uid" partial=-1
LRU list:
1/services/mail/exim/etc/magicmail.db
1/mail/majordom/majordomo.aliases.db
1/services/mail/exim/etc/aliases.db
1/services/mail/exim/etc/fail_aliases.db
End
internal_search_find: file="/services/mail/exim/etc/magicmail.db"
type=dbm key="foo@???"
cached data used for lookup of foo@???:uid
in /services/mail/exim/etc/magicmail.db
lookup yielded: uid=726241 gid=9999 homedir=/mail/accts/q/q0726241 quota=15m
search_open: dbm "/services/mail/exim/etc/magicmail.db"
cached open
search_find: file="/services/mail/exim/etc/magicmail.db"
key="foo@???:gid" partial=-1
LRU list:
1/services/mail/exim/etc/magicmail.db
1/mail/majordom/majordomo.aliases.db
1/services/mail/exim/etc/aliases.db
1/services/mail/exim/etc/fail_aliases.db
End
internal_search_find: file="/services/mail/exim/etc/magicmail.db"
type=dbm key="foo@???"
cached data used for lookup of foo@???:gid
in /services/mail/exim/etc/magicmail.db
lookup yielded: uid=726241 gid=9999 homedir=/mail/accts/q/q0726241 quota=15m
set uid=0 gid=15 euid=726241 egid=9999
240 bytes read from /mail/accts/q/q0726241/.forward
file is a filter file
Filter: start of processing
Filter: end of processing
restored uid=0 gid=15 euid=53 egid=15
virtual_forward director generated >Super-User <root@???>
pipe, file, or autoreply
errors_to=NULL transport=address_reply
virtual_forward director generated /mail/accts/q/q0726241/mbox
pipe, file, or autoreply
errors_to=NULL transport=address_file
virtual_forward director succeeded for foo
transport: <none>
locked /services/mail/exim/var/spool/db/retry.lockfile
opened DB file /services/mail/exim/var/spool/db/retry: flags=0
>>>>>>>>>>>>>>>>>>>>>>>>

Considering: /mail/accts/q/q0726241/mbox
unique = /mail/accts/q/q0726241/mbox:foo@???
>>>>>>>>>>>>>>>>>>>>>>>>

Considering: >Super-User <root@???>
unique = >Super-User <root@???>:foo@???
>>>>>>>>>>>>>>>>>>>>>>>>

After directing:
  Local addresses:
    >Super-User <root@???>
    /mail/accts/q/q0726241/mbox
  Remote addresses:
  Failed addresses:
  Addresses to be routed:
  Deferred addresses:
search_tidyup called

>>>>>> Local deliveries >>>>>>

locked /services/mail/exim/var/spool/db/retry.lockfile
opened DB file /services/mail/exim/var/spool/db/retry: flags=0
dbfn_read: key=T:>Super-User <root@???>@foobaz.net
search_open: dbm "/services/mail/exim/etc/magicmail.db"
search_find: file="/services/mail/exim/etc/magicmail.db"
key="foo@???:homedir" partial=-1
LRU list:
1/services/mail/exim/etc/magicmail.db
End
internal_search_find: file="/services/mail/exim/etc/magicmail.db"
type=dbm key="foo@???"
file lookup required for foo@???:homedir
in /services/mail/exim/etc/magicmail.db
lookup yielded: uid=726241 gid=9999 homedir=/mail/accts/q/q0726241 quota=15m
delivering >Super-User <root@???> as >Super-User <root@???> using address_reply:
uid=726241 gid=9999 home=NULL current=/mail/accts/q/q0726241
auxiliary group list: <none>
set_process_info: 6317 3.03 delivering 11GoU9-0001dq-00 to >Super-User <root@???> using address_reply
address_reply transport entered
taking data from address
message previously sent to Super-User <root@???>
repeat time not reached
address_reply transport returned OK
added retry item for T:>Super-User <root@???>@foobaz.net: errno=0 0 flags=1
post-process >Super-User <root@???>
>Super-User <root@???> succeeded: adding to nonrecipients list

LOG: 0 MAIN
=> >Super-User <root@???> <foo@???> D=virtual_forward T=address_reply
locked /services/mail/exim/var/spool/db/retry.lockfile
opened DB file /services/mail/exim/var/spool/db/retry: flags=0
dbfn_read: key=T:/mail/accts/q/q0726241/mbox@???
search_open: dbm "/services/mail/exim/etc/magicmail.db"
cached open
search_find: file="/services/mail/exim/etc/magicmail.db"
key="foo@???:homedir" partial=-1
LRU list:
1/services/mail/exim/etc/magicmail.db
End
internal_search_find: file="/services/mail/exim/etc/magicmail.db"
type=dbm key="foo@???"
cached data used for lookup of foo@???:homedir
in /services/mail/exim/etc/magicmail.db
lookup yielded: uid=726241 gid=9999 homedir=/mail/accts/q/q0726241 quota=15m
delivering /mail/accts/q/q0726241/mbox as /mail/accts/q/q0726241/mbox using address_file:
uid=726241 gid=9999 home=NULL current=/mail/accts/q/q0726241
auxiliary group list: <none>
set_process_info: 6318 3.03 delivering 11GoU9-0001dq-00 to /mail/accts/q/q0726241/mbox using address_file
appendfile transport entered
appendfile: mode=600 notify_comsat=0 quota=0
file=/mail/accts/q/q0726241/mbox format=unix
prefix=From ${if def:return_path{$return_path}{MAILER-DAEMON}} ${tod_bsdinbox}\n
suffix=\n
locking by lockfile fcntl
lock name: /mail/accts/q/q0726241/mbox.lock
hitch name: /mail/accts/q/q0726241/mbox.lock.gouda.direct.ca.37b9b186.000018ae
lock file created
mailbox /mail/accts/q/q0726241/mbox is locked
writing to file /mail/accts/q/q0726241/mbox
writing data block size=45 timeout=0
writing data block size=298 timeout=0
writing data block size=1 timeout=0
appendfile yields 0 with errno=0 more_errno=0
address_file transport returned OK
post-process /mail/accts/q/q0726241/mbox
/mail/accts/q/q0726241/mbox succeeded: adding to nonrecipients list
foo@???: children all complete
LOG: 0 MAIN
=> /mail/accts/q/q0726241/mbox <foo@???> D=virtual_forward T=address_file
search_tidyup called
>>>>>> Remote deliveries >>>>>>

set_process_info: 6316 3.03 tidying up after delivering 11GoU9-0001dq-00
Processing retry items
Succeeded addresses:
/mail/accts/q/q0726241/mbox: no retry items
foo@???: no retry items
>Super-User <root@???>

locked /services/mail/exim/var/spool/db/retry.lockfile
opened DB file /services/mail/exim/var/spool/db/retry: flags=102
deleted retry information for T:>Super-User <root@???>@foobaz.net
foo@???: no retry items
foo@???: no retry items
Failed addresses:
Deferred addresses:
end of retry processing
LOG: 0 MAIN
Completed
end delivery of 11GoU9-0001dq-00