UserA@example.com (on NethServer) sends mail to UserC@example.com (on OtherServer) and Nethserver rejects it with an unknown user message, cos it has no idea who UserC is.
Is there a configuration to get NethServer to relay any messages for @example.com users it doesn’t know about to another server to handle?
I have this working on another mail system that involved a bit of messing about with setting the real mail domain to non-authoritative and a connector to relay any messages for non-local @example.com uses up to a central mail hub, and that works nicely.
I have tried to configure a relay, but it rejects the check, even though the credentials are good as proven with the smarthost config so not sure what’s going on there, or if it’s even relevant to this.
If it needs to be done directly in postfix that’s fine although I have a lot of reading to do on that (and a large part of the reason for playing with Nethserver is keep away from detailed config of things people write entire textbooks about!)
Imo relay would be the way to go if it’s giving errors maybe the external server is refusing it due to security policies check the logs might help also make sure you can ping the mail server from your nethserver a lot of problems are caused by resolution issues
For what it’s worth, problem solved with a native Postfix & Dovecot server using Postfix virtual_transport. Postfix uses LDAP bind to AD to get users routing to Dovecot or to send on elsewhere, Dovecot uses separate LDAP bind for authentication of incoming IMAPS/SMTPS. It was a fun learning experience, and the old mail server is now being decomissioned. Win.
Unfortunately trying to convert that into the NethServer templates is a task I don’t relish. Coupled with the AD component having so many issues joining the main domains, and if made a domain of its own lost all config every reboot made it impossible and in the end I gave up trying to figure out what the problem was. Maybe one day I’ll revisit this.