pve-backup-server-dockerfiles icon indicating copy to clipboard operation
pve-backup-server-dockerfiles copied to clipboard

Replace postfix with ssmtp

Open arrowmaster opened this issue 2 years ago • 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.

arrowmaster avatar Apr 08 '22 00:04 arrowmaster

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.

arrowmaster avatar Apr 08 '22 00:04 arrowmaster

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

ayufan avatar Jul 22 '22 08:07 ayufan

Any news about this? would be very great!

n3roGit avatar Feb 13 '23 16:02 n3roGit

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: @.***>

ayufan avatar Feb 13 '23 17:02 ayufan

Any news about ssmtp? It would be really cool!

n3roGit avatar Jan 09 '24 16:01 n3roGit

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.

arrowmaster avatar May 11 '24 20:05 arrowmaster

Is the actual docker version with this feature?

n3roGit avatar May 11 '24 21:05 n3roGit