Fwd: [Exim] "catch all" .forward?

Página Inicial
Delete this message
Reply to this message
Autor: Vincent Danen
Data:  
Para: exim-users
Assunto: Fwd: [Exim] "catch all" .forward?
--
I should really pay attention to where I send the messages... didn't
mean to send it to myself, but to the list.

> [...]
>> I'm assuming by this then that because I'm sending to the * to the
>> user
>> vdanen, that I will need to rewrite an incoming address of the form
>> "list@???" automagically to "vdanen-list@???"
>> prior to doing a second delivery (ie. first router it hits is virtual,
>> the second is userforward). I don't think this will be a problem
>> because I think this is what qmail must do internally if I judge by
>> the
>> headers of my messages.
>
> This one is for the archives, in case others need to do this as well.
> I just wrote the following in my rewrite config:
>
> *@* ${lookup{$2}lsearch{/etc/exim/virtuser}{$value-}}$1@$2 T
>
> And /etc/exim/virtuser looks like:
>
> vtest.linsec.vx: vdanen
>
> So any message, ie. list@??? is rewritten as
> vdanen-list@??? and sent to the userforward appropriately;
> ~vdanen/.forward-list is referenced for the list@ email address. As
> well, sending a message to, say list@??? is delivered to
> ~list/; no rewriting is done.
>
> I have the feeling that a HOWTO may be in order once this is done. =)
>
> I'm sure there are better ways to optimize this (ie. using cdb instead
> of flat files) but for the time being, flat files and lsearch make it
> easier to change.


--
MandrakeSoft Security; http://www.mandrakesecure.net/
"lynx -source http://linsec.ca/vdanen.asc | gpg --import"
{FE6F2AFD: 88D8 0D23 8D4B 3407 5BD7 66F9 2043 D0E5 FE6F 2AFD}

--
[ PGP.sig of type application/pgp-signature deleted ]
--