G|N| Tux's lil' helper
Joined: 26 Feb 2004 Posts: 138 Location: Turnhout (Belgium)
|
Posted: Sun Jan 02, 2005 3:54 pm Post subject: invalid recipient syntax (spamassassin) [solved] |
|
|
on my server i have a mail-server runnig with postfix, fetchmail, procmail and spamassassin.
the setup for spamassassin is copied from a linuxmagazine but i think it contains an error:
when i send or receive a mail i get this error:
Code: |
This is the Postfix program at host thuis.lan.
I'm sorry to have to inform you that the message returned
below could not be delivered to one or more destinations.
For further assistance, please send mail to <postmaster>
If you do so, please include this problem report. You can
delete your own text from the message returned below.
The Postfix program
<-@scarlet.be>: invalid recipient syntax: "-@scarlet.be"
Reporting-MTA: dns; thuis.lan
Arrival-Date: Sun, 2 Jan 2005 15:45:55 +0100 (CET)
Final-Recipient: rfc822; -@scarlet.be
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; invalid recipient syntax: "-@scarlet.be"
|
my provider is scarlet.be.
here is the spamassassin script:
Code: | #!/bin/sh
#
#dit script wordt door de postfix en de spamd/spamc gebruikt van spamassassin
#
spamc="/usr/bin/spamc"
sendmail="/usr/sbin/sendmail -i"
spamuser="spamass"
#fout code 69: service unavailable
ERROR_CODE=69
#
#
cat | $spamc -f -u $spamuser 2>/dev/null \
| $sendmail "$@" || \
{ echo "Message content rejected";
exit $ERROR_CODE; }
exit 0
|
here is a line from /etc/postfix/master.cf for entering spamassassin
Code: |
smtp inet n - n - - smtpd -o content_filter=spamc_filter:dummy
|
and here is the last line of /etc/postfix/master.cf
Code: | spamc_filter unix - n n - 10 pipe user=spamass argv=/etc/postfix/spamc.sh -f ${sender} -- ${recipient} |
user spamass and group spamass exist.
edit: found what was wrong: before ${recipient} there have to be 2 -- instead of one |
|