next up previous contents Next: Commandes de shell pour Up: exim et sendmail. Previous: Routeurs.   Table des matières  

31.4 Un véritable serveur de courriel.

Le fichier de configuration d'un véritable serveur de courrier électronique diffère peu de celui vu à la section 31.3. Voici le fichier de configuration par défaut associé à exim-3.16:

#################### MAIN CONFIGURATION SETTING #################### 
# primary_hostname = 
# qualify_domain = 
# qualify_recipient = 
# local_domains = 
nerver_users = root 
# hosts_accept_relay = localhost 
# hosts_accept_relay = my.friends.host : 131.111.0.0/16 
# relay_domains = my.equivalent.domains : more.equivalent.domains 
host_lookup = 0.0.0.0/0 
# receiver_unqualified_hosts =  
# sender_unqualified_hosts = 
rbl_domains = rbl.maps.vix.com 
no_rbl_reject_recipients 
sender_reject = ``*@*.sex*.net:*@sex*.net'' 
host_reject = ``open-relay.spamming-site.com'' 
rbl_warn_header 
# rbl_domains = rbl.maps.vix.com:dul.maps.vix.com:relays.orbs.org 
# percent_hack_domains = * 
end 
#################### TRANSPORTS CONFIGURATION ###################### 
remote_smtp: 
   driver = smtp 
# procmail transport goes here <-- 
local_delivery: 
   driver = appendfile 
   file = /var/spool/mail/${local_part} 
   delivery_date_add 
   envelope_to_add 
   return_path_add 
   group = mail 
   mode = 0660 
address_pipe: 
   driver = pipe 
   return_output 
address_file: 
   driver = appendfile 
   delivery_date_add 
   envelope_to_add 
   return_path_add 
address_reply: 
   driver = autoreply 
end 
#################### DIRECTORS CONFIGURATION ###################### 
# routers because of a ``self=local'' (not used in this configuration). 
system_aliases: 
   driver = aliasfile 
   file = /etc/aliases 
   search_type = lsearch 
   user = mail 
   group = mail 
   file_transport = address_file 
   pipe_transport = address_pipe 
userforward: 
   driver = forwardfile 
   file = .forward 
   no_verify 
   no_expn 
   check_ancestor 
# filter 
   file_transport = address_file 
   pipe_transport = address_pipe 
   reply_transport = address_reply 
# procmail director goes here <-- 
localuser: 
   driver = localuser 
   transport = local_delivery 
end 
#################### ROUTERS CONFIGURATION ######################## 
# widen_domains = ``sales.mycompany.com:mycompany.com'' 
lookuphost 
   driver = lookuphost 
   transport = remote_smtp 
# widen_domains = 
literal: 
   driver = ipliteral 
   transport = remote_smtp 
end 
#################### RETRY CONFIGURATION ############################# 
*                    *           F,2h,15m; G,16h,1h,1.5; F,4d,8h 
end 
###################################################################### 


Concernant le support de procmail (voir procmail(1), procmailrc(6) et procmailex(5)), ajoutez simplement:

procmail: 
   driver = pipe 
   command = ``/usr/bin/procmail -Y -d ${local_part}'' 


après votre transport remote_smtp, et aussi:

procmail: 
   driver = localuser 
   transport = procmail 
   require_files = /usr/bin/procmail 


à la suite de votre redirecteur user_forward.


next up previous contents Next: Commandes de shell pour Up: exim et sendmail. Previous: Routeurs.   Table des matières  
1-01-2006