Follow these steps 1. setup postfix normally 2. edit /etc/postfix/main.cf and add: content_filter=xamime 3. edit /etc/postfix/master.cf and add: xamime unix - n n - 10 pipe user=xamime argv=/usr/local/xamime/xamime /usr/local/xamime/xamime.cfg (${sender}) (${recipient}) localhost:10025 inet n - n - - smtpd -o content_filter= 4. Install Xamime 5. Create a group "xamime" and an user "xamime" (with it's primary group set as xamime) groupadd xamime useradd -g xamime xamime 6. Copy this special Xamime binary over the installed one 7. chown -R xamime.xamime /usr/local/xamime 8. postfix start ... should work... check for permissions problems etc.