Open ay0ks opened 1 month ago
Hi @ay0ks! Could you explain more about your use-case/issue/problem/goal? In my mind, "relaying" (as not implemented) is about mox accepting incoming email on port 25 (unauthenticated) that mox is then supposed to add to its queue and to start trying to deliver. Such relaying is done typically only allowed for connections from some internal IPs. DKIM signatures would either already have been added, or would be added as part of the relay.
Mox currently only allows incoming authenticated "submission", on ports 465 and 587. Messages must have a configured domain in the "From" header of the message.
Both when sending from email clients, and when sending from applications in automated fashion, I always use authenticated submission. I haven't had the need for (unauthenticated) relay.
Also see issue #108.
Btw, mox has its own IMAP server. Dovecot isn't used.
I need a relay because Amazon Support declined my several requests to remove RDNS limits (aka create a PTR record for their ip address), I have a VPS hosted at another provider, but I cannot migrate everything from AWS to that VPS, so it will be easier for me to host a relay on the VPS and point my servers to it. I assume this functionality will be useful not only for me
OK, trying to gather information, some questions:
I'm trying to understand the considerations people have with setting up email relaying.
To make it easier to visualise, this is how it's going to work the best: a.com (internal mox / or public but with the same problem as me) b.com (public mail server, could be anything, not only mox) c.com (public relay that shares accounts with a.com using ldap or active directory)
test@a.com sends mail to test@b.com a.com adds dkim signature to the message a.com is relaying the message to c.com c.com verifies that message is from one of the relay clients c.com sends email from a.com to b.com
If mox supports ldap I could help with this, I'll get more familiar with the codebase
Oh, I forgot to add in the initial message what the exact problem is: Google/Microsoft Outlook or any major mail providers are dropping messages from servers that don't have a PTR record, especially Google is enforcing this
It would be awesome if mox would be able to act as a relay server between other mox instances (or any other mail servers), and display relayed email since it's being saved with dovecot IIRC.