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.
On the right site of this is a Field with Name Testing. You must activate the Testing repro and then the field will be green. Then you can start with the installation of the new smtp modul.
i activate the repo and update the core and the mail app, is there something new for the configuration or is this all?
i saw there is a new entry at notification:
smarthost.configuration
smarthost.manual_configuration
smarthost.mail_app_instance
which one is the right for smtp relay?
if i do the notification change to smarthost.mail_app_ instance i have no possibilities for give relay server adress and the mail dont leave the ques and i got an dont allowed to talk error, if i return to the smarthost_manual_configuration i can do it with a relay server, but it did not work, there is the same error like before.
but unfortunately no luck with sending to the relay…
maillog says:
MTPS wrappermode (TCP port 465) requires setting “smtp_tls_wrappermode = yes”, and “smtp_tls_security_level = encrypt” (or stronger)
Apr 21 20:15:46 ns8 postfix/smtp[16535]: 48AA823CDCE: lost connection with smtp.ionos.de[213.165.67.113] while receiving the initial server greeting
Good Morning, still no luck, also with the customtls.cf
i saw in a log this entrys
Apr 22 07:55:59 ns8 postfix/postqueue[32559]: warning: /etc/postfix/main.cf, line 145: overriding earlier entry: smtp_tls_security_level=may
Apr 22 07:55:59 ns8 postfix/showq[32560]: warning: /etc/postfix/main.cf, line 145: overriding earlier entry: smtp_tls_security_level=may
Apr 22 07:56:09 ns8 postfix/smtp[32539]: 48AA823CDCE: lost connection with smtp.ionos.de[213.165.67.97] while receiving the initial server greeting
After finding a bug in the main.cf i got these results now:
Untrusted TLS connection established to smtp.ionos.de[213.165.67.113]:465: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
Apr 22 08:41:13 ns8 postfix/smtp[33572]: 48AA823CDCE: to=kai40hh@gmx.de, relay=smtp.ionos.de[213.165.67.113]:465, delay=50737, delays=50737/0/0.33/0, dsn=4.0.0, status=deferred (SASL authentication failed; server smtp.ionos.de[213.165.67.113] said: 535 Authentication credentials invalid)
Apr 22 08:41:13 ns8 postfix/postqueue[33640]: warning: /etc/postfix/main.cf, line 145: overriding earlier entry: smtp_tls_security_level=may
i saw in the configuration of the relay.title that the pw is always changed into “relay.unchanged” is this maybe a Problem?