[Solved] Sender dependent relayhost

Discussion in 'ISPConfig 3 Priority Support' started by remkoh, Nov 3, 2025 at 5:37 PM.

  1. remkoh

    remkoh Active Member HowtoForge Supporter

    I'm in need of a sender dependent relayhost.
    The config is there in postfix, the fields are there in the mail_domain table, but I have no way to configure it in the panel :confused:

    Unlike this screenshot that I found in another thread
    [​IMG]

    this is what I get in the panel
    upload_2025-11-3_17-35-42.png
    The relay fields are missing :(
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    There must either be an option in global server settings to enable it or in client limits.
     
  3. remkoh

    remkoh Active Member HowtoForge Supporter

    The screenshot was as admin so client limits where out of the question.
    Already searched the server config.

    Found it in the interface config.
     
  4. remkoh

    remkoh Active Member HowtoForge Supporter

    It isn't working for whatever reason :confused:

    Added a domain with relay settings in the panel (with and without local delivery checked, which should not matter for sender dependent relayhost config in postfix).
    Relay is just skipped completely and messages are send directly to their destination.
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Did you send the messages from an authenticated account?
     
  6. remkoh

    remkoh Active Member HowtoForge Supporter

    Yes, using roundcube
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok. And the recipient address was not a local account?
     
  8. remkoh

    remkoh Active Member HowtoForge Supporter

    Of course not.
    If it was then the mail would have been delivered locally and not have been sent to the recipient's server in its mx record (instead of to the set relay server).
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    That's why I asked.

    Then I don't know why it does not work on your system. I know several users are using it, so it should generally work.
     
  10. remkoh

    remkoh Active Member HowtoForge Supporter

    It's working now.
    A bricked SRS-related script caused a few postfix troubles, including relaying.
     
    till likes this.
  11. remkoh

    remkoh Active Member HowtoForge Supporter

    @till Other somewhat related question:

    Why can't domain relay and advanced mail routing be done simultaniously? It are 2 separate things.
    Domain relay triggers on the sender address and mail routing triggers on the recipient address.
    The panel won't let you add a domainname into both.

    Use case:
     
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    This is not domain relay vs. advanced mail routing, it's local server domain vs. routing the email of a domain to an external server. And as the domain relay functions are part of the local domain settings, they affect each other.
     
  13. remkoh

    remkoh Active Member HowtoForge Supporter

    It only became a local server domain because that is ispc's only option to do sender based relaying.
    In the given use case the ispc mailserver isn't used for local delivery for the sender based relayed domains (also why local delivery isn't checked).
    How would they affect each other?? One is sender and the other is recipient.
    Only when customers would send mail to each other the priority within postfix what is handled first, sender based relay or recipient based relay, may become an issue. Though not for postfix itself as either way relayed mail is going outbound.
     

Share This Page