Re: [Exim] Frustrated (still), unable to get vacation and ma…

Pàgina inicial
Delete this message
Reply to this message
Autor: Simon Alman
Data:  
A: exim-users
Assumpte: Re: [Exim] Frustrated (still), unable to get vacation and mail
Hi, thanks for the reply.

I have posted most of this information before - hence my plee (still
outstanding) to see if anyone is successfully using vacation and/or mail
functions in user .forward files.
Debugging output, .forward filters and relevant transport/directors are
given below.

I have had a very experienced user have a look at the config and come up
blank as to what the problem is.

The question still stands "has anyone got vacation/mail filters to work
with exim 4.05 ???"

Thanks

Regards

Simon Alman
-------------------------------------------------------------------------------------------------------------------
Userforward router

userforward:
driver = redirect
allow_filter
check_local_user
file = $home/.forward
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply
no_verify
no_expn
directory_transport = address_directory
skip_syntax_errors
syntax_errors_to = $local_part@$domain
syntax_errors_text = \
This is an automatically generated message. An error has\n\
been found in your .forward file. Details of the error are\n\
reported below. While this error persists, you will receive\n\
a copy of this message for every message that is addressed\n\
to you. If your .forward file is a filter file, or if it is\n\
a non-filter file containing no valid forwarding addresses,\n\
a copy of each incoming message will be put in your normal\n\
mailbox. If a non-filter file contains at least one valid\n\
forwarding address, forwarding to the valid addresses will\n\
happen, and those will be the only deliveries that occur.

---------------------------------------------------------------------------------------------------------------------
Address reply transport
address_reply:
driver = autoreply
---------------------------------------------------------------------------------------------------------------------
.forward file for simon.alman@??? - based on the one from Philip
Hazels conference notes on Exim4: June 2002.
# Exim filter
# Don't touch bounces
if error_message then finish endif
#Throw away junk
if
$h_subject: contains "Make money" or
$sender_address matches \N^\d{8}@\N or
$message_body contains "this is spam"
then seen finish endif
# Auto-reply
if personal alias simon.alman@??? then
mail subject "Re: $h_subject:"
file $home/auto-reply/message
log $home/auto-reply/log
endif
---------------------------------------------------------------------------------------------------------------------

Debugging output for the message stuck in the exim queue - pertinent
information only:

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

Considering: ><haven@???>
unique = ><haven@???>:simon.alman@???
queued for address_reply transport



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

--------> ><haven@???> <--------
locking /var/spool/exim/db/retry.lockfile
locked /var/spool/exim/db/retry.lockfile
opened hints database /var/spool/exim/db/retry: flags=0
dbfn_read: key=T:><haven@???>:simon.alman@???
retry record exists: age=156 (max=604800)
time to retry = -21444 expired = 0
search_tidyup called
changed uid/gid: local delivery to ><haven@???> <><haven@???>>
trans
port=address_reply
uid=543 gid=543
auxiliary group list: <none>
home=/home/simon.alman current=/home/simon.alman
set_process_info: 13728 delivering 17xO2E-0003Vu-00 to ><haven@???> using
address_reply
address_reply transport entered
taking data from address
exec /usr/exim/bin/exim -C /usr/exim/bin/exim_outgoing.conf -d=0xfff7577f
-t -oe
m -oi -f <> -E17xO2E-0003Vu-00
Exim version 4.05 uid=543 gid=543 pid=13729 L=834cd8 D=fff7577f
Berkeley DB: Sleepycat Software: DB 2.4.14: (6/2/98)
changed uid/gid: -C, -D, -be or -bf forces real uid
uid=543 gid=543
auxiliary group list: <none>
exim: debugging permission denied
address_reply transport succeeded
search_tidyup called
address_reply transport returned DEFER for ><haven@???>
added retry item for T:><haven@???>:simon.alman@???: errno=0 0
flags
=0
post-process ><haven@???> (1)
LOG: MAIN
== ><haven@???> <simon.alman@???> R=userforward
T=address_reply de
fer (0): Failed to send message from address_reply transport (1)


-------------------------------------------------------------------------------------------------------------------------------------------
Debugging output for the .forward filter:

[root exim]# /usr/exim/bin/exim -C /usr/exim/exim_outgoing.conf -d -bf
/home/simon.alman/.forward </home/simon.alman/message
Exim version 4.05 uid=0 gid=0 pid=16298 L=834cd8 D=fff7577f
Berkeley DB: Sleepycat Software: DB 2.4.14: (6/2/98)
changed uid/gid: -C, -D, -be or -bf forces real uid
uid=0 gid=0
auxiliary group list: 0 1 2 3 4 6 10
trusted user
admin user
originator: uid=0 gid=0 login=root name=root
sender address = root@???
set_process_info: 16298 accepting a local non-SMTP message from
<root@???>
Sender: root@???
search_tidyup called
>>Headers received:

To: Simon Alman <simon.alman@???>
Subject: date

address match: subject=root@??? pattern=*@salamander-organization.co.uk
tsorg.com in "salamander-organization.co.uk"? no (end of list)
root@??? in "*@salamander-organization.co.uk"? no (end of list)
rewritten sender = root@???
rewrite_one_header: type=T:
To: Simon Alman <simon.alman@???>
rewrite_one_header: type=F:
From: root <root@???>
search_tidyup called
>>Headers after local additions:

P Received: from root by Chameleon with local (Exim 4.05)
         id 17xOl5-0004Es-00; Fri, 04 Oct 2002 10:28:31 +0100
T To: Simon Alman <simon.alman@???>
   Subject: date
I Message-Id: <E17xOl5-0004Es-00@Chameleon>
F From: root <root@???>
   Date: Fri, 04 Oct 2002 10:28:31 +0100


Sender    = root@???
Recipient = root@???
Testing Exim filter file /home/simon.alman/.forward


Filter: start of processing
Condition is false: error_message
Sub-condition is false: $h_subject: contains Make money
Match expanded arguments:
Subject = root@???
Pattern = ^\d{8}@
Sub-condition is false: $sender_address matches \N^\d{8}@\N
Sub-condition is false: $h_subject: contains Make money or $sender_address
matches \N^\d{8}@\N
Sub-condition is false: $message_body contains this is spam
Condition is false: ($h_subject: contains Make money or $sender_address
matches \N^\d{8}@\N) or $message_body contains this is spam
Condition is false: personal
Filtering did not set up a significant delivery.
Normal delivery will occur.
Filter: end of processing
search_tidyup called
>>>>>>>>>>>>>>>>>> Exim pid=16298 terminating with rc=0 >>>>>>>>>>>>>>>>>>

[root exim]#

-----------------------------------------------------------------------------------------------------------
The message file contents are:

To: Simon Alman <simon.alman@???>
Subject: date

Wed Oct 2 14:47:17 BST 2002
-----------------------------------------------------------------------------------------------------------