OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
filter not being called

From: Albert Chin (postfix-usersmlists.thewrittenword.com)
Date: Sun Jan 27 2008 - 21:51:25 CST


I'm trying to configure Postfix 2.4.6 on FreeBSD 6.3-PRERELEASE to run
dspam for incoming mail. `postconf -n' output is attached. I've added
the following to master.cf:
  dspam unix - n n - - pipe
    flags=Ru user=dspam:dspam argv=/opt/TWWfsw/bin/dspam --client --deliver=innocent,spam --user ${recipient} -i -f $sender -- $recipient
  mldspam unix - n n - - pipe
    flags=Ru user=dspam argv=/opt/TWWfsw/bin/dspam --client --deliver=innocent,spam --user mlists -i -f $sender -- $recipient
  localhost:10025 inet n - n - - smtpd
    -o content_filter=
    -o mynetworks=127.0.0.0/8
    -o receive_override_options=no_unknown_recipient_checks
    -o smtpd_authorized_xforward_hosts=127.0.0.0/8
    -o smtpd_client_restrictions=
    -o smtpd_helo_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,reject

/ext/postfix/dspam-filter-access is:
  /mlists.thewrittenword.com/ FILTER mldspam:
  /tchinalists.il.thewrittenword.com/ FILTER dspam:
  /./ FILTER dspam:

maillog tells me (with debug_peer_list output):
  Jan 28 03:41:15 <2.6> maetel postfix/smtpd[70927]: dict_pcre_lookup: /ext/postfix/dspam-filter-access: tchinalists.il.thewrittenword.com
  Jan 28 03:41:15 <2.6> maetel postfix/smtpd[70927]: check_table_result: pcre:/ext/postfix/dspam-filter-access FILTER dspam:dspam tchinalists.il.thewrittenword.com
  Jan 28 03:41:15 <2.6> maetel postfix/smtpd[70927]: NOQUEUE: filter: RCPT from rom.il.thewrittenword.com[192.168.1.13]: <tchinalists.il.thewrittenword.com>: Recipient address triggers FILTER dspam:dspam; from=<chinathewrittenword.com> to=<tchinalists.il.thewrittenword.com> proto=SMTP helo=<rom.il.thewrittenword.com>
  Jan 28 03:41:15 <2.6> maetel postfix/smtpd[70927]: generic_checks: name=check_recipient_access status=0
  Jan 28 03:41:15 <2.6> maetel postfix/smtpd[70927]: generic_checks: name=reject
  Jan 28 03:41:15 <2.6> maetel postfix/smtpd[70927]: NOQUEUE: reject: RCPT from rom.il.thewrittenword.com[192.168.1.13]: 554 5.7.1 <tchinalists.il.thewrittenword.com>: Recipient address rejected: Access denied; from=<chinathewrittenword.com> to=<tchinalists.il.thewrittenword.com> proto=SMTP helo=<rom.il.thewrittenword.com>
  
/opt/TWWfsw/bin/dspam is never being run because I replaced it with a
shell script that writes to a file and the file is never created.

Any ideas on why the `dspam' filter isn't being run?

--
albert chin (chinathewrittenword.com)