this stems from another discussion [http://archives.neohapsis.com/archives/postfix/2013-10/0454.html].

i'm currently doing:

transport_maps = hash:$table_directory/transports

>cat transports
example.com                     example-internal:
foo.example.com                 smtp:
.example.com                    example-internal:

example-internal      unix  -       -       -       -       -       smtp
        -o syslog_name=postfix/example-internal

this appears to be working as desired. mail to @example.com or @.example.com is using the example-internal transport, with the exception of mail to @foo.example.com, which is using the regular smtp transport.

i'm wondering if this could be done in a different manner, that wouldn't require the explicit smtp reference for foo.example.com - for example:

example.com                     example-internal:
.example.com!foo.example.com    example-internal:

the essence being to say that foo.example.com will use whatever transport it would have used if transport_maps weren't in use, rather than the explicit reference to smtp:

i know that specific example is not valid, but was just curious if i'd perhaps missed something in the documentation, or there was some other similar method that might be possible.

-ben

Reply via email to