Not using the yunohost embedded email system

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.1.39
How are you able to access your server: The webadmin
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: nop

Describe your issue

I would like to use our current external email provider for everything that is related to emails. Here is a quick rundown of the situation :

  • server is installed at work and works like a charm because YNH is awesome
  • A DNS records points to its public IP with domain.tld and sub.domain.tld, classic stuff
  • MX records for this domain point to the MX servers of our mail provider

Problems are :

  • nothing email related works on the server. Wordpress contact form, internal mails, diagnosis mails, nothing (see postfix bounce error below). I’m guessing it’s because of this DNS configuration but maybe there is something else, i don’t know enough to know…
  • email clients cannot authenticate, tried roundcube and snappymail and there is no way to log into them.

What i’d like to do :

Delegate EVERYTHING mail related to our trusted external provider aka not using any of YNH email capacities. That may require to configure postfix and friends differently and i don’t know how, and then again : would manual configurations be overwritten with YNH updates ?

Share relevant logs or error messages

janv. 28 11:28:44 postfix/pipe[271002]: 238F420892: to=<wordpress@domain.tld>, relay=dovecot, delay=0.06, delays=0.01/0/0/0.04, dsn=5.1.1, status=bounced (user unknown)

Have you looked at this doc page? Configure SMTP relay | Yunohost

Other than the SMTP relay (which takes care of outbound emails) there is a dedicated section also for inbound emails.

I don’t have a setup to try this but looks what you’re trying to do.

Yes i have found this but it does not change anything when putting an smtp relay… Can someone clarify what is the difference between setting up smtp relay and altering the whole smtp configuration ?

My issue was mainly with the wordpress contact form but i found a work around with a plugin that allows the use of a specific smtp server for every wordpress email. But it’s a small patch on a system wide issue.