Hi,
I am running spamassassin on a mail relay and it seems that
my procmail recipe is breaking aliases on the downstream
mail servers. I am running Postfix-1.1.7-2 on the mail relay
and it is configured to pass all mail to procmail for
filtering (this is done as a special user "filter") where
/home/filter/.spamassassin/user_prefs are set up with my
required hits. I am using a the global procmail recipe
/etc/procmailrc that for testing purposes contains

:0fw
| /usr/bin/spamc -f -s 102400

# if the above command fails exit with exitcode
:0e
{
    EXITCODE=$?
}
# If SPAM send a copy to collection AND pass it on
:0:
* ^X-Spam-Flag: YES
{
  :0 c
  | /usr/sbin/sendmail -oi -t

  :0
  /var/spool/mail/SPAM
}

# If no spam just send to recipient
:0
| /usr/sbin/sendmail -oi -t

The problem is that the "-t" option sends to the recipient
defined in the "To:" header and if it is outgoing mail from
a mail downstream mailserver and the "To:" is an alias such
as "admin@downstream-mailserver" where the real recipient is
out on the INTERNET the mail will be sent back to the
downstream mailserver causing a loop.  Does anyone know of a
solution other than running spamassassin only on mail
incoming from the INTERNET?

TIA

Pete



_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to