Can I do this with Postfix? Equal prioritization of email delivery from different users

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Can I do this with Postfix? Equal prioritization of email delivery from different users

Carsten Schmitz

Hello,

we have a configuration where several bulk-mail users are sharing the same email server.

For example:

When the first user1 sends out their bulk we have 1000x emails in queue.

Now one minute later user2 sends also out 1000 emails.

However from my experience the emails of user2 only will be sent out after the emails of user1 are done.

Is there a way to have Postfix send the emails of the two users in equal order? So, like send one email from user1, then send one email from user2 and so on.

The reason is that our users wondering sometime why it takes so long to even start the delivery of their emails.


Thank you for any insight or suggestions.


Best regards

Carsten



Reply | Threaded
Open this post in threaded view
|

Re: Can I do this with Postfix? Equal prioritization of email delivery from different users

Wietse Venema
Carsten Schmitz:

> Hello,
>
> we have a configuration where several bulk-mail users are sharing the
> same email server.
>
> For example:
>
> When the first user1 sends out their bulk we have 1000x emails in queue.
>
> Now one minute later user2 sends also out 1000 emails.
>
> However from my experience the emails of user2 only will be sent out
> after the emails of user1 are done.

I suppose that they are sending one recipient per message? Postfix
will interleave multi-recipient deliveries just fine.

Internally, Postfix maintains one queue per destination. This means
that if everyone sends single-recipient messages to the same domain,
then their messages will be delivered in approximately the order
that Postfix received them. If everyone sends to different domains,
then those 2000 messages would go out in parallel.

Other forms of fairness would involve splitting each per-destination
queue based on some message property and selecting a message from
each split (some might want to split by sender, by size, by priority,
and so on). I don't have a solution for doing that automatically,
and having to configure such things by hand seems annoying.

        Wietse