Hi,
I am sure I posted this last Friday, but I have searched and searched and can't find it, so i've reached the conclusion i'm crazy.
First off, i'm very new to linux so it may be i'm being quite thick.
We have a dedicated server, which is running Fedora. We're using Postfix for our MTA, and also using MailDrop (for local delivery, right?).
I installed SpamAssassin last Friday and all appeared to be working well;
I created a test email account for myself on the server, and send myself some emails which were not flagged as spam (correct). I then sent myself some spam, which was correctly flagged as spam. All good.
However, with this new configuration as the sender of the email (be it spam, or legitimate) I recieved this error;
Code:
This is the mail system at host localhost.ccdigital.net.
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
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 attached returned message.
The mail system
<-@localhost.ccdigital.net> (expanded from <->): bad address syntax
Reporting-MTA: dns; localhost.ccdigital.net
X-Postfix-Queue-ID: 3363CDAC82
X-Postfix-Sender: rfc822; davecox@onlineworx.net
Arrival-Date: Fri, 10 Jul 2009 16:27:40 +0100 (BST)
Final-Recipient: rfc822; -@localhost.ccdigital.net
Original-Recipient: rfc822; -
Action: failed
Status: 5.1.3
Diagnostic-Code: X-Postfix; bad address syntax
Subject:
test
From:
Dave Cox <davecox@onlineworx.net>
Date:
Fri, 10 Jul 2009 16:27:39 +0100
To:
dave@ccdigital.net
Received:
by localhost.ccdigital.net (Postfix, from userid 1098) id 3363CDAC82; Fri, 10 Jul 2009 16:27:42 +0100 (BST)
X-Spam-Checker-Version:
SpamAssassin 3.2.5 (2008-06-10) on localhost.ccdigital.net
X-Spam-Level:
*
X-Spam-Status:
No, score=1.6 required=5.0 tests=AWL,RDNS_DYNAMIC, TVD_SPACE_RATIO autolearn=no version=3.2.5
Received:
from localhost.onlineworx.org.uk (server213-171-222-217.live-servers.net [213.171.222.217]) by localhost.ccdigital.net (Postfix) with ESMTP id 043B6DAC80 for <dave@ccdigital.net>; Fri, 10 Jul 2009 16:27:40 +0100 (BST)
Received:
from [192.168.1.112] (host217-41-5-236.in-addr.btopenworld.com [217.41.5.236]) by localhost.onlineworx.org.uk (Postfix) with ESMTP id D662455FF1 for <dave@ccdigital.net>; Fri, 10 Jul 2009 16:27:39 +0100 (BST)
Message-ID:
<4A575DEB.6070109@onlineworx.net>
User-Agent:
Thunderbird 2.0.0.22 (Windows/20090605)
MIME-Version:
1.0
Content-Type:
text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding:
7bit
test
So whilst (as the recipient) I am definitely receiving the emails, the sender is receiving an error report saying it wasn't delivered.
I followed
this guide to install spam assassin.
Here is my updated version of /etc/postfix/master.cf
Code:
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd
-o content_filter=spamfilter:dummy
#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
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
# some comments
maildrop unix - n n - - pipe
flags=DRhu user=daemon:mail argv=/usr/bin/maildrop -d ${recipient}
#
# The Cyrus deliver program has changed incompatibly, multiple times.
#
old-cyrus unix - n n - - pipe
flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
cyrus unix - n n - - pipe
user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail.postfix ($recipient)
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
spamfilter unix - n n - - pipe
flags=Rq user=spamfilter argv=/usr/local/bin/spamfilter.sh -f ${sender} - - ${recipient}
Thanks for any help you can offer!
Dave C