LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-03-2003, 01:13 PM   #1
BxBoy
Member
 
Registered: Oct 2002
Location: New York City (nYc)
Distribution: Red Hat Enterprise 3
Posts: 93

Rep: Reputation: 15
How to testing Internal Spam Assasssin Server?


Hi, I recently setup an internal Spam Assassin server, now I would like to test it out. The only problem is that it's internal and behind a firewall, so I can't send mail from outside to test it.

Is there any other way I can test it?

Thanks.
 
Old 06-03-2003, 01:36 PM   #2
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Real Washington
Distribution: Debian, Android
Posts: 1,819

Rep: Reputation: 46
I would connect a machine to the external interface of the spamassassin/postfix server and send mail at it that way. Basically squeeze a machine between it and the outer firewall. Just out of curiousity, what good is a mail server that can't recieve incoming mail? Having it isolated from the Internet is the best spam filter ever, no mail gets through. What good is spamassassin?
 
Old 06-03-2003, 01:48 PM   #3
BxBoy
Member
 
Registered: Oct 2002
Location: New York City (nYc)
Distribution: Red Hat Enterprise 3
Posts: 93

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Pcghost
I would connect a machine to the external interface of the spamassassin/postfix server and send mail at it that way. Basically squeeze a machine between it and the outer firewall. Just out of curiousity, what good is a mail server that can't recieve incoming mail? Having it isolated from the Internet is the best spam filter ever, no mail gets through. What good is spamassassin?
It's for testing purposes right now. We need to assure it is working before we can open it up to the outside world.

I thought it might be possible to test it via TELNET'ing to it or passing a test file to it.
 
Old 06-03-2003, 01:52 PM   #4
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Real Washington
Distribution: Debian, Android
Posts: 1,819

Rep: Reputation: 46
If telnet is running on the machine and port 25 is open, you should get a helo response from the mail server when you telnet to the mail servers ip address with 25 appended to it.
 
Old 06-03-2003, 02:09 PM   #5
BxBoy
Member
 
Registered: Oct 2002
Location: New York City (nYc)
Distribution: Red Hat Enterprise 3
Posts: 93

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Pcghost
If telnet is running on the machine and port 25 is open, you should get a helo response from the mail server when you telnet to the mail servers ip address with 25 appended to it.
[root@imp Error-0.15]# telnet localhost 783
Trying 127.0.0.1...
Connected to imp (127.0.0.1).
Escape character is '^]'.
HELO
SPAMD/1.0 76 Bad header line: HELO
Connection closed by foreign host.

Last edited by BxBoy; 06-03-2003 at 02:13 PM.
 
Old 06-03-2003, 02:23 PM   #6
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Real Washington
Distribution: Debian, Android
Posts: 1,819

Rep: Reputation: 46
Sounds like something is not working correctly. Why is spamassassin running on port 783?
 
Old 06-03-2003, 03:04 PM   #7
BxBoy
Member
 
Registered: Oct 2002
Location: New York City (nYc)
Distribution: Red Hat Enterprise 3
Posts: 93

Original Poster
Rep: Reputation: 15
That's the default port, but I found out that you pass it arguments with the spamc client (and not connect directly to it).

What I want to do now is integrate it as the middle man, to handle the spam and then relay it to the main mail server.

Any ideas? suggestions?
 
Old 06-04-2003, 03:52 PM   #8
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Real Washington
Distribution: Debian, Android
Posts: 1,819

Rep: Reputation: 46
Oddly enough my boss has me doing this exact same setup. Using postfix/spamassassin as a mail gateway for our Domino server on our LAN. I will catch up to where you are in a day or so (hopefully) and will check back in. If you solve this before then please post what you did to fix it.
 
Old 06-04-2003, 04:32 PM   #9
BxBoy
Member
 
Registered: Oct 2002
Location: New York City (nYc)
Distribution: Red Hat Enterprise 3
Posts: 93

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Pcghost
Oddly enough my boss has me doing this exact same setup. Using postfix/spamassassin as a mail gateway for our Domino server on our LAN. I will catch up to where you are in a day or so (hopefully) and will check back in. If you solve this before then please post what you did to fix it.
Great coincidence! In any event, please get back to me if you are successful, my BOSS is also demanding to see it in action (something I can't give him) .

I set it up, but for some reason now, it's not deliverying the mail to the intended host. I think I setup the SpamAssassin part, the issue now is setting up Postfix (which I am having a tough time with).

If you have any IM, that would be great, we can discuss this in realtime.
 
Old 06-04-2003, 04:36 PM   #10
BxBoy
Member
 
Registered: Oct 2002
Location: New York City (nYc)
Distribution: Red Hat Enterprise 3
Posts: 93

Original Poster
Rep: Reputation: 15
worst off, I can't even get messages delivered to users on the local machine.
 
Old 06-04-2003, 05:46 PM   #11
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Real Washington
Distribution: Debian, Android
Posts: 1,819

Rep: Reputation: 46
The transport map is where you list the ip addresses of the machines you want specific domains mail to be sent to. And don't forget anytime you make a change to the postfix files you have to rehash the databases.

newaliases
postmap transport
postmap reciept_canonical
postmap aliases

and so forth..

I will get back to you soon on this issue. Please stand by :-)
 
Old 06-08-2003, 01:44 AM   #12
BxBoy
Member
 
Registered: Oct 2002
Location: New York City (nYc)
Distribution: Red Hat Enterprise 3
Posts: 93

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Pcghost
I will get back to you soon on this issue. Please stand by :-)
I'll be standing by.. :-)
 
Old 06-13-2003, 01:55 PM   #13
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Real Washington
Distribution: Debian, Android
Posts: 1,819

Rep: Reputation: 46
Still working on this :-( God there is very little support in the Linux community for postfix with spam filtering. I guess nobody out the other than us is doing this. I keep getting close but am running into file permission problems.. Still working on it though..
 
Old 06-14-2003, 12:30 AM   #14
BxBoy
Member
 
Registered: Oct 2002
Location: New York City (nYc)
Distribution: Red Hat Enterprise 3
Posts: 93

Original Poster
Rep: Reputation: 15
Yep, it sure seems that way, and trying to find documentation/tutorials with no success either. But don't dispair.. keep trying and maybe we can come up with something..

keep me updated..

bxboy@bxboy.com
 
Old 06-17-2003, 06:42 PM   #15
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Real Washington
Distribution: Debian, Android
Posts: 1,819

Rep: Reputation: 46
Ok. I got my mail server/spam filter working today. Here is how I did it.

Postfix and Spamassassin installed in their default locations. I found a link to a configurator for spamassassin's local.cf file at the spamassassin website under documentation. With that done I followed these directions almost exactly (changed only one thing)

http://sourceforge.net/mailarchive/m...msg_id=5123097

The only thing I had to change (because I don't run sendmail on this machine was the entry in the postfixfilter script. Where it says sendmail replace that with sendmail.postfix. Remember to set the permissions on the files exactly as the instructions say to or things go wrong..

Any questions you have I will try to answer based on this wonderful experience..
 
  


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
Mail Server / Spam Filter KevinGuy Linux - General 7 10-16-2004 08:18 AM
spam filter for qmail server? maxut Linux - Networking 4 10-11-2004 12:05 PM
Highjacked my Server. SPAM BOT cxel91a Linux - Software 0 08-14-2004 07:39 PM
ISP server Filtering spam mail foweja Linux - General 4 10-21-2003 07:02 PM
Spam + Help + Server kith Linux - General 2 10-03-2003 10:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration