ayufan/pve-backup-server-dockerfiles

Replace postfix with ssmtp

Opened this issue · 7 comments

Currently the container has postfix installed but does not start it and provides no way to start the postfix daemon to allow PBS to send emails. I think a possible solution would be to replace postfix with a simpler MTA. Looking through the MTA options available on Debian, I found that ssmtp is daemonless and could be a suitable simple MTA to provide /usr/sbin/sendmail as used by PBS. Any users that wanted to make use of ssmtp would need to have a persistent /etc and configure ssmtp themselves.

msmtp-mta might be a better option as it is currently maintained, but it has a daemon. I have not done any testing and do not know if it can still operate without the daemon running.

I'm happy to accept PR adding this to Dockerfile.

Any news about this? would be very great!

ayufan commented

Any news about ssmtp? It would be really cool!

I cannot test as I'm not using PBS in docker anymore. PBS now supports the new notification system and allows an external mail server to be configured directly in the WebGUI in addition to the old method of using the system MTA.

If this works then this issue can probably be closed just by documenting that the default does not work and a custom notification needs to be configured.

Is the actual docker version with this feature?