From 43c10dc008f514f8ff4c4d547a86c5a135bad160 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 28 Sep 2012 12:40:57 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20des=20entr=C3=A9es=20SRV=20pour=20les?= =?UTF-8?q?=20services=20de=20mail?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/var/service/tinydns/root/data/80srvEmail | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 root/etc/e-smith/templates/var/service/tinydns/root/data/80srvEmail diff --git a/root/etc/e-smith/templates/var/service/tinydns/root/data/80srvEmail b/root/etc/e-smith/templates/var/service/tinydns/root/data/80srvEmail new file mode 100644 index 0000000..b41cf16 --- /dev/null +++ b/root/etc/e-smith/templates/var/service/tinydns/root/data/80srvEmail @@ -0,0 +1,11 @@ +{ + +return "" unless (-x '/usr/bin/make-srv'); + +$OUT .= "# SRV Records for Email services\n"; +$OUT .= `/usr/bin/make-srv -service _imap._tcp.$DomainName -target $SystemName.$DomainName -port 143`; +$OUT .= `/usr/bin/make-srv -service _imaps._tcp.$DomainName -target $SystemName.$DomainName -port 993`; +$OUT .= `/usr/bin/make-srv -service _smtp._tcp.$DomainName -target $SystemName.$DomainName -port 25`; +$OUT .= `/usr/bin/make-srv -service _smtps._tcp.$DomainName -target $SystemName.$DomainName -port 465`; + +}