diff --git a/root/etc/e-smith/events/actions/ipasserelle-mailman-init-domain b/root/etc/e-smith/events/actions/ipasserelle-lists-init-domain similarity index 70% rename from root/etc/e-smith/events/actions/ipasserelle-mailman-init-domain rename to root/etc/e-smith/events/actions/ipasserelle-lists-init-domain index b40e9ab..8b7cd98 100644 --- a/root/etc/e-smith/events/actions/ipasserelle-mailman-init-domain +++ b/root/etc/e-smith/events/actions/ipasserelle-lists-init-domain @@ -36,8 +36,9 @@ if (!$vhost){ $d->new_record("listes.$domain",{ type => 'domain', Content => 'Primary', - Description => "Mailinglist", + Description => "Mailinglist (Mailman)", Nameservers => 'internet', + Removable => 'yes', }); unless ( system("/sbin/e-smith/signal-event", "domain-create", "listes.$domain") == 0 ){ @@ -45,3 +46,22 @@ if (!$vhost){ } } +$vhost = $d->get("news.$domain"); + +if (!$vhost){ + $d->new_record("news.$domain",{ + type => 'domain', + Content => 'Primary', + Description => "Listes de diffusions (PHPList)", + Nameservers => 'internet', + TemplatePath => 'WebAppVirtualHost', + DocumentRoot => '/usr/share/phplist/www', + Removable => 'yes', + Authentication => 'LemonLDAP' + }); + + unless ( system("/sbin/e-smith/signal-event", "domain-create", "news.$domain") == 0 ){ + die "Failed to create domain news.$domain\n"; + } +} +