Re: [exim] finding destination account at SMTP time

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Arkadiusz Miskiewicz
Fecha:  
A: exim-users
Cc: Tony Finch
Asunto: Re: [exim] finding destination account at SMTP time
On Monday 24 of January 2005 19:35, Tony Finch wrote:
> On Mon, 24 Jan 2005, Arkadiusz Miskiewicz wrote:
> > Now I would like to create antispam system with different settings _per
> > user account_. This means that I need to know target local account at
> > SMTP time to get preferences from sql database for that account.
>
> Set address_data in the router that delivers email to its destination to
> either contain the destination account or its anti-spam options, and
> use $address_data in the ACL to make your decisions.

Works well, thanks!

Now the case is a bit more complicated. There is host A (which hosts users
mailboxes) and host B which acts ac incoming (MX) / outgoing smtp host.

I need to know on host B which mailbox account will be used for
xys@??? alias. That information is known by A in $address_data.

I'm wondering if it would be possible to pass this information using 250 OK
message from host A and doing regexp on host B on that reply message (when
veryfing recipient on B).

Something like 250 OK ACCOUNT[$address_data].

Hm, I could duplicate config from host A on B and make all these routers as
verify_only + set $address_data but I'm trying to avoid config duplication
because it's going to be a mess with more machines.

Anyone with better solutions?

> Tony.


-- 
Arkadiusz Miśkiewicz                    PLD/Linux Team
http://www.t17.ds.pwr.wroc.pl/~misiek/  http://ftp.pld-linux.org/