Re: [Exim] virtual_delivery not working correctly

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Philip Hazel
Ημερομηνία:  
Προς: Paul
Υ/ο: exim-users
Αντικείμενο: Re: [Exim] virtual_delivery not working correctly
On Thu, 23 May 2002, Paul wrote:

> I am using the following virtual_delivery director to lookup mailboxes via MySQL however when no mailbox is returned exim still attempts delivery.


You have quoted a transport, not a director.

> Is there a way to make Exim not to perform delivery if the user or data was not found/selected from the $lookup ?


What do you want to happen? Do you want the message to be bounced, or
kept on Exim's queue for later delivery? You need to to take these kinds
of decision at directing time, not transport time.

> MYSQL_MAILBOX = SELECT mailboxfile FROM mailboxes WHERE username = '${quote_mysql:$local_part}'
>
> virtual_delivery:
> driver = appendfile
> file = ${lookup mysql {MYSQL_MAILBOX}{$value}}
> delivery_date_add
> envelope_to_add
> return_path_add
> user = mail
> group = mail
> #mode = 0660


If the lookup fails, "file" will end up empty. Exim will see that it is
not an absolute path name. It will assume a configuration error, and
freeze the message.

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.