relay for specific domain

Discussion in 'Installation/Configuration' started by tr909192, Feb 17, 2026 at 5:34 PM.

  1. tr909192

    tr909192 Member HowtoForge Supporter

    in a master/slave setup i need to send all email outogoing from a certain domain to a specified relay with user and pass, without touching general sending.
    in db it should be;
    UPDATE mail_domain SET relay_host = '[smtp.altroserver.com]:587', relay_user = '[email protected]', relay_pass = 'PASSWORD' WHERE domain = 'dominiocliente.it' AND server_id = 38;

    is there a way to do that from the ispconfig?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Enable System > Interface > main config > mail > Show per domain relay options

    Then you can set a relay per domain in the email domain settings.
     
  3. tr909192

    tr909192 Member HowtoForge Supporter

    sorry which is the correct menu? pls see attachment
     

    Attached Files:

  4. till

    till Super Moderator Staff Member ISPConfig Developer

    In the system module, not mail module. The setting is under:

    System > Interface > main config > mail > Show per domain relay options
     
  5. tr909192

    tr909192 Member HowtoForge Supporter

    thanks now i found. but this is system wide, i mean: all the server goes out from that relay. i would like to set a different route for a specific domain
     
  6. tr909192

    tr909192 Member HowtoForge Supporter

    i would like to set this:

    UPDATE mail_domain SET relay_host = '[smtp.altroserver.com]:587', relay_user = '[email protected]', relay_pass = 'PASSWORD' WHERE domain = 'dominiocliente.it' AND server_id = 38;
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    This is not system-wide relay; system-wide relay is under System > server config > mail and I said you should enable System > Interface > main config > mail > Show per domain relay options. It's per domain. You enable that feature there, then you go to the email domain, you will find domain-specific relay settings there now.
     
    Last edited: Feb 17, 2026 at 9:01 PM
  8. tr909192

    tr909192 Member HowtoForge Supporter

    thank you. it worked!
     
    till likes this.

Share This Page