ayufan / pve-backup-server-dockerfiles

Unofficial, and unmaintained build of proxmox-backup-server
348 stars 60 forks source link

Replace postfix with ssmtp #18

Open arrowmaster opened 2 years ago

arrowmaster commented 2 years ago

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.

arrowmaster commented 2 years ago

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.

ayufan commented 2 years ago

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

n3roGit commented 1 year ago

Any news about this? would be very great!

ayufan commented 1 year ago

It seems that we could use ssmtp for that.

On Mon, 13 Feb 2023 at 17:55, n3ro @.***> wrote:

Any news about this? would be very great!

— Reply to this email directly, view it on GitHub https://github.com/ayufan/pve-backup-server-dockerfiles/issues/18#issuecomment-1428286111, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASOSQMNKV6HAVJNBDOP35LWXJRP3ANCNFSM5S25765Q . You are receiving this because you commented.Message ID: @.***>

n3roGit commented 10 months ago

Any news about ssmtp? It would be really cool!

arrowmaster commented 6 months ago

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.

n3roGit commented 6 months ago

Is the actual docker version with this feature?