borgmatic-collective / docker-borgmatic

Borgmatic in Docker
GNU General Public License v3.0
313 stars 88 forks source link

Not able to receive email notifciations #293

Closed kiekar closed 5 months ago

kiekar commented 5 months ago

Current installation: Borgmatic 1.8.5, Borg 1.2.7 and apprise 1.6.0

current conf.yaml entry

`source_directories:

keep_hourly: 24 keep_daily: 7 keep_weekly: 4 keep_monthly: 6

mysql_databases:

before_backup:

after_backup:

Output

apprise -vv -t "SUCCESS" -b "Backups successfully made" "mailto://mail.mydomain.com:587?user=user1@mydomain.com&pass=xxxxx&from=user2@mydomain.com" 2024-01-25 10:56:26,325 - INFO - Applying Custom Defaults 2024-01-25 10:56:26,559 - WARNING - Connection error while submitting email to mail.centuryit.com. Reason: [Errno 101] Network unreachable local: Error running actions for repository Command 'apprise -vv -t "SUCCESS" -b "Backups successfully made" "mailto://mail.mydomain.com:587?user1=user1@mydomain.com&pass=xxxxxx&from=user2@mydomain.com"' returned non-zero exit status 1. /etc/borgmatic.d/config.yaml: No commands to run for on-error hook /etc/borgmatic.d/config.yaml: An error occurred /etc/borgmatic.d/config.yaml: No commands to run for post-everything hook

summary: /etc/borgmatic.d/config.yaml: Loading configuration file /etc/borgmatic.d/config.yaml: An error occurred local: Error running actions for repository 2024-01-25 10:56:26,325 - INFO - Applying Custom Defaults 2024-01-25 10:56:26,559 - WARNING - Connection error while submitting email to mail.mydomain.com. Reason: [Errno 101] Network unreachable Command 'apprise -vv -t "SUCCESS" -b "Backups successfully made" "mailto://mail.mydomain.com:587?user=user1@mydomain.com&pass=xxxxx&from=user2@mydomain.com"' returned non-zero exit status 1.

Need some help? https://torsion.org/borgmatic/#issues

Never receive postfix logs

grantbevis commented 5 months ago

2024-01-25 10:56:26,559 - WARNING - Connection error while submitting email to mail.mydomain.com. Reason: [Errno 101] Network unreachable

there’s your problem, can you hit the mail server from your container?

kiekar commented 5 months ago

root@serv2:/opt/mailcow-dockerized# ping mail.mydomain.com PING mail.mydomain.com (172.16.0.20) 56(84) bytes of data. 64 bytes from mail.mydomain.com (172.16.0.20): icmp_seq=1 ttl=64 time=0.039 ms 64 bytes from mail.mydomain.com (172.16.0.20): icmp_seq=2 ttl=64 time=0.040 ms --- mail.mydomain.com ping statistics --- 7 packets transmitted, 7 received, 0% packet loss, time 6141ms rtt min/avg/max/mdev = 0.039/0.056/0.068/0.011 ms root@serv2:/opt/mailcow-dockerized# ping 172.22.1.1 PING 172.22.1.1 (172.22.1.1) 56(84) bytes of data. 64 bytes from 172.22.1.1: icmp_seq=1 ttl=64 time=0.058 ms 64 bytes from 172.22.1.1: icmp_seq=2 ttl=64 time=0.035 ms

If I'm checking incorrectly let me know

grantbevis commented 5 months ago

Ping != mailflow but it's a start. I'd check you can access port 587 too, This is a user issue and nothing to do with borgmatic or the image so closing this.