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

Debian Wiki debian-www at lists.debian.org
Tue Jun 4 07:04:52 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?action=diff&rev1=2&rev2=3

Comment:
Complete the howto.

   1. Switch to generated contiguration instead of the Debian Edu provided configuration.
   1. Add port forwarding in the gateway, allowing connections from the outside for port 25 to make it to tjener.intern
   1. Update DNS, add MX entry for the selected DNS domain.
- 
- 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
@@ -42, +40 @@

  chmod 644 /etc/exim4/conf.d/router/950_exim4_config_ldap_user
  }}}
  
+ == Decide which DNS domain to use for public email ==
- 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
  
+ You need to decide which DNS domain to use, and the DNS name under this domain to give to tjener.intern.  In this recipe, I have used example.com as the DNS domain, and postoffice.example.com as the DNS name for tjener.intern.
-  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
  
+ == Set up the exim4 configuration with the new DNS domain ==
+ 
+ Run {{{dpkg-reconfigure exim4-config}}} as root and add example.com and postoffice.example.com to the list of names to accept mail to.
+ 
+ Set 10.0.0.0/8 as the subnet to accept relaying for.  Set maildir as the form of delivery.
+ 
+ == Change mail name for tjener to get valid addresses in outgoing email ==
+ 
+ The mail name is in /etc/mailname.  Replace the content with postoffice.example.com.
+ 
+ {{{
+ echo postoffice.example.com > /etc/mailname
+ }}}
+ 
+ == Switch to generated contiguration instead of the Debian Edu provided configuration ==
+ 
+ By default, exim will read the generated configuration in /var/ unless /etc/exim4/exim4.conf exist.  Just remove the symlink /etc/exim4/exim4.conf and restart exim4 to use the generated configuration.
+ 
+ {{{
+ rm /etc/exim4/exim4.conf
+ service exim4 restart
+ }}}
+ 
+ 
+ == dd port forwarding in the gateway, allowing connections from the outside for port 25 to make it to tjener.intern ==
+ 
+ How this is done depend on the brand of your gateway.
+ 
+ == Update DNS, add MX entry for the selected DNS domain ==
+ 
+ How this is done depend on your DNS setup.  The example.com MX record should point to the external IP address of your gateway.
+ 



More information about the debian-edu-commits mailing list