OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Wietse Venema (wietseporcupine.org)
Date: Mon Jun 03 2002 - 15:06:27 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    bronto:
    > sub.domain.com catchallsub.domain.com
    >
    > But when I do this, ALL mail sent to sub.domain.com ends up in
    > catchallsub.domain.com, even user1 & user2.

    That's right. virtual maps are queried recursively. If you have
    a table

        user1sub.domain.com user2sub.domain.com
        sub.domain.com catchallsub.domain.com

    Then the substitution is user1sub.domain.com -> user2sub.domain.com
    -> catchallsub.domain.com.

    The clean "fix" for this is a switch that makes the virtual map
    lookups non-recursive (i.e. stop after the first lookup attempt,
    successful or not).

    To work around this, try the following hack:

        user1sub.domain.com user2sub.domain.com
        user2sub.domain.com user2sub.domain.com
        sub.domain.com catchallsub.domain.com

    I hope this will terminate the recursion for user2sub.domain.com.
    At least, with current Postfix versions. Older versions have a very
    odd way of dealing with self-referring virtual map entries.

            Wietse
    -
    To unsubscribe, send mail to majordomopostfix.org with content
    (not subject): unsubscribe postfix-users