Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

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


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;

This is the mail system at host

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

<> (expanded from <->): bad address syntax

Reporting-MTA: dns;
X-Postfix-Queue-ID: 3363CDAC82
X-Postfix-Sender: rfc822;
Arrival-Date: Fri, 10 Jul 2009 16:27:40 +0100 (BST)

Final-Recipient: rfc822;
Original-Recipient: rfc822; -
Action: failed
Status: 5.1.3
Diagnostic-Code: X-Postfix; bad address syntax

Dave Cox <>
Fri, 10 Jul 2009 16:27:39 +0100
by (Postfix, from userid 1098) id 3363CDAC82; Fri, 10 Jul 2009 16:27:42 +0100 (BST)
SpamAssassin 3.2.5 (2008-06-10) on
No, score=1.6 required=5.0 tests=AWL,RDNS_DYNAMIC, TVD_SPACE_RATIO autolearn=no version=3.2.5
from ( []) by (Postfix) with ESMTP id 043B6DAC80 for <>; Fri, 10 Jul 2009 16:27:40 +0100 (BST)
from [] ( []) by (Postfix) with ESMTP id D662455FF1 for <>; Fri, 10 Jul 2009 16:27:39 +0100 (BST)
Thunderbird (Windows/20090605)
text/plain; charset=ISO-8859-1; format=flowed

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/
# 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 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/ -f ${sender} - - ${recipient}
Thanks for any help you can offer!
Dave C
Old 07-14-2009, 05:14 AM   #2
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/

I'll go play around with some settings!


I found this information on Maildrop / SpamAssassin, and it seems to be what I want:

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 05:46 AM. Reason: Updated details


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 07:25 PM
qmail: how can I block emails which have no sender address? hamish Linux - Networking 0 08-16-2006 05:16 PM
Undelivered Mail Returned to Sender - Block Email henryvl Linux - Networking 1 02-15-2006 05:31 AM
SpamAssassin/Procmail to del blacklisted emails tomac Linux - General 1 07-11-2004 03:31 AM
Emails sent out have no sender linuxboy69 Linux - Software 3 06-22-2004 10:26 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:11 PM.

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