Compare commits

..

2 commits

Author SHA1 Message Date
eaf90b9a4a Mailman backups 2024-04-01 16:29:04 +02:00
3b94711c6a Add pushing to hrz allowlist 2024-04-01 16:28:57 +02:00

View file

@ -86,7 +86,7 @@ in {
# Get the mail addresses' local-part # Get the mail addresses' local-part
cut -d '@' -f 1 /var/lib/mailman/data/postfix_lmtp | grep -v '#' | grep "\S" > /tmp/addresses cut -d '@' -f 1 /var/lib/mailman/data/postfix_lmtp | grep -v '#' | grep "\S" > /tmp/addresses
# Post local-parts to HRZ # Post local-parts to HRZ
${pkgs.curl}/bin/curl https://www-cgi.hrz.tu-darmstadt.de/mail/whitelist-update.php -F emaildomain=${cfg.hostName} -F password=$(cat /run/secrets/allowlistPass) -F emailliste=@/tmp/addresses -F meldungen=voll ${pkgs.curl}/bin/curl https://www-cgi.hrz.tu-darmstadt.de/mail/whitelist-update.php -F emaildomain=${cfg.hostname} -F password=$(cat /run/secrets/allowlistPass) -F emailliste=@/tmp/addresses -F meldungen=voll
# Cleanup # Cleanup
rm /tmp/addresses rm /tmp/addresses
''; '';