[Exim] Re: vacation autoreply once db problems

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Tom Wiebe
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: [Exim] Re: vacation autoreply once db problems
Answering my own question. turns out, my /var/mail directory was
writeable by the courier user, not exim. Adding:

user = <courier_userID>
group = <courier_groupID>

to my vacation_autoreply caused exim to create and use the vacation.db
files automagically.

Yay Me! :)

Tom Wiebe

On Mon, 14 Jun 2004 03:09:40 -0700, Tom Wiebe <tom.wiebe@???> wrote:
>
> 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
>