While evaluating/testing NS8 on Debian 12 with (Samba) AD, Mail (and SOGo) I did not find where/how to configure an (external) smtp-host for sending mail (i.e smart-host) in the UI.
On the node is is possible to configure one for the notifications which seem to be configured oke:
Relay hosts configuration (or mail routes) formerly known as Smarthost in ns7 is a planned feature, still not implemented. In future releases it will be configured from UI.
Meanwhile thank you for the Postfix customization example. You read the docs, pure joy for me.
Mark, I’m really happy to read again from you (There will be a talk about ARM and NS8 at our community meeting Saturday afternoon at Fosdem, but I didn’t say it).
No, not for outgoing mail of the mail server-module.
At least for me it did not use this settings in de mail-module, but i did configure the outgoing smtphost for notifications after installing the mail-module. So maybe its because of this or configured it wrong. I’ll check again although pretty sure I did configured it correctly…
You did it right, Mark. By now your custom configuration is correct for routing messages from Mail through an external MTA.
Email notifications panel is for other applications and should work for everything but Mail.
The planned idea is:
add some button into the Mail configuration to easily change “Email notifications” setup and say to the whole cluster to route app messages through the Mail instance
add mail routing/relay rules to Mail, based on sender/recipient as NS7, or setup a default relay (like Mark did in the custom config) – the latter differs from NS7 approach but is equivalent in the end
The rationale behind this is that a cluster can have or not have a properly configured Mail module, and in some cases could have more than one Mail servers spread among the cluster nodes. In any scenario some applications need a SMTP server to send messages.
Did we have an howto for getting postfix run with an smarthost like ionos or other ones? i try it now for around two days but its seems allways that way the mail1 is sending directly to the other mailserver and sure i got the refused to talk to me: 554-gmx.net (mxgmx009) Nemesis ESMTP Service not available 554-No SMTP service 554-IP address is block listed. 554 For explanation visit 554 Nemesis ESMTP Service not available No SMTP service IP address is block listed.)
I am very curious about this smarthost thing, all modules have some smarthost component for automatically getting a mail detail and using them for smtp, but have been asking myself question on the where from…
Installing the mail command depends on a smtp server. (in the case of Debian exim is suggested). In the container one can install mail but I think it’s easier to just use a supported mail client like Roundcube for sending a test mail.
If you meant another Debian client and not the NS8 node, here is an explanation how to setup mail for sending a test mail.
i made it to installing the postfix relay server from @mrmarkuz way to describe it. now the postfix try to send the Emails, but by trying to send it it comes to this situation
Apr 21 15:07:43 ns8 postfix/smtp[10116]: 2275B26C86D: to=kai40hh@gmx.de, relay=smtp.ionos.de[213.165.67.97]:465, delay=209, delays=189/0.05/20/0, dsn=4.4.2, status=deferred (lost connection with smtp.ionos.de[213.165.67.97] while receiving the initial server greeting)
any suggestions?
No, just for the NethServer base repo (the distfeed one) activating testing is needed.
After activating there’s also a core update, I don’t know if it’s needed.