Quelle solution pour faire cohabiter Yunohost avec un serveur postfix existant?

Mon serveur YunoHost

Matériel: Serveur dédié Kimsufi - KS-12 - Intel W3520 - 32GB DDR3 ECC 1333 MHz - SoftRaid 2x2To SATA
Version de YunoHost: 11.2.5
J’ai accès à mon serveur : En SSH et par la webadmin
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : oui
Si oui, expliquer: Mon instance est un container proxmox cohabitant avec d’autres instances, telles qu’un serveur de messagerie (postfix). L’ensemble est protégé par un pfsense, également virtualisé sous proxmox.

Description du problème

Bonjour,
Mon instance yunohost est fraichement configurée sur le domaine cool.domain.fr, que je détient auprès d’OVH.
Disposant déja d’un serveur de messagerie (postfix) gérant les adresses de mon domaine “domain.fr”, je souhaite que mes utilisateurs Yuno utilisent leurs adresses déja configurées sur ce serveur postfix existant. De plus je souhaiterai que les messages systèmes de diagnostiques arrivent sur l’adresse de l’administrateur, également en @domain.fr
Je précise que les 2 containers sont sur le même LAN et peuvent communiquer.
Quelle solution adopter ? J’avoue que j’ai du mal à trouver la solution… Dois-je configurer le serveur postfix de Yunohost pour utiliser mon postfix existant en relais ?
Merci d’avance pour votre aide.

Bonjour 3sOx,

Bienvenue au forum!

My French is enough to read your question (I think) but not to answer → English :stuck_out_tongue:

I understand:

  • You already had Postfix on your server, at domain.fr
  • You added Yunohost in another container, at cool.domain.fr
  • You’d like Yunohost users to be able to use the postfix at domain.fr, and also receive admin mail from YNH on your domain.fr mail address.

Are all Postfix users, also Yunohost users?

For myself, I would prefer to switch from an external mailserver to the one included it Yunohost; move existing messages and maybe, if there are non-YNH-users on Postfix, add them to Yunohost.

Alternatively, you can use your existing Postfix as a relay as you write. Did you find the documentation over at Configure SMTP relay | Yunohost Documentation ?

Maybe you could make things easier to configure when you add domain.fr to Yunohost, and move Postfix to mail.domain.fr ; that way, your users can select wbk@domain.fr as an email address. Without that, they could only chose wbk@cool.domain.fr , which is exactly what you want to prevent.

I hope it has been of any help :wink:

Good luck!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.