I have the main DNS domain of my YunoHost instance managed by a hosting provider (Gandi.net), and I am also using the smtp that the provider offers, from a long time, before I used YunoHost.
I would like to “bypass” the smtp server included in YunoHost, so that all the mails it is told to send are relayed through the Gandi server. This way, when any of the apps needs to send an email they can do it with no aditional configuration, by using only the local smtp, but the actual email operation is done in the Gandi server, that is working ok and is very reliable for me. When other people send emails to the domain they will be kept in Gandi server, and will not reach YunoHost (we don’t need the personal mailboxes for our users, at least for now).
Would something like this be possible? I think so, but it is a long time since I last configured a postfix instance, and don’t remember how to do it. Besides, I fear that I could broke some of the automatic YunoHost configuration.
Thanks very much! I’ll try it and tell you if it works
I have just found this tutorial, that at first I thought that was for this same issue, but now I think not. What do you think? Is somehow related to it? I don’t understand it well:
Hi there, I’ve just tried and it’s working well with Mailjet SMTP. Thanks @kanhu!
Just one thing : email sent to Gmail gets into “updates” tab and not “primary”. This because it’s a transactional email service and they inject a pixel to track their emails…
I’ve sent them a message to ask if there’s a way to disable this rather dubious technique and if they can let me send email just how they are without injecting some shit into it. Will get back here to report
So it’s possible to deactivate this tracking pixel in Mailjet’s settings. I’m not sure it gets still in primary inbox but all people I wrote to lastly received it without any pain. It’s kind of nonsense to set up a selfhosted mail server if smtp is external but for the moment, I haven’t found a better solution to increase deliverability. Cheers
Hello there,
quick feedback here as I was getting [RCPT from unknown 454 4.7.1 Relay access denied] today when seting this configuration as usual with Mailjet.
After a while and a bit of luck what solved it was to put in main.cf relayhost = in-v3.mailjet.comwithout adding port. When I was adding “:25” or “:465” it was not working.
Seems like you did start using an exernal SMTP server before it was officially managed by Yunohost.
So maybe there is now a conflict between your current setup and Yunohost internal relay management ?
But it’s true that I don’t put any port number either.
I am posting an update that worked for me for others who are considering a solution.
I managed to set up outgoing emails with G Suite legacy free edition using the following article and Configure SMTP relay | Yunohost Documentation and enabling ‘less secure apps’. I used normal Gmail SMTP server settings.