[exim-dev] [Bug 2159] using -f "" AND multiple .forward file…

トップ ページ
このメッセージを削除
このメッセージに返信
著者: admin
日付:  
To: exim-dev
題目: [exim-dev] [Bug 2159] using -f "" AND multiple .forward files causes frozen mail
https://bugs.exim.org/show_bug.cgi?id=2159

--- Comment #4 from Graeme Vetterlein <graeme.exim4@???> ---
Jeremy I suspect you may be onto something. Looks like I made some edits there
in 2014 (GPV is my mark)

AFYI: I use addresses like graeme.bugzilla@??? and
graeme.foobar@???. These should
end up in "graeme" mailbox


:/etc/exim4/conf.d/router# ls -lart /etc/exim4/conf.d/router                    
total 68                                                                        
-rw-r--r-- 1 root root  472 Sep 23  2012 mmm_mail4root                          
-rw-r--r-- 1 root root  402 Sep 23  2012 900_exim4-config_local_user~           
-rw-r--r-- 1 root root  907 Sep 23  2012 850_exim4-config_lowuid                
-rw-r--r-- 1 root root  323 Sep 23  2012 800_exim4-config_maildrop              
-rw-r--r-- 1 root root  403 Sep 23  2012 700_exim4-config_procmail              
-rw-r--r-- 1 root root  878 Sep 23  2012 500_exim4-config_hubuser               
-rw-r--r-- 1 root root 1594 Sep 23  2012 400_exim4-config_system_aliases        
-rw-r--r-- 1 root root  607 Sep 23  2012 300_exim4-config_real_local            
-rw-r--r-- 1 root root 2974 Sep 23  2012 200_exim4-config_primary               
-rw-r--r-- 1 root root  556 Sep 23  2012 150_exim4-config_hubbed_hosts          
-rw-r--r-- 1 root root  648 Sep 23  2012 100_exim4-config_domain_literal        
-rw-r--r-- 1 root root  514 Sep 23  2012 00_exim4-config_header                 
drwxr-xr-x 9 root root 4096 Nov 28  2012 ..                                     
d--------- 2 root root 4096 Jan  2  2014 .SAFE                                  
-rw-r--r-- 1 root root 2743 Jan  2  2014 600_exim4-config_userforward           
-rw-r--r-- 1 root root 1040 Jan  2  2014 900_exim4-config_local_user            
drwxr-xr-x 3 root root 4096 Mar 19 15:31 .                                      
:/etc/exim4/conf.d/router# pr -n -l1000 -f
/etc/exim4/conf.d/router/600_exim4-config_userforward                           



2014-01-02 20:56 /etc/exim4/conf.d/router/600_exim4-config_userforward Page 1


    1                                                                           
    2   ### router/600_exim4-config_userforward                                 
    3   #################################                                       
    4                                                                           
    5   # This router handles forwarding using traditional .forward files in
users'                                                       
    6   # home directories. It also allows mail filtering with a forward file   
    7   # starting with the string "# Exim filter" or "# Sieve filter".         
    8   #                                                                       
    9   # The no_verify setting means that this router is skipped when Exim is  
   10   # verifying addresses. Similarly, no_expn means that this router is
skipped if                                                    
   11   # Exim is processing an EXPN command.                                   
   12   #                                                                       
   13   # The check_ancestor option means that if the forward file generates an 
   14   # address that is an ancestor of the current one, the current one gets  
   15   # passed on instead. This covers the case where A is aliased to B and B 
   16   # has a .forward file pointing to A.                                    
   17   #                                                                       
   18   # The four transports specified at the end are those that are used when 
   19   # forwarding generates a direct delivery to a directory, or a file, or
to a                                                       
   20   # pipe, or sets up an auto-reply, respectively.                         
   21   #                                                                       
   22   #                                                                       
   23   # GPV 2.Jan14 - After a full day of study decided this would work:      
   24   #                                                                       
   25   # Addresses like graeme.somthing@??? should end up in local
