albertito / chasquid

SMTP (email) server with a focus on simplicity, security, and ease of operation [mirror]
https://blitiri.com.ar/p/chasquid/
Other
868 stars 56 forks source link

fix No SMTP addresses/listeners #35

Closed usrtax closed 1 year ago

usrtax commented 1 year ago

In ubuntu , without those will

Mar  9 22:07:55 con-frankfurtammain-62-171-170-189 chasquid[2994]: E chasquid.go:190    If using systemd, check that you named the sockets
Mar  9 22:07:55 con-frankfurtammain-62-171-170-189 chasquid[2994]: E chasquid.go:189    Warning: No submission addresses/listeners
Mar  9 22:07:55 con-frankfurtammain-62-171-170-189 chasquid[2994]: E chasquid.go:190    If using systemd, check that you named the sockets
Mar  9 22:07:55 con-frankfurtammain-62-171-170-189 chasquid[2994]: E chasquid.go:189    Warning: No submission+TLS addresses/listeners
Mar  9 22:07:55 con-frankfurtammain-62-171-170-189 chasquid[2994]: E chasquid.go:190    If using systemd, check that you named the sockets
Mar  9 22:07:55 con-frankfurtammain-62-171-170-189 chasquid[2994]: ☠ chasquid.go:169    No address to listen on
Mar  9 22:07:55 con-frankfurtammain-62-171-170-189 systemd[1]: chasquid.service: Main process exited, code=exited, status=1/FAILURE
Mar  9 22:07:55 con-frankfurtammain-62-171-170-189 systemd[1]: chasquid.service: Failed with result 'exit-code'.
Mar  9 22:07:55 con-frankfurtammain-62-171-170-189 systemd[1]: chasquid.service: Scheduled restart job, restart counter is at 5.
Mar  9 22:07:55 con-frankfurtammain-62-171-170-189 systemd[1]: Stopped chasquid mail daemon (service).
Mar  9 22:07:55 con-frankfurtammain-62-171-170-189 systemd[1]: chasquid.service: Start request repeated too quickly.
Mar  9 22:07:55 con-frankfurtammain-62-171-170-189 systemd[1]: chasquid.service: Failed with result 'exit-code'.
Mar  9 22:07:55 con-frankfurtammain-62-171-170-189 systemd[1]: Failed to start chasquid mail daemon (service).
image
albertito commented 1 year ago

That problem is because you're using the new simplified systemd config, but you have not changed your chasquid.conf accordingly.

You can't change one and not the other.

In commit 2bad7a14bed49d41c5ab41693ad8c9b61be7cfd4 (where the systemd config was changed) you can see that chasquid.conf was also changed to listen explicitly on the 3 ports.

If you make that change to your chasquid.conf, it should work.

This is not a problem in general because there is no expectation that existing installs will change anything, and new installs should use both set of files which work well together.