How to use user*@domain.com on LHS of virtusertable?

How to use user*@domain.com on LHS of virtusertable?

am 16.01.2008 12:21:32 von Alan

Hello,

We're going to have a few hundred, frequently changing email
addresses which should be routed to a specific mail server.

The addresses will look like user-abc@ompany.com, user-
def@company.com, etc.

So we need to specify a line in virtusertable as follows:
user-*@company.com %1%2@server.company.com

Except that the user-*@company.com isn't matching user-xxx@company.com
addresses.

How can I fix that please?

Thanks,

- Alan.

Re: How to use user*@domain.com on LHS of virtusertable?

am 16.01.2008 14:43:06 von Andrzej Filip

Alan writes:

> Hello,
>
> We're going to have a few hundred, frequently changing email
> addresses which should be routed to a specific mail server.
>
> The addresses will look like user-abc@ompany.com, user-
> def@company.com, etc.
>
> So we need to specify a line in virtusertable as follows:
> user-*@company.com %1%2@server.company.com
>
> Except that the user-*@company.com isn't matching user-xxx@company.com
> addresses.
>
> How can I fix that please?

You can:
1) use addresses like
user+abc@company.com, user+def@company.com, etc.
(virtusertable handless them)
2) use regexp map to rewrite user-abc@company.com into
user+abc@company.com
[samples has been posted a few times to the group]

--
[pl>en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl
Open-Sendmail: http://open-sendmail.sourceforge.net/
Building translators is good clean fun.
-- T. Cheatham
----
http://groups.google.com/groups?selm=87fxwxc2dx@bernice.fsf. hobby-site.com

Re: How to use user*@domain.com on LHS of virtusertable?

am 17.01.2008 12:50:10 von Alan

Great tips, thanks!

On Jan 16, 2:43 pm, Andrzej Adam Filip wrote:
> Alan writes:
> > Hello,
>
> > We're going to have a few hundred, frequently changing email
> > addresses which should be routed to a specific mail server.
>
> > The addresses will look like user-...@ompany.com, user-
> > d...@company.com, etc.
>
> > So we need to specify a line in virtusertable as follows:
> > use...@company.com %...@server.company.com
>
> > Except that the use...@company.com isn't matching user-...@company.com
> > addresses.
>
> > How can I fix that please?
>
> You can:
> 1) use addresses like
> user+...@company.com, user+...@company.com, etc.
> (virtusertable handless them)
> 2) use regexp map to rewrite user-...@company.com into
> user+...@company.com
> [samples has been posted a few times to the group]
>
> --
> [pl>en: Andrew] Andrzej Adam Filip : a...@priv.onet.pl : a...@xl.wp.pl
> Open-Sendmail:http://open-sendmail.sourceforge.net/
> Building translators is good clean fun.
> -- T. Cheatham
> ----
> http://groups.google.com/groups?selm=87fxwxc...@bernice.fsf. hobby-site.com