delivery to 'graeme'                                       
   26   # because domains have been stripped (we are at local delivery stage)
and we now say the ".something"                             
   27   # is an option suffix, so if it's there it gets elided, otherwise we
are happy to work with it not there.                         
   28   #                                                                       
   29   # NB see example in docs: 49.8 Multiple user mailboxes NB needs to be
in both :                                                   
   30   # 600_exim4-config_userforward                                          
   31   # 900_exim4-config_local_user                                           
   32   #                                                                       
   33   # As we might use the same trick with or without a .forward file        
   34   #                                                                       
   35   userforward:                                                            
   36     debug_print = "R: GPV userforward for $local_part@$domain"            
   37     local_part_suffix=.*                                                  
   38     local_part_suffix_optional                                            
   39     driver = redirect                                                     
   40     domains = +local_domains                                              
   41     check_local_user                                                      
   42     file = $home/.forward                                                 
   43     require_files = $local_part:$home/.forward                            
   44     no_verify                                                             
   45     no_expn                                                               
   46     check_ancestor                                                        
   47     allow_filter                                                          
   48     forbid_smtp_code = true                                               
   49     directory_transport = address_directory                               
   50     file_transport = address_file                                         
   51     pipe_transport = address_pipe                                         
   52     reply_transport = address_reply                                       
   53     skip_syntax_errors                                                    
   54     syntax_errors_to = real-$local_part@$domain                           
   55     syntax_errors_text = \                                                
   56       This is an automatically generated message. An error has\n\         
   57       been found in your .forward file. Details of the error are\n\       
   58       reported below. While this error persists, you will receive\n\      
   59       a copy of this message for every message that is addressed\n\       
   60       to you. If your .forward file is a filter file, or if it is\n\      
   61       a non-filter file containing no valid forwarding addresses,\n\      
   62       a copy of each incoming message will be put in your normal\n\       
   63       mailbox. If a non-filter file contains at least one valid\n\        
   64       forwarding address, forwarding to the valid addresses will\n\       
   65       happen, and those will be the only deliveries that occur.           
   66                                                                


:/etc/exim4/conf.d/router# pr -n -l1000 -f
/etc/exim4/conf.d/router/900_exim4-config_local_user                            



2014-01-02 20:57 /etc/exim4/conf.d/router/900_exim4-config_local_user Page 1    



    1                                                                           
    2   ### router/900_exim4-config_local_user                                  
    3   #################################                                       
    4                                                                           
    5   # This router matches local user mailboxes. If the router fails, the
error                                                        
    6   # message is "Unknown user".                                            
    7   #                                                                       
    8   # GPV 2.Jan14 - After a full day of study decided this would work:      
    9   #                                                                       
   10   # Addresses like graeme.somthing@??? should end up in local
delivery to 'graeme'                                       
   11   # because domains have been stripped (we are at local delivery stage)
and we now say the ".something"                             
   12   # is an option suffix, so if it's there it gets elided, otherwise we
are happy to work with it not there.                         
   13   #                                                                       
   14   # NB see example in docs: 49.8 Multiple user mailboxes NB needs to be
in both :                                                   
   15   # 600_exim4-config_userforward                                          
   16   # 900_exim4-config_local_user                                           
   17   #                                                                       
   18   # As we might use the same trick with or without a .forward file        
   19                                                                           
   20                                                                           
   21   local_user:                                                             
   22     debug_print = "R: GPV local_user for $local_part@$domain"             
   23     local_part_suffix=.*                                                  
   24     local_part_suffix_optional                                            
   25     driver = accept                                                       
   26     domains = +local_domains                                              
   27     check_local_user                                                      
   28     local_parts = ! root                                                  
   29     transport = LOCAL_DELIVERY                                            
   30     cannot_route_message = Unknown user                                   
:/etc/exim4/conf.d/router#


--
You are receiving this mail because:
You are on the CC list for the bug.