Multiple failover SMTP relays (PRO feature?)

Issue #559 closed
Former user created an issue

Currently I am using a single SMTP relay in our Poste.io Pro setup which works great! Unfortunately like many other relays this also has some sending limits over a period of time.

We’ve reached these a few times now and wondered if we could simply define another “failover” SMTP relay which automatically gets active, when the first one rejects new mails or fails for some reasons. I know programming poste.io is a complex scenario, but this additional feature would be a life safer for me and my company!

Thanks for this awesome AND working project!

Comments (4)

  1. SH repo owner

    I have more general solution for you which don't require lot of changes to our code. There is already undocumented possibility to define multiple outbound routes (but in server.ini only, not through web). Right now I have added randomization for routes with same target so distribution between these routes should be equal. Would it be enough for you?

  2. Foddy

    Hi sorry... This was my post. For some reasons I was logged out.

    Random outbound routes would be fantastic! Is there any config snippet that your could provide me for the server.ini to achieve this?

    The only thing I wonder is, what happens if poste.io selects randomly outbound no. 1, 400 times of 500 mails? I mean it's very unlikely, but theoretically possible :S. Or is there any way to distribute equally the traffic between these two SMTP relays?

  3. SH repo owner

    You need to have latest version (2.1), then edit server.ini

    find [routing] section and setup something like this

    smtp_routes = ":mail.test.com;587|username|password
    :mail2.test.com;587|username|password
    :mail3.test.com;587|username|password"
    

    It will distribute outbound traffic equally, trust me :)

  4. Log in to comment