[debian-edu-commits] [Debian Wiki] Update of "DebianEdu/HowTo/PublicMailServer(SMTP)" by PetterReinholdtsen

Debian Wiki debian-www at lists.debian.org
Tue Jun 4 05:51:41 UTC 2013


Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Debian Wiki" for change notification.

The "DebianEdu/HowTo/PublicMailServer(SMTP)" page has been changed by PetterReinholdtsen:
http://wiki.debian.org/DebianEdu/HowTo/PublicMailServer%28SMTP%29

Comment:
Start on recipe.  Still lots left.

New page:
= Recipe for making the SMTP/IMAP server a public mail server =

This recipe is based on Debian Edu Squeeze (6), and change the default mail server setup from using the Debian Edu configuration to using the default
exim4 configuration.

dpkg-reconfigure exim4-config

Note
that root email is now delivered to /var/mail/mail, not /var/mail/root
as before.  This is the new default for exim, and I did not try to
change it.

diff --git a/exim4/conf.d/router/950_exim4_config_ldap_user
+b/exim4/conf.d/router/950_exim4_config_ldap_user
new file mode 100644
index 0000000..319af8d
--- /dev/null
+++ b/exim4/conf.d/router/950_exim4_config_ldap_user
@@ -0,0 +1,11 @@
+# LDAP Server info
+LDAPBASE = dc=skole,dc=skolelinux,dc=no
+LDAPSERVER = ldap.intern
+
+ldap_user:
+  debug_print = "R: ldap_user for $local_part@$domain"
+  driver = accept
+  condition = ${if eq {}{${lookup ldap
+{ldap://LDAPSERVER/LDAPBASE?uid?sub?(uid=${local_part})}}}{no}{yes}}
+  cannot_route_message = Recipent ${local_part} unknown.
+  retry_use_local_part
+  transport = LOCAL_DELIVERY
diff --git a/exim4/exim4.conf b/exim4/exim4.conf
deleted file mode 120000
index ae09dd8..0000000
--- a/exim4/exim4.conf
+++ /dev/null
@@ -1 +0,0 @@
-/etc/exim4/exim-ldap-server-v4.conf
\ No newline at end of file
diff --git a/exim4/update-exim4.conf.conf b/exim4/update-exim4.conf.conf
index c9f3af6..ac68569 100644
--- a/exim4/update-exim4.conf.conf
+++ b/exim4/update-exim4.conf.conf
@@ -17,10 +17,10 @@
 # This is a Debian specific file

 dc_eximconfig_configtype='internet'
-dc_other_hostnames='intern;postoffice.intern'
+dc_other_hostnames='intern;postoffice.intern;domain.com;mail.domain.com'
 dc_local_interfaces=''
 dc_readhost=''
-dc_relay_domains=''
+dc_relay_domains=''
 dc_minimaldns='false'
 dc_relay_nets='10.0.0.0/8'
 dc_smarthost=''
@@ -28,4 +28,4 @@ CFILEMODE='644'
 dc_use_split_config='true'
 dc_hide_mailname=''
 dc_mailname_in_oh='true'
-dc_localdelivery='mail_spool'
+dc_localdelivery='maildir_home'
diff --git a/mailname b/mailname
index 635da68..5b1866c 100644
--- a/mailname
+++ b/mailname
@@ -1 +1 @@
-tjener.intern
+mail.domain.com



More information about the debian-edu-commits mailing list