OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
(no subject)

From: Yoda Woda (yodawodayahoo.com)
Date: Fri Oct 19 2007 - 09:39:08 CDT


Here is my scenario: I have postfix and spamassassin installed in a gateway machine. Postfix accepts incoming messages, pipes them to spamassassin for scoring, which then pipes them back to postfix to be relayed to another machine. This work fine for us
   
  What I am trying to do now is to have spamassassin reject a message (say if the score is above 5) before it is re-injected back to postfix for relay. How can I accomplish this. Here is my master.cf:
   
    #smtp inet n - n - - smtpd
  smtp inet n - n - - smtpd -o content_filter=spam
  spam unix - n n - - pipe user=spamd argv=/usr/bin/spamc -f -e /usr/sbin/sendmail.postfix -oi -f ${sender} ${recipient}
  #smtps inet n - n - - smtpd
  # -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
  #submission inet n - n - - smtpd
  # -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes -o smtpd_etrn_restrictions=reject
  #628 inet n - n - - qmqpd
  pickup fifo n - n 60 1 pickup
  cleanup unix n - n - 0 cleanup
  qmgr fifo n - n 300 1 qmgr
  #qmgr fifo n - n 300 1 oqmgr
  #tlsmgr fifo - - n 300 1 tlsmgr
  rewrite unix - - n - - trivial-rewrite
  bounce unix - - n - 0 bounce
  defer unix - - n - 0 bounce
  trace unix - - n - 0 bounce
  verify unix - - n - 1 verify
  flush unix n - n 1000? 0 flush
  proxymap unix - - n - - proxymap
  smtp unix - - n - - smtp
  relay unix - - n - - smtp
  # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
  showq unix n - n - - showq
  error unix - - n - - error
  #local unix - n n - - local
  virtual unix - n n - - virtual
  lmtp unix - - n - - lmtp
  anvil unix - - n - 1 anvil

 __________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com