X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=vm_hosted;h=3fa1ea8a9dad7111b816c1d770195c495523bcf8;hp=34c28f59e9bc38848729635f63f77ed817e065d6;hb=86b63d97ad5491f85ba3b10cd406e963778bac1e;hpb=f59993b7864851b163d10764edc5b9d1d798b411 diff --git a/vm_hosted b/vm_hosted index 34c28f5..3fa1ea8 100755 --- a/vm_hosted +++ b/vm_hosted @@ -666,9 +666,15 @@ rule_postfix_configure () { sudo install -m 660 -o root -g root \ "$tool"/etc/postfix/$vm_domainname/header_checks \ /etc/postfix/$vm_domainname/header_checks - sudo install -m 664 -o root -g root \ - "$tool"/etc/postfix/aliases \ - /etc/postfix/aliases + sudo install -m 664 -o root -g root /dev/stdin \ + /etc/postfix/aliases <<-EOF + # See man 5 aliases for format + abuse: root + admin: root + contact: root + postmaster: root + root: $(getent group sudo | cut -f 4 -d : | tr , ' ') + EOF sudo newaliases -oA/etc/postfix/aliases cat /dev/stdin "$tool"/etc/postfix/main.cf <<-EOF | mydomain = $vm_domainname