some weeks ago I was talking in this forum about a probably unexpected behavior in ISPC 3.3.1, at least in comparison, against older versions, such as 3.1.0. mail primary mail server is m0.example.com mail secondary server is m1.example.com Up until 3.3.1 I've always done this: domain.tld mail is hosted in m0.example.com In Email Recipients: Server: m1.example.com Recipient Address: @domain.tld In Email Routing Server: m1.example.com Domain: domain.tld Type: smtp No MX Lookup: deactivated Destination: m0.example.com Sort by: 5 Supossedly this has always worked for me in the past Now, in 3.3.1, if I do that, it does not work. If I send a message directly to the secondary MX (m1.example.com) it will be rejected with relay denied error 554 5.7.1 <[email protected]>: Relay access denied However if I issue this command in m1.example.com: postmap -q @domain.tld mysql:/etc/postfix/mysql-virtual_relayrecipientmaps.cf OK as you can see I get an ok is there something I'm missing here? TIA, Ignacio
You could compare the config file templates of the versions, e.g. on our git server, to check what the differences are.
Finally it seems I found the solution. Please correct me if I'm doing wrong here. There's no mention in the ISPC 3.1 manual about Relay Domains. Relay Domains isn't in the panel in my old servers running 3.1.15. It's been such a long time since I configured them and I'm not sure if I configured something else to made this feature work. But ISPC 3.3.1, which we're installing now, comes with Relay Domains, something I haven't heard before or read in the manual. After I have added the domain.tld to Relay Domains in the secondary MX server, everything's running as it should. However, since I haven't found anything related in the manual, it would mean a lot to me if someone can confirm what I've done is correct. Thanks so much in advance
Ahh, yes, this explains the issue. You must add a relay domain to allow relaying for this domain. I was not aware that your previous system, which you mentioned worked, was that old. Relay domains and email addresses have been there for quite a while