LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-14-2009, 03:43 AM   #1
davecox
LQ Newbie
 
Registered: Jun 2009
Posts: 12

Rep: Reputation: 0
Installed SpamAssassin, all rec'd emails now being returned to sender


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
 
Old 07-14-2009, 04:14 AM   #2
davecox
LQ Newbie
 
Registered: Jun 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Me again!

I'm starting to think the problem is because I have Postfix calling both SpamAssassin and Maildrop. Do I need to somehow configure Maildrop to call SpamAssassin and then remove some (or all) of the lines I added to /etc/postfix/master.cf?

I'll go play around with some settings!

---

I found this information on Maildrop / SpamAssassin, and it seems to be what I want:
http://wiki.apisnetworks.com/index.p...aildrop_filter

However, I can't even find the file/folder called maildroprc - the only file I can find is a binary file /usr/bin/maildrop.

I'm quite stuck, alas.

Last edited by davecox; 07-14-2009 at 04:46 AM. Reason: Updated details
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change sender address of outgoing emails in Sendmail ALInux Linux - Server 8 05-10-2012 06:25 PM
qmail: how can I block emails which have no sender address? hamish Linux - Networking 0 08-16-2006 04:16 PM
Undelivered Mail Returned to Sender - Block Email henryvl Linux - Networking 1 02-15-2006 04:31 AM
SpamAssassin/Procmail to del blacklisted emails tomac Linux - General 1 07-11-2004 02:31 AM
Emails sent out have no sender linuxboy69 Linux - Software 3 06-22-2004 09:26 AM


All times are GMT -5. The time now is 12:24 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration