Thanks for script!
i followed it all but when i launch “service stunnel start” the system abort with this code:
job for stunnel.service failed because the control process exited with error code. See “systemctl status stunnel.service” and “journalctl -xe” for detailles.
please double-check that you have entered everything correctly, especially that you have copied all the startup script without errors.
Also check that you have entered the stunnel configuration in /etc/stunnel/stunnel.conf and given the correct permissions (chown and chmod).
where did you configure the smarthost? in the cockpit?
If it is configured in the cockpit you have to put as smarthost 127.0.0.1, the port that you have indicated on stunnel and you have to uncheck “encrypted connections” (stunnel does the encryption).
Keep in mind that the PEC requires that each user has his personal login and password for receiving and sending, so you should follow this guide and leave the smarthost in cockpit empty or use it to send standard mails.
Remember when you make changes to these files to re-run the commands to load each file and service as written below each post
To download mail from external PEC boxes to Nethserver users you can use the cockpit pop3connector which has some limitations
To see the current limitations and an “enhanced” version look here:
Also remember to set the from field of the mail clients hooked to the PEC users with the correct PEC address and don’t leave the one of the Nethserver user or empty because it’s that field that determines with which smarthost the mail must go out.
sorry for the question…maybe it’s crazy idea…but i have a PEC with multiple access with user MIxxxx and password…but same address (pippo@pec.rossi.it with mi54597 and mi487263 user). If i create more relay for each account? it’s possible?
Ps yes set in cockpit and set smarthost with 127.0.0.1 and 11125 (the same of conf example) but when test connection have a “X”
@saitobenkei I think it is right to describe my situation so that I can help you understand me.
I created this mail server because I have to:
-create “local” users who exchange mail between offices and send mail to be sent OUTSIDE to an office (telegraph)
the telegraph office receives on a public folder (shared between the colleagues of this office) the internal mail to be sent OUT and the mail coming from OUTSIDE the certified e-mail (the only office to receive).
However, this office can send OUT via this PEC (which has a single address but with differentiated accesses = mario@rossi.it with users mi22435 and mi56663)
having said that everything works except the sending on the pec
i hope that help you
Thanks so much for the support, but it doesn’t work!
I set everything up as you told me, now when I do the test for the stunnel it is active and without errors.
When in the client I enter from: and enter, it says sent successfully but nothing comes outside. Is there any way to verify the connection?
PS the smarthost doesn’t even work if I try to use 127.0.0.1:11125 with my logins