[Exim] vacation autoreply once db problems

Top Page
Delete this message
Reply to this message
Author: Tom Wiebe
Date:  
To: exim-users
Subject: [Exim] vacation autoreply once db problems
Hi all,

Feeling very proud of myself, have managed to configure an autoreply
to work with my exim setup (the wonderful max os x packages at
http://maxo.captainnet.net/installs/mailserver/index.html).

Everything's working fine, except the vacation.db specified in the
once condition. I'm trying to save it to the
/var/mail/domain/user@domain/ folder, which should be writeable by
exim, given that this is where my maildir's are located and exim
writes stuff there all the time. But, it's not working, error message
below:

2004-06-14 02:35:04 HZALAG-000B21-8Y == username@???
R=vacation_director T=vacation_autoreply defer (0): Failed to open db
(v1) file /var/mail/domain.com/username@???/vacation.db when
sending message from vacation_autoreply transport: Permission denied

Any idea how to make this work? Do I need to create the file manually?

Here's my vacation director setup:

< vacation_director:
<         driver = accept
<         domains = ${lookup mysql {SELECT domain from passwd WHERE \
<                       domain='${quote_mysql:$domain}' AND \
<                       user='${quote_mysql:$local_part}' AND \
<                       vacation_on='1'}{$value}}
<         transport = vacation_autoreply
<         unseen


< vacation_autoreply:
<         driver = autoreply
<         to = ${sender_address}
<         from = "${local_part}@${domain}"
<         log = /var/spool/exim/log/exim_vacation.log
<         #once = /var/mail/$domain/$local_part@$domain/vacation.db
<         #once_repeat = 1d
<         subject = "Auto Reply from ${local_part}@${domain}"
<         text = ${lookup mysql {SELECT vacation_message FROM passwd
WHERE domain='${quote_mysql:$domain}' AND
user='${quote_mysql:$local_part}'}{$value}}


TIA,

Tom Wiebe