Procmail not use per user config

SYSTEM INFORMATION
OS type and version Debian 11
Virtualmin version 7.5

After I moved to a new server and transferred the domain, procmail per user stopped working. All mail delivered to inbox.

postfix external command is: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME

/etc/procmail.ru:

LOGFILE=/var/log/procmail.log                                                                                                                                                                                                                                                                       
TRAP=/etc/webmin/virtual-server/procmail-logger.pl                                                                                                                                                                                                                                                  
:0wi                                                                                                                                                                                                                                                                                                
VIRTUALMIN=|/etc/webmin/virtual-server/lookup-domain.pl $LOGNAME                                                                                                                                                                                                                                    
EXITCODE=$?                                                                                                                                                                                                                                                                                         
:0                                                                                                                                                                                                                                                                                                  
* ?/bin/test "$EXITCODE" = "73"                                                                                                                                                                                                                                                                     
/dev/null                                                                                                                                                                                                                                                                                           
EXITCODE=0                                                                                                                                                                                                                                                                                          
:0                                                                                                                                                                                                                                                                                                  
* ?/bin/test "$VIRTUALMIN" != ""                                                                                                                                                                                                                                                                    
{                                                                                                                                                                                                                                                                                                   
INCLUDERC=/etc/webmin/virtual-server/procmail/$VIRTUALMIN                                                                                                                                                                                                                                           
}                                                                                                                                                                                                                                                                                                   
ORGMAIL=$HOME/Maildir/                                                                                                                                                                                                                                                                              
DEFAULT=$HOME/Maildir/                                                                                                                                                                                                                                                                              
DROPPRIVS=yes                                                                                                                                                                                                                                                                                       
:0                                                                                                                                                                                                                                                                                                  
$DEFAULT                                                                                                                                                                                                                                                                                            

Wrapper works and write log to /var/log/procmail.log

From kc2@example.com  Tue Mar 21 05:11:44 2023                                                                                                                                                                                                                                                        
 Subject: test                                                                                                                                                                                                                                                                                      
  Folder: /home/2de/homes/kevin/Maildir/new/1679371906.1474364_0.srv2.     2046                                                                                                                                                                                                                     
Time:1679371906 From:kc2@example.com To:kevin@xxxxx.com User:kevin.2de Size:2091 Dest:/home/2de/homes/kevin/Maildir/new/1679371906.1474364_0.srv2.xxxxx.com Mode:None

For some reason the local .procmail is not being used. And local procmail.log is empty

@coolparty,

You need to enable the feature at:

You are a great! Thank you! How I forget about this option…

@coolparty,

Glad I could assist :slight_smile:

I forget to toggle this on new servers all the time.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.