Nextcloud Mail Setup #3549
-
|
I'm new to docker-mailserver, coming from an ancient old exim4 setup that did not age well over the years. I have to say the documentation and setup procedure is par excellence so far, thank you very much for this fine piece of software! Now, I have a very basic problem, I have a web portal (in this case Nextcloud, non-dockerized) on the same machine on which DMS runs and I want it to be able to send mail via DMS. I figured the easiest would be to create a regular mail user and restrict email receiving, so nobody can send stuff to it's inbox. On Nextcloud's side, I configured the FQDN of the mailserver ("mail.mydomain.com"), port 25, selected STARTTLS and added the login info I created for my user. Sending emails however fails, with this message: So Nextcloud is trying to send "me@otherdomain.com" (which is an email account not managed by DMS, basically the email of the Nextcloud user I'm currently logged in with) an email and fails with the above error. I don't quite get the error message though; I have no A/AAAA record on mydomain.com, just an MX record for mail.mydomain.com and that one has a proper A/AAAA record, I hope this is not the problem? I also configured |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If you want to have DMS receive mail for other domains:
To accept mail on port 25 (such as for forwarding mail via alias without requiring authentication), you either need to whitelist the mail client/sender to bypass security checks, or have the mail domain (eg:
|
Beta Was this translation helpful? Give feedback.
setup email add ...). This will allow you to submit mail as whomever (providedSPOOF_PROTECTIONis the default disabled0).If you want to have DMS receive mail for other domains:
MXrecord in DNS that points to DMS atmail.mydomain.com.s…