On Wed, Jan 29, 2014 at 08:32:26AM -0600, Rodolfo Gonz?lez Gonz?lez wrote:

> I have a customer who sends and receives a large number of messages
> on a given moment to/from a number of his accounts. He also has an
> account which needs to receive many mail messages with high
> priority, mostly from its same domain, but some messages also coming
> from Hotmail, Gmail and other services. The problem is, that if
> there are many queued messages, those messages directed to the
> particular "VIP" account take long time before they are sent to its
> maildir, and the VIP gets upset.
> 
> I know that Postfix's queue is shared and so, but, is there any way
> to send those messages directed to the "VIP" account before the
> others? Googling I've read about setting up two instances or using
> the relay transport, but I don't know if that applies to my use
> case, or how to configure it.

Where's the congestion?  If the active queue is not full, and all
that's happening is that mail to the recipient is question is stuck
in the active queue behind other messages for the same destination
(a "local" recipient?  You must provided a more detailed description!)
then a separate transport may be sufficient.

If the active queue is full, and mail is sitting in "incoming",
then you need a separate inbound path (different recipient domain,
different inbound IP and separate queue, i.e. a full Postfix
instance).

For the first case (assuming local(8) delivery):

    main.cf:
        indexed = ${default_database_type}:${config_directory}/
        virtual_alias_maps = ${indexed}virtual
        transport_maps = ${indexed}transport
        mydestination = example.com
        alias_database = ${indexed}aliases
        alias_maps = $alias_database

    virtual:
        v...@example.com                vip@viplocal.invalid

    transport:
        viplocal.invalid        viplocal

    master.cf:
        local     unix  -       n       n       -       -       local
        viplocal  unix  -       n       n       -       -       local

    aliases:
        vip:    joeuser

Messages sent tp v...@example.com are delivered in parallel with
messages sent to joeu...@example.com, waiting only for other vip
messages, and any mailbox locks if you're not using maildir (for
a large volume of mail, mbox sounds implausible).

-- 
        Viktor.

Reply via email to