Hi FrederikD,
I tried your solution, but it does not seem to work for me. I might be wrong with my configurations. My configurations are as below:
The configured transport in /opt/zimbra/postfix/conf/main.cf is:
Code:
transport_maps = proxy:ldap:/opt/zimbra/conf/ldap-transport.cf
In /opt/zimbra/postfix/conf/transport:
Code:
admin@iras-aks.com procmail-pipe
In /opt/zimbra/postfix/conf/master.cf:
Code:
procmail-pipe unix - n n - - pipe
flags= user=zimbra argv=/usr/bin/procmail /opt/zimbra/procmail/procmailrc I executed:
Code:
zmlocalconfig -e transport_maps=' hash:/opt/zimbra/postfix/conf/transport,proxy:ldap:/opt/zimbra/conf/ldap-transport.cf'
The content of the /opt/zimbra/procmail/procmailrc file are as below:
Code:
SHELL = /bin/sh
PATH=$HOME/bin:/usr/bin:/bin:.
DEFAULT=$MAILDIR
LOGFILE=.procmaillog
LOCKFILE=.procmaillock
VERBOSE=yes
:0
* From:.*admin.*
* To:.*roshan.*
* ! ^Content-Type:.*text/plain.*
{
:0B
* ^(Content-(Type|Disposition):.*|[ ]*(file)?)name=("[^"]*|[^]*)\..*
/dev/null
} I just want to block mail attachments from admin user to the user named roshan. The attachment blocking is not working.