postfix compatability?
Peter Bates
Peter.Bates at LSHTM.AC.UK
Tue Mar 25 10:00:45 GMT 2003
Hello there...
Remember, the logs are your friends.
>now i get the following problems when trying to send an email to the
>mailserver
>Mar 24 21:59:44 gateway postfix/pipe[30344]: fatal: get_service_attr:
>unknown username: filter
my master.cf file is as follows :-
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (50)
#
==========================================================================
smtp inet n - y - - smtpd -o
content_filter=filter:
<snip>
filter unix - n n - - pipe
user=filter argv=/usr/local/spoolerator/enspool.pl -f ${sender}
-- ${recipient}
Firstly, I think you need to add a user 'filter', as the content_filter actually runs as that user (see user=x in lines above)... secondly, same problem I had, you probably need to change the chroot from 'y' to 'n' on smtp as otherwise Postfix doesn't actually recognise that user, or really run the script at all...
Hence:
smtp inet n - n - - smtpd -o
content_filter=filter:
... and that's pretty much what I have working fine on a box here.
As Leland said , it's those lines in master.cf, and then a bit of changing of the MailScanner configuration.
--------------------------------------------------------------------------------------------------->
Peter Bates, Systems Support Officer, Network Support Team.
London School of Hygiene & Tropical Medicine.
Telephone:0207-958 8353 / Fax: 0207- 636 9838
More information about the MailScanner
mailing list