Re: [Exim] Questions about the .forwardfile and Exim filters…

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Warren Vanichuk
Dátum:  
Címzett: Philip Hazel
CC: exim-users
Tárgy: Re: [Exim] Questions about the .forwardfile and Exim filters.
On Wed, 18 Aug 1999, Philip Hazel wrote:

> > 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
>
> Note thost last two lines. You need to delete the "once" file before
> each test.


*DoH* Stupid user tricks.. :/ I've deleted the 'once' file and ran the
deliver again with the -d9, and this time it actually shows the auto_reply
being deferred. :)

-----
-d9 output:

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


This is a test.
search_tidyup called
>>Final headers:

P Received: from pyber by gouda.direct.ca with local (Exim 3.03 #2)
    id 11HAAS-00054x-00
    for foo@???; Wed, 18 Aug 1999 11:10:32 -0700
I Message-Id: <E11HAAS-00054x-00@???>
F From: Warren Vanichuk <pyber@???>
T To: foo@???
  Date: Wed, 18 Aug 1999 11:10:32 -0700


This is a test.
Data file written for message 11HAAS-00054x-00
Writing spool header file
Size of headers = 285
LOG: 0 MAIN
  <= pyber@??? U=pyber P=local S=302
exec /services/mail/exim/bin/exim -d9 -Mc 11HAAS-00054x-00      
Exim version 3.03 debug level 9 uid=53 gid=15
probably Berkeley DB version 1.8x (native mode)
set_process_info: 19529 3.03 delivering specified messages
delivering message 11HAAS-00054x-00
set_process_info: 19529 3.03 delivering 11HAAS-00054x-00
Opened spool file 11HAAS-00054x-00-H
user=pyber uid=70 gid=10 sender=pyber@???
sender_local=1 resent=no ident=pyber
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_aliasfile director
virtual_aliasfile director: dbm* key=foo@???
file="/services/mail/exim/etc/virtalias.db"
search_open: dbm "/services/mail/exim/etc/virtalias.db"
search_find: file="/services/mail/exim/etc/virtalias.db"
key="foo@???" partial=3071
LRU list:
1/services/mail/exim/etc/virtalias.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/virtalias.db"
type=dbm key="foo@???"
file lookup required for foo@???
in /services/mail/exim/etc/virtalias.db
lookup failed
trying default match *@foobaz.net
internal_search_find: file="/services/mail/exim/etc/virtalias.db"
type=dbm key="*@foobaz.net"
file lookup required for *@foobaz.net
in /services/mail/exim/etc/virtalias.db
lookup yielded: foo@???
parse_extract_addresses: foo@???
extract item: foo@???
virtual_aliasfile director generated foo@???
errors_to=NULL transport=NULL
uid=unset gid=unset home=NULL
virtual_aliasfile 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: 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"
cached open
search_find: file="/services/mail/exim/etc/fail_aliases.db"
key="foo@???" partial=-1
LRU list:
1/services/mail/exim/etc/fail_aliases.db
1/services/mail/exim/etc/virtalias.db
1/mail/majordom/majordomo.aliases.db
1/services/mail/exim/etc/aliases.db
End
internal_search_find: file="/services/mail/exim/etc/fail_aliases.db"
type=dbm key="foo@???"
cached data used for lookup of 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"
cached open
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
1/services/mail/exim/etc/virtalias.db
1/mail/majordom/majordomo.aliases.db
End
internal_search_find: file="/services/mail/exim/etc/aliases.db"
type=dbm key="foo@???"
cached data used for lookup of 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"
cached open
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
1/services/mail/exim/etc/virtalias.db
End
internal_search_find: file="/mail/majordom/majordomo.aliases.db"
type=dbm key="foo"
cached data used for lookup of foo
in /mail/majordom/majordomo.aliases.db
lookup failed
majordomo_aliases director failed for foo:
virtual_aliasfile director skipped: previously directed 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
1/services/mail/exim/etc/virtalias.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
1/services/mail/exim/etc/virtalias.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
1/services/mail/exim/etc/virtalias.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 >Warren Vanichuk <pyber@???>
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: >Warren Vanichuk <pyber@???>
unique = >Warren Vanichuk <pyber@???>:foo@???
>>>>>>>>>>>>>>>>>>>>>>>>

After directing:
  Local addresses:
    >Warren Vanichuk <pyber@???>
    /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:>Warren Vanichuk <pyber@???>@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 >Warren Vanichuk <pyber@???> as >Warren Vanichuk <pyber@???> using address_reply:
uid=726241 gid=9999 home=NULL current=/mail/accts/q/q0726241
auxiliary group list: <none>
set_process_info: 19532 3.03 delivering 11HAAS-00054x-00 to >Warren Vanichuk <pyber@???> using address_reply
address_reply transport entered
taking data from address
Exim version 3.03 debug level 9 uid=726241 gid=9999
probably Berkeley DB version 1.8x (native mode)
LOG: 0 PANIC
Failed to get user name for uid 726241
address_reply transport returned DEFER
added retry item for T:>Warren Vanichuk <pyber@???>@foobaz.net: errno=0 0 flags=0
post-process >Warren Vanichuk <pyber@???>
LOG: 0 MAIN
== >Warren Vanichuk <pyber@???> <foo@???> T=address_reply defer (0): Failed to send message from address_reply transport (1)
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: 19578 3.03 delivering 11HAAS-00054x-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.37baf723.00004c7a
lock file created
mailbox /mail/accts/q/q0726241/mbox is locked
writing to file /mail/accts/q/q0726241/mbox
writing data block size=46 timeout=0
writing data block size=302 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
LOG: 0 MAIN
=> /mail/accts/q/q0726241/mbox (foo@???) <foo@???> D=virtual_forward T=address_file
search_tidyup called
>>>>>> Remote deliveries >>>>>>

set_process_info: 19529 3.03 tidying up after delivering 11HAAS-00054x-00
Processing retry items
Succeeded addresses:
/mail/accts/q/q0726241/mbox: no retry items
foo@???: no retry items
foo@???: no retry items
foo@???: no retry items
foo@???: no retry items
foo@???: no retry items
Failed addresses:
Deferred addresses:
>Warren Vanichuk <pyber@???>

locked /services/mail/exim/var/spool/db/retry.lockfile
opened DB file /services/mail/exim/var/spool/db/retry: flags=102
>Warren Vanichuk <pyber@???>@foobaz.net in exchange.direct.ca? no (end of list)
>Warren Vanichuk <pyber@???>@foobaz.net in *? yes (*)

retry for T:>Warren Vanichuk <pyber@???>@foobaz.net = *
dbfn_read: key=T:>Warren Vanichuk <pyber@???>@foobaz.net
Writing retry data for T:>Warren Vanichuk <pyber@???>@foobaz.net
first failed=934999696 last try=934999843 next try=935000743 expired=0
error 0 0: Failed to send message from address_reply transport (1)
dbfn_write: key=T:>Warren Vanichuk <pyber@???>@foobaz.net
foo@???: no retry items
foo@???: no retry items
end of retry processing
time on queue = 11s
warning counts: required 0 done 0
delivery deferred: update_spool=1 header_changed=0
Writing spool header file
Size of headers = 285
end delivery of 11HAAS-00054x-00

---
Directors/Transports:

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}{exim}}
group = ${lookup{$local_part@$domain:gid}dbm{/services/mail/exim/etc/magicmail.db}{$value}{exim}}
file = ${lookup{$local_part@$domain:homedir}dbm{/services/mail/exim/etc/magicmail.db}{$value}}/.forward

----
Exim Filter 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