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

Debian Wiki debian-www at lists.debian.org
Wed Jun 5 09:12:51 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=4&rev2=5

Comment:
Remember to change the transport as well.

  Setting this up consist of these steps:
  
   1. Prepare the default exim4 config to use LDAP for user information.
+  1. Prepare the default exim4 config to deliver to /var/spool/mail in maildir format.
   1. Decide which DNS domain to use for public email (using example.com).
   1. Set up the exim4 configuration with the new DNS domain
   1. Change mail name for tjener to get valid addresses in outgoing email.
@@ -38, +39 @@

    transport = LOCAL_DELIVERY
  EOF
  chmod 644 /etc/exim4/conf.d/router/950_exim4_config_ldap_user
+ }}}
+ 
+ == Prepare the default exim4 config to deliver to /var/spool/mail in maildir format ==
+ 
+ The default maildir delivery put the emails in the users home directory.  To make sure email are delivered to /var/spool/mail/ where the IMAP server expect to find them, add a new transport for this, based on the 30_exim4-config_maildir_home transport.
+ 
+ {{{
+ cat > /etc/exim4/conf.d/transport/30_exim4-config_maildir_spool <<EOF
+ ### transport/30_exim4-config_maildir_spool
+ #################################
+ 
+ # Use this instead of mail_spool if you want to to deliver to Maildir in
+ # /var/spool/mail - change the definition of LOCAL_DELIVERY
+ #
+ maildir_spool:
+   debug_print = "T: maildir_spool for $local_part@$domain"
+   driver = appendfile
+   .ifdef MAILDIR_HOME_MAILDIR_LOCATION
+   directory = MAILDIR_HOME_MAILDIR_LOCATION
+   .else
+   directory = /var/spool/mail/$local_part/
+   .endif
+   .ifdef MAILDIR_HOME_CREATE_DIRECTORY
+   create_directory
+   .endif
+   .ifdef MAILDIR_HOME_CREATE_FILE
+   create_file = MAILDIR_HOME_CREATE_FILE
+   .endif
+   delivery_date_add
+   envelope_to_add
+   return_path_add
+   maildir_format
+   .ifdef MAILDIR_HOME_DIRECTORY_MODE
+   directory_mode = MAILDIR_HOME_DIRECTORY_MODE
+   .else
+   directory_mode = 0700
+   .endif
+   .ifdef MAILDIR_HOME_MODE
+   mode = MAILDIR_HOME_MODE
+   .else
+   mode = 0600
+   .endif
+   mode_fail_narrower = false
+   current_directory = /var/mail
+   group = mail
+ EOF
+ }}}
+ 
+ To use this transport, change the dc_localdelivery line in /etc/exim4/update-exim4.conf.conf to look like this:
+ {{{
+ dc_localdelivery='maildir_spool'
  }}}
  
  == Decide which DNS domain to use for public email ==



More information about the debian-edu-commits mailing list