X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=etc%2Fsv%2Fpostfix%2Fconfigure.sh;fp=etc%2Fsv%2Fpostfix%2Fconfigure.sh;h=0000000000000000000000000000000000000000;hb=3ad6118386977e346d81042e924e5db9c5f15b7d;hp=7e9a7ff5b4b1440be3d5b8234a6a6c79cff84005;hpb=22f04b9fac14adc3d3fc98273ba126c3a51792c3;p=lhc%2Fateliers.git diff --git a/etc/sv/postfix/configure.sh b/etc/sv/postfix/configure.sh deleted file mode 100644 index 7e9a7ff..0000000 --- a/etc/sv/postfix/configure.sh +++ /dev/null @@ -1,105 +0,0 @@ -local hint="run before: ./vm_remote runit_configure postfix" -assert "sudo test -f /etc/postfix/$vm_domainname/smtpd/x509/key.pem" hint -#warn "lors de l'installation Debian, ne sélectionner aucune configuration pour postfix" -sudo debconf-set-selections <<-EOF - postfix postfix/main_mailer_type select No configuration - EOF -rule apt_get_install postfix procmail postfix-pcre -rule insserv_remove postfix -sudo install -m 640 -o root -g root /dev/stdin /etc/postfix/.gitignore <<-EOF - *.db - EOF -sudo install -d -m 771 -o root -g root \ - /etc/postfix/ \ - /etc/postfix/$vm_domainname/ \ - /etc/postfix/$vm_domainname/smtp \ - /etc/postfix/$vm_domainname/smtp/x509 \ - /etc/postfix/$vm_domainname/smtp/x509/ca \ - /etc/postfix/$vm_domainname/smtpd \ - /etc/postfix/$vm_domainname/smtpd/x509 \ - /etc/postfix/$vm_domainname/smtpd/x509/ca -sudo ln -fns \ - ../crt+crl.self-signed.pem \ - /etc/postfix/$vm_domainname/smtpd/x509/ca/crt.pem -sudo install -m 400 -o root -g root \ - "$tool"/var/pub/x509/smtpd.$vm_domainname/crt+crl.self-signed.pem \ - /etc/postfix/$vm_domainname/smtpd/x509/crt+crl.self-signed.pem -sudo install -m 400 -o root -g root \ - "$tool"/var/pub/x509/smtpd.$vm_domainname/crt.pem \ - /etc/postfix/$vm_domainname/smtpd/x509/crt.pem -sudo install -m 400 -o root -g root \ - "$tool"/var/pub/x509/smtpd.$vm_domainname/crt+ca.pem \ - /etc/postfix/$vm_domainname/smtpd/x509/crt+ca.pem -sudo install -m 400 -o root -g root \ - "$tool"/var/pub/x509/smtpd.$vm_domainname/crt+crl.self-signed.pem \ - /etc/postfix/$vm_domainname/smtpd/x509/crt+crl.self-signed.pem -sudo install -m 640 -o root -g root \ - "$tool"/etc/postfix/$vm_domainname/header_checks \ - /etc/postfix/$vm_domainname/header_checks -m4 \ - --define=VM_DOMAINNAME="$vm_domainname" \ - <"$tool"/etc/postfix/aliases.m4 | -sudo install -m 644 -o root -g root /dev/stdin \ - /etc/postfix/aliases -sudo newaliases -oA/etc/postfix/aliases -sudo ln -fns \ - /etc/postfix/aliases \ - /etc/aliases -cat /dev/stdin "$tool"/etc/postfix/main.cf <<-EOF | - mydomain = $vm_domainname - myorigin = \$mydomain - myhostname = $vm_hostname.\$mydomain - mail_name = \$myhostname - mydestination = $vm_hostname \$myhostname \$myorigin - EOF -sudo install -m 644 -o root -g root /dev/stdin \ - /etc/postfix/main.cf -sudo install -m 640 -o root -g root \ - "$tool"/etc/postfix/master.cf \ - /etc/postfix/master.cf -sudo install -m 640 -o root -g root \ - "$tool"/etc/postfix/$vm_domainname/smtp/x509/policy \ - /etc/postfix/$vm_domainname/smtp/x509/policy -sudo postmap hash:/etc/postfix/$vm_domainname/smtp/x509/policy -sudo install -m 640 -o root -g root \ - "$tool"/etc/postfix/$vm_domainname/smtp/header_checks \ - /etc/postfix/$vm_domainname/smtp/header_checks -sudo install -m 640 -o root -g root \ - "$tool"/etc/postfix/$vm_domainname/smtpd/sender_access \ - /etc/postfix/$vm_domainname/smtpd/sender_access -sudo postmap hash:/etc/postfix/$vm_domainname/smtpd/sender_access -sudo install -m 640 -o root -g root \ - "$tool"/etc/postfix/$vm_domainname/smtpd/client_blacklist \ - /etc/postfix/$vm_domainname/smtpd/client_blacklist -sudo postmap hash:/etc/postfix/$vm_domainname/smtpd/client_blacklist -sudo install -m 640 -o root -g root \ - "$tool"/etc/postfix/$vm_domainname/smtpd/relay_clientcerts \ - /etc/postfix/$vm_domainname/smtpd/relay_clientcerts -sudo postmap hash:/etc/postfix/$vm_domainname/smtpd/relay_clientcerts -sudo install -m 640 -o root -g root \ - "$tool"/etc/postfix/$vm_domainname/transport \ - /etc/postfix/$vm_domainname/transport -sudo postmap hash:/etc/postfix/$vm_domainname/transport -sudo install -m 640 -o root -g root \ - "$tool"/etc/postfix/$vm_domainname/virtual_alias \ - /etc/postfix/$vm_domainname/virtual_alias -sudo postmap hash:/etc/postfix/$vm_domainname/virtual_alias -sudo install -d -m 770 -o root -g root \ - /etc/skel/etc/mail \ - /etc/skel/var/cache/mail \ - /etc/skel/var/log/mail \ - /etc/skel/var/mail -sudo install -m 660 -o root -g root \ - "$tool"/etc/skel/etc/mail/delivery.procmailrc \ - /etc/skel/etc/mail/delivery.procmailrc -#-- SYMPA begin -sudo install -d -m 755 -o root -g root \ - /etc/sympa -#sudo -u sympa newaliases -oA/etc/mail/sympa/aliases -sudo install -m 640 -o "$sv" -g sympa \ - "$tool"/etc/sympa/transport \ - /etc/sympa/transport -sudo install -m 640 -o "$sv" -g sympa \ - "$tool"/etc/sympa/virtual_alias \ - /etc/sympa/virtual_alias -#-- SYMPA end