Hi Mark,

>-----Original Message-----
>From: Mark Brosius

>Here is my goal:
>
>Internet -> SpamAssassin -> Exchange

I use a similar setup.


>created /usr/bin/postfixfilter (owned by spamfilter 
>permissions 755) which contains:       ACCORDING TO GREG 
>WEBSTER'S HOW TO
>  #!/bin/bash
>  /usr/bin/spamc | /usr/sbin/sendmail -i "$@"
>  exit $?

Ok, so when a message is received via the smtpd, the message runs the course
through the Postfix system (simplified) and is eventually piped to the above
shell script.  The script delivers the message to spamc and the returned
message is injected back into the Postfix system via the Postfix sendmail
application.


>created /etc/procmailrc which contains:                        
>                               I DON'T REMEMBER WHERE I GOT THIS
>  DROPPRIVS=yes
>  #Uncomment the following lines to allow for logging
>  #
>  #LOGFILE=/var/log/procmail
>  #VERBOSE=ON
>
>  # The condition line ensures that only messages smaller than 250 kB
>  # (250 * 1024 = 256000 bytes) are processed by SpamAssassin. 
>Most spam
>  # isn't bigger than a few k and working with big messages can bring
>  # SpamAssassin to its knees.
>
>  :0fw
>  * < 256000
>  | /usr/bin/spamc

I don't get this part.  You already sent the message to spamd, reinjected
the message into the Postfix system and, using local delivery and the
mailbox_command, used Procmail as the MDA.  However, you are telling to send
the message back to spamd via spamc.  I think what you really want to do is
relay to the Exchange server from here and not send it through spamc again.

Assuming that $@ still contains sender/recipient information you would look
at a Procmail recipe snip similar to:

SENDER = "<$1>"
SHIFT  = 1
:0 w
! -oi -f "$SENDER" "$@"




All that aside, if you are not planning on supporting individual user_prefs,
I would suggest that you consider making your relay a pure relay with no
local delivery.  The relay will have site-wide configuration without
individual spam mailboxes nor will it have individual user_prefs.  I don't
know what your specific goals are so I thought I would just throw out an
option for you.

--Larry



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to