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

This is a discussion on How to use user*@domain.com on LHS of virtusertable? - SendMail ; 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 ...

+ Reply to Thread
Results 1 to 3 of 3

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

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

    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.

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

    Alan <bruguy@gmail.com> 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...hobby-site.com

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

    Great tips, thanks!

    On Jan 16, 2:43 pm, Andrzej Adam Filip <a...@onet.eu> wrote:
    > Alan <bru...@gmail.com> 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...hobby-site.com



+ Reply to Thread