Announcement

Collapse
No announcement yet.

*@tld.com as alias

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • *@tld.com as alias

    Hi guys

    Does anybody know how to set an alias for all possible addresses, excluding the existing ones?

    i.e. existing addresses:

    User 1:
    abc@tld.com
    *@tld.com <-- how to set this alias? (so the user could receive aaa@tld.com, but not def@tld.com)

    User2:
    def@tld.com


    Kind regards

  • #2
    Anybody got some new experiences to share?

    Comment


    • #3
      Hi,

      this kind of "catch all" alias needs to be configured at postfix (for example). Within ox you can use real e-mail aliases. Aliases are used to send E-Mail in OX, they are not related to the mailbox.

      HowTo:


      Greetings

      Comment


      • #4
        Hi Martin,

        As described in this tutorial you usually do it with "virtual_alias_maps".

        But my problem is I used the virtual_alias_maps for the OX aliases this way:

        ../main.cf
        virtual_alias_maps = mysql:/etc/postfix/ox_user_aliases.cf

        ../ox_user_alias.cf
        hosts = 127.0.0.1
        user = xxxxxxxxxxxx
        password = xxxxxxxxxxxx
        dbname = oxdatabase_6
        query = SELECT
        u.mail
        FROM user u
        JOIN user_attribute a
        on u.id = a.id and u.cid = a.cid
        WHERE a.value="%s"

        to match aliases with the ox users.
        The server got different contexts.. that's the reason why .cid


        Regards

        Beat

        Comment

        Working...
        X