LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-27-2005, 02:11 AM   #1
ddaas
Member
 
Registered: Oct 2004
Location: Romania
Distribution: Ubuntu server, FreeBsd
Posts: 474

Rep: Reputation: 30
SpamAssassin + Sendmail Problem


Hello,
I am running spamassassin-3.0.3-1.1 and spamass-milter-0.3.0-1.1 on RHEL3. The MTA is sendmail-8.12.
The rule is that every spam is forwarded to spams@mydomain.com.
Everything works great and I am pleased with the results.

The problem is that sometimes I get the same spam forwarded 8 times to spams@mydomain.com and root gets the following error:
Code:
The original message was received at Mon, 26 Sep 2005 18:26:52 +0200
from root@localhost

   ----- The following addresses had permanent fatal errors -----
spams
    (reason: 554 5.4.6 Too many hops)
    (expanded from: spams)

   ----- Transcript of session follows -----
554 5.4.6 Too many hops 27 (25 max): from root via localhost, to spams
Why is this happening? Why is that " Too many hops 27 (25 max)"?

I think that is because of return-path header which is set to root@mydomain.com. As I know this header is put by the final MTA.
Could this be the problem? Could I just strip off this header?


Thanks a lot
 
Old 10-05-2005, 06:19 AM   #2
ddaas
Member
 
Registered: Oct 2004
Location: Romania
Distribution: Ubuntu server, FreeBsd
Posts: 474

Original Poster
Rep: Reputation: 30
please, I would really need some help.
It seems a loop or something. I can't figure out...
Every spam mail gets the following header:
Quote:
X-Envelope-From: <root@server.domain.de>
X-Envelope-To: <spams@server.domain.de>
Received: from server.domain.de (localhost.localdomain [127.0.0.1]) by server.domain.de;
Received: (from root@localhost) by server.domain.de (8.12.11/8.12.11/Submit) id j95An5Yt019008 for spams; Wed, 5 Oct 2005 12:49:05 +0200
At the end the spam collector account gets the same mail many times, every time with this header add on more time.

root gets a return mail:
Quote:
The original message was received at Wed, 5 Oct 2005 12:49:07 +0200
from root@localhost

----- The following addresses had permanent fatal errors -----
spams
(reason: 550 5.7.1 Blocked by SpamAssassin)
(expanded from: spams)

----- Transcript of session follows -----
... while talking to [127.0.0.1]:

>>>>>> DATA

<<< 550 5.7.1 Blocked by SpamAssassin
554 5.0.0 Service unavailable



Reporting-MTA: dns; server.domain.de
Arrival-Date: Wed, 5 Oct 2005 12:49:07 +0200

Final-Recipient: RFC822; spams@server.domain.de
Action: failed
Status: 5.7.1
Remote-MTA: DNS; [127.0.0.1]
Diagnostic-Code: SMTP; 550 5.7.1 Blocked by SpamAssassin
Last-Attempt-Date: Wed, 5 Oct 2005 12:53:10 +0200
 
  


Reply



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
spamassassin w/ procmail vs. spamassassin w/sendmail bleunuit Linux - Networking 1 08-01-2004 07:12 AM
sendmail and spamassassin varala_kanth Linux - Software 2 06-16-2004 04:42 PM
Sendmail & SpamAssassin Statistics Klaus Pforte Linux - Software 0 03-26-2004 10:34 AM
Rejecting Mail using Spamassassin and Sendmail granatica Linux - Software 1 07-09-2003 07:18 AM
spamassassin and sendmail marion Linux - Software 4 07-09-2003 04:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:43 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration