LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to testing Internal Spam Assasssin Server? (https://www.linuxquestions.org/questions/linux-software-2/how-to-testing-internal-spam-assasssin-server-63429/)

BxBoy 06-03-2003 12:13 PM

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.

Pcghost 06-03-2003 12:36 PM

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.:D What good is spamassassin?

BxBoy 06-03-2003 12:48 PM

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.:D 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.

Pcghost 06-03-2003 12:52 PM

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.

BxBoy 06-03-2003 01:09 PM

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.

Pcghost 06-03-2003 01:23 PM

Sounds like something is not working correctly. Why is spamassassin running on port 783?

BxBoy 06-03-2003 02:04 PM

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?

Pcghost 06-04-2003 02:52 PM

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.

BxBoy 06-04-2003 03:32 PM

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.

BxBoy 06-04-2003 03:36 PM

worst off, I can't even get messages delivered to users on the local machine. :(

Pcghost 06-04-2003 04:46 PM

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 :-)

BxBoy 06-08-2003 12:44 AM

Quote:

Originally posted by Pcghost
I will get back to you soon on this issue. Please stand by :-)
I'll be standing by.. :-)

Pcghost 06-13-2003 12:55 PM

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..

BxBoy 06-13-2003 11:30 PM

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

Pcghost 06-17-2003 05:42 PM

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.. :D


All times are GMT -5. The time now is 02:36 AM.