Add priv.c: reworked version of priv dropping code
[exim.git] / test / stderr / 0487
1 Exim version x.yz ....
2 changed uid/gid: forcing real = effective
3   uid=uuuu gid=CALLER_GID pid=pppp
4 seeking password data for user "CALLER": cache not available
5 getpwnam() succeeded uid=CALLER_UID gid=CALLER_GID
6 configuration file is TESTSUITE/test-config
7 trusted user
8 admin user
9 changed uid/gid: privilege not needed
10   uid=EXIM_UID gid=EXIM_GID pid=pppp
11 seeking password data for user "CALLER": using cached result
12 getpwnam() succeeded uid=CALLER_UID gid=CALLER_GID
13 originator: uid=CALLER_UID gid=CALLER_GID login=CALLER name=CALLER_NAME
14 sender address = NULL
15 set_process_info: pppp accepting a local SMTP message from <CALLER>
16  in hosts_connection_nolog? no (option unset)
17 LOG: smtp_connection MAIN
18   SMTP connection from CALLER
19 SMTP>> 220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
20 smtp_setup_msg entered
21 SMTP<< ehlo x.y
22  in dsn_advertise_hosts? no (option unset)
23  in pipelining_advertise_hosts? yes (matched "*")
24  in chunking_advertise_hosts? no (end of list)
25 SMTP>> 250-myhost.test.ex Hello CALLER at x.y
26 250-SIZE 52428800
27 250-8BITMIME
28 250-PIPELINING
29 250 HELP
30 SMTP<< mail from:<x@y>
31 spool directory space = nnnnnK inodes = nnnnn check_space = 10240K inodes = 100 msg_size = 0
32 log directory space = nnnnnK inodes = nnnnn check_space = 10240K inodes = 100
33 SMTP>> 250 OK
34 SMTP<< rcpt to:<userx@test.ex>
35 processing "accept" (TESTSUITE/test-config 34)
36 accept: condition test succeeded in inline ACL
37 end of inline ACL: ACCEPT
38 SMTP>> 250 Accepted
39 SMTP<< data
40 SMTP>> 354 Enter message, ending with "." on a line by itself
41 search_tidyup called
42 >>Headers received:
43 From: unqualified
44
45 rewrite_one_header: type=F:
46   From: unqualified
47 search_tidyup called
48 >>Headers after rewriting and local additions:
49 F From: unqualified
50 I Message-Id: <E10HmaX-0005vi-00@myhost.test.ex>
51   Date: Tue, 2 Mar 1999 09:44:33 +0000
52
53 Data file name: TESTSUITE/spool//input//10HmaX-0005vi-00-D
54 Data file written for message 10HmaX-0005vi-00
55 >>Generated Received: header line
56 P Received: from CALLER (helo=x.y)
57         by myhost.test.ex with local-esmtp (Exim x.yz)
58         (envelope-from <x@y>)
59         id 10HmaX-0005vi-00
60         for userx@test.ex;
61         Tue, 2 Mar 1999 09:44:33 +0000
62 Writing spool header file: TESTSUITE/spool//input//hdr.10HmaX-0005vi-00
63 DSN: **** SPOOL_OUT - address: <userx@test.ex> errorsto: <NULL> orcpt: <NULL> dsn_flags: 0x0
64 Renaming spool header file: TESTSUITE/spool//input//10HmaX-0005vi-00-H
65 Size of headers = sss
66 LOG: MAIN
67   <= x@y U=CALLER P=local-esmtp S=sss
68 created log directory TESTSUITE/spool/log
69 SMTP>> 250 OK id=10HmaX-0005vi-00
70 search_tidyup called
71 exec TESTSUITE/eximdir/exim -DEXIM_PATH=TESTSUITE/eximdir/exim -C TESTSUITE/test-config -d=0xf7715cfd -MCd local-accept-delivery -odi -Mc 10HmaX-0005vi-00
72 Exim version x.yz ....
73 changed uid/gid: forcing real = effective
74   uid=uuuu gid=EXIM_GID pid=pppp
75 seeking password data for user "CALLER": cache not available
76 getpwnam() succeeded uid=CALLER_UID gid=CALLER_GID
77 configuration file is TESTSUITE/test-config
78 trusted user
79 admin user
80 dropping to exim gid; retaining priv uid
81 seeking password data for user "CALLER": using cached result
82 getpwnam() succeeded uid=CALLER_UID gid=CALLER_GID
83 set_process_info: pppp delivering specified messages
84 set_process_info: pppp delivering 10HmaX-0005vi-00
85 Trying spool file TESTSUITE/spool//input//10HmaX-0005vi-00-D
86 reading spool file 10HmaX-0005vi-00-H
87 user=CALLER uid=CALLER_UID gid=CALLER_GID sender=x@y
88 sender_local=0 ident=CALLER
89 Non-recipients:
90  Empty Tree
91 ---- End of tree ----
92 recipients_count=1
93 **** SPOOL_IN - No additional fields
94 body_linecount=1 message_linecount=9
95 DSN: set orcpt:   flags: 0x0
96 Delivery address list:
97   userx@test.ex 
98  locking TESTSUITE/spool/db/retry.lockfile
99  locked  TESTSUITE/spool/db/retry.lockfile
100  EXIM_DBOPEN: file <TESTSUITE/spool/db/retry> dir <TESTSUITE/spool/db> flags=O_RDONLY
101  returned from EXIM_DBOPEN: (nil)
102  failed to open DB file TESTSUITE/spool/db/retry: No such file or directory
103 no retry data available
104 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
105 Considering: userx@test.ex
106 unique = userx@test.ex
107 no   domain  retry record
108 no   address retry record
109 userx@test.ex: queued for routing
110 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
111 routing userx@test.ex
112 --------> r1 router <--------
113 local_part=userx domain=test.ex
114 calling r1 router
115 r1 router called for userx@test.ex
116   domain = test.ex
117 set transport t1
118 queued for t1 transport: local_part = userx
119 domain = test.ex
120   errors_to=NULL
121   domain_data=NULL local_part_data=NULL
122 routed by r1 router
123   envelope to: userx@test.ex
124   transport: t1
125 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
126 After routing:
127   Local deliveries:
128     userx@test.ex
129   Remote deliveries:
130   Failed addresses:
131   Deferred addresses:
132 search_tidyup called
133 >>>>>>>>>>>>>>>> Local deliveries >>>>>>>>>>>>>>>>
134 --------> userx@test.ex <--------
135  locking TESTSUITE/spool/db/retry.lockfile
136  locked  TESTSUITE/spool/db/retry.lockfile
137  EXIM_DBOPEN: file <TESTSUITE/spool/db/retry> dir <TESTSUITE/spool/db> flags=O_RDONLY
138  returned from EXIM_DBOPEN: (nil)
139  failed to open DB file TESTSUITE/spool/db/retry: No such file or directory
140 no retry data available
141 search_tidyup called
142 changed uid/gid: local delivery to userx <userx@test.ex> transport=t1
143   uid=CALLER_UID gid=CALLER_GID pid=pppp
144   home=NULL current=/
145 set_process_info: pppp delivering 10HmaX-0005vi-00 to userx using t1
146 appendfile transport entered
147 appendfile: mode=600 notify_comsat=0 quota=0 warning=0
148   file=TESTSUITE/test-mail/userx format=unix
149   message_prefix=From ${if def:return_path{$return_path}{MAILER-DAEMON}} ${tod_bsdinbox}\n
150   message_suffix=\n
151   maildir_use_size_file=no
152   locking by lockfile fcntl 
153 de-tainting path 'TESTSUITE/test-mail/userx'
154 lock name: TESTSUITE/test-mail/userx.lock
155 hitch name: TESTSUITE/test-mail/userx.lock.test.ex.dddddddd.pppppppp
156 lock file created
157 mailbox TESTSUITE/test-mail/userx is locked
158 writing to file TESTSUITE/test-mail/userx
159 writing data block fd=dddd size=sss timeout=0
160 rewrite_one_header: type=F:
161   From: unqualified
162 cannot use sendfile for body: spoolfile not wireformat
163 writing data block fd=dddd size=sss timeout=0
164 writing data block fd=dddd size=sss timeout=0
165 appendfile yields 0 with errno=dd more_errno=dd
166 search_tidyup called
167 journalling userx@test.ex
168 t1 transport returned OK for userx@test.ex
169 post-process userx@test.ex (0)
170 userx@test.ex delivered
171 LOG: MAIN
172   => userx <userx@test.ex> R=r1 T=t1
173 >>>>>>>>>>>>>>>> deliveries are done >>>>>>>>>>>>>>>>
174 changed uid/gid: post-delivery tidying
175   uid=EXIM_UID gid=EXIM_GID pid=pppp
176 set_process_info: pppp tidying up after delivering 10HmaX-0005vi-00
177 Processing retry items
178 Succeeded addresses:
179  userx@test.ex: no retry items
180 Failed addresses:
181 Deferred addresses:
182 end of retry processing
183 DSN: processing router : r1
184 DSN: processing successful delivery address: userx@test.ex
185 DSN: Sender_address: x@y
186 DSN: orcpt: NULL  flags: 0x0
187 DSN: envid: NULL  ret: 0
188 DSN: Final recipient: userx@test.ex
189 DSN: Remote SMTP server supports DSN: 0
190 DSN: not sending DSN success message
191 LOG: MAIN
192   Completed
193 end delivery of 10HmaX-0005vi-00
194 search_tidyup called
195 search_tidyup called
196 >>>>>>>>>>>>>>>> Exim pid=pppp (local-accept-delivery) terminating with rc=0 >>>>>>>>>>>>>>>>
197 smtp_setup_msg entered
198 SMTP<< quit
199 SMTP>> 221 myhost.test.ex closing connection
200 LOG: smtp_connection MAIN
201   SMTP connection from CALLER closed by QUIT
202 search_tidyup called
203 >>>>>>>>>>>>>>>> Exim pid=pppp (fresh-exec) terminating with rc=0 >>>>>>>>>>>>>>>>