On Mon, Dec 17, 2012 at 10:46:32AM +0100, Victor d'Agostino wrote:

> Our postfix server serves several internal domains and relays outgoing
> traffic through our ISP SMTP relay server. This external SMTP server is
> limited to 3 destination domains at the same time.

The vague phrase "limited to 3 destination domains at the same time" does
not have any broadly accepted meaning. What is the actual policy enforced
by the ISP relay?

        A. At most 3 recipients per message?
        B. At most 3 recipient domains per message?
        C. At most 3 concurrent connections from a single SMTP client?
        D. ...

Please elaborate.

> I am wondering if it is possible to set a destination_concurrency_limit of
> 3 to the relayhost SMTP server *only* and use the default limit for others
> SMTP servers.

The "<transport>_destination_concurrency_limit" configuration parameter
allows you to set "C", but not "A" or "B". You can set "A" with
"<transport>_destination_recipient_limit", and there is no parameter
to directly control "B".

> I know I can set "this" limit per domain using a transport map but i have to
> apply the limit to only a specific host : the relayhost.

[depending on what "this" means...]

Concurrency controls are configured per-transport, not per-nexthop.
Therefore, to apply a concurrency control selectively to a given
destination, you need to direct traffic to that destination via
a dedicated transport.

Note that:

        relayhost = [relay.example.net]

is equivalent to the combination of separate settings:

        default_transport = smtp:[relay.example.net]
        relay_transport = relay:[relay.example.net]

On a border gateway with inbound mail, you're likely better off
with something like:

        # Outbound mail goes to relay.example.net
        default_transport = smtp:[relay.example.net]

        # Inbund mail goes to mail.example.com
        relay_transport = relay:[mail.example.com]

        # Internal domains.
        relay_domains = example.com

You can then apply your concurrency controls (if any) to
the "smtp" transport, and not the relay transport.

        smtp_destination_mumble_limit = ...

-- 
        Viktor.

P.S. Don't mess with "*" entries in the transport table, there's
no need for anything quite that crude. It is much safer and simpler
to use explicit nexthops with default_transport and relay_transport.

Reply via email to