Re: [Exim] virtual_delivery not working correctly

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Paul
Data:  
Para: exim-users
Asunto: Re: [Exim] virtual_delivery not working correctly
Phillip,

I would like the message to be bounced, as it's not a valid user because the
SQL lookup did not return any data.
Exim tries to deliver to a blank mailbox as you stated, but I want Exim to
return the usual 550: user unknown

How can this be achieved?

----- Original Message -----
From: Philip Hazel
To: Paul
Cc: exim-users@???
Sent: Thursday, May 23, 2002 6:20 PM
Subject: 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.



--

## List details at http://www.exim.org/mailman/listinfo/exim-users Exim
details at http://www.exim.org/ ##