Mailu: Allow configuring multiple relayhosts

Created on 6 Aug 2019  ·  5Comments  ·  Source: Mailu/Mailu

I'm trying to setup postfix sender_dependent_default_transport_maps to relay through different SMTP servers depending on the sender domain, but I hit a roadblock with adding the sasl passwords. Currently mailu only supports one relayhost, but I want to add 5-10+.

I propose exposing /etc/postfix/sasl_passwd in /overrides to let users add their own credentials as a quick fix.

backlog typenhancement

Most helpful comment

Hi There,

The Mailu-Project is currently in a bit of a bind! We are short on man-power, and we need to judge if it is possible for us to put in some work on this issue.

To help with that, we are currently trying to find out which issues are actively keeping users from using Mailu, which issues have someone who want to work on them — and which issues may be less important. These a less important ones could be discarded for the time being, until the project is in a more stable and regular state once again.

In order for us to better assess this, it would be helpful if you could put a reaction on this post (use the :smiley: icon to the top-right).

  • 👍️ if you need this to be able to use Mailu. Ideally, you’d also be able to test this on your installation, and provide feedback …
  • 🎉 if you find it a nice bonus, but no deal-breaker
  • 🚀 if you want to work on it yourself!
    We want to keep this voting open for 2 weeks from now, so please help out!

All 5 comments

Agreed with the quick fix, and more generally we could take advantage of that map to use specific relays.

For anyone finding this issue trying to do the same thing, this is currently already doable by adding one line to overrides/postfix.cf that points smtp_sasl_password_maps to overrides/sasl_passwd instead of the mailu-default version.

overrides/postfix.cf:

smtp_sasl_password_maps = texthash:/overrides/sasl_passwd

overrides/sasl_passwd: (some examples of what could go here)

[smtp.gmail.com]:587 [email protected]:passwordhere
[mail.example.com]:25 [email protected]:passwordhere
[smtp.mailgun.org]:587 [email protected]:mailgunpasswordhere

Full example here: https://github.com/Mailu/Mailu/issues/1096#issuecomment-518931372

This ticket is just proposing the enhancement to automatically use any overrides/sasl_passwd file present without having to add the one line to overrides/postfix.cf yourself. :+1:

Hi There,

The Mailu-Project is currently in a bit of a bind! We are short on man-power, and we need to judge if it is possible for us to put in some work on this issue.

To help with that, we are currently trying to find out which issues are actively keeping users from using Mailu, which issues have someone who want to work on them — and which issues may be less important. These a less important ones could be discarded for the time being, until the project is in a more stable and regular state once again.

In order for us to better assess this, it would be helpful if you could put a reaction on this post (use the :smiley: icon to the top-right).

  • 👍️ if you need this to be able to use Mailu. Ideally, you’d also be able to test this on your installation, and provide feedback …
  • 🎉 if you find it a nice bonus, but no deal-breaker
  • 🚀 if you want to work on it yourself!
    We want to keep this voting open for 2 weeks from now, so please help out!

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

boop

Was this page helpful?
0 / 5 - 0 ratings