Postfix: Sender dependant Relay

Discussion in 'General' started by nanoarmando, Dec 26, 2022.

  1. nanoarmando

    nanoarmando New Member

    Hi, guys

    I need to implement a sender dependant relay map (per domain)
    Im following mailjet official guide (https://dev.mailjet.com/mandrill/SMTP-relay/)
    Every domain need to have a mailjet account with their api key and secret.

    But i want to ask if there is way to do that with ISPconfig panel.
    In case that there is no way, i could safetly edit the master.cf file ?

    Thx
     
    Last edited: Dec 26, 2022
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    I don't know the answer but the idea is interesting so I parked.
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Enable System > interface > main config > mail > Show per domain relay options. Then you can enter the relay details in the email domain options.
     
    ahrasis likes this.
  4. nanoarmando

    nanoarmando New Member

    Hi @till, thanks for your answer, I really appreciate it.

    The problem that i have following your instructions is that:
    When i try to send an email with the settings you gave me, I get a Relay access denied error from mailjet.
    On the other hand, if I do it globally with the same cedentials (System -> Server Config -> Mail -> (Relay host, user and password)) the mail is sent correctly.
    Do you have any idea where the problem could be?

    I will leave some screenshots:

    Mail log: first try --> global relay --> success, second try ---> domain relay ---> bounced
    Captura de Pantalla 2022-12-26 a la(s) 3.29.58 p. m..png

    Configurations (one at time)
    Captura de Pantalla 2022-12-26 a la(s) 3.35.36 p. m..png
    Captura de Pantalla 2022-12-26 a la(s) 3.36.43 p. m..png
     
  5. nanoarmando

    nanoarmando New Member

    I have been testing the mailjet proposal (https://dev.mailjet.com/mandrill/SMTP-relay/), and its working very well with same api keys and paswword, but im concerned about the implications with ISPconfig panel (about editing main.cf file).

    It would be great if the option that @till recommend can works as expected, but its not, im afraid that maybe i'm making a mistake (i dont kown where)... the credentials for each relay its stored on DB as plain text and im asking my self if is not a lack of hash or encryption, i dont know, but in theory that option should be a fast foward step.

    If anyone can test this on their server, let's me know.
     

Share This Page