Hmailserver with ASSP setup - Help

Use this forum if you have installed hMailServer and want to ask a question related to a production release of hMailServer. Before posting, please read the troubleshooting guide. A large part of all reported issues are already described in detail here.
Post Reply
skrajpal
New user
New user
Posts: 5
Joined: 2007-12-24 06:22

Hmailserver with ASSP setup - Help

Post by skrajpal » 2007-12-24 07:05

Hi everybody. I am very new to Hmailserver and ASSP and having trouble getting ASSP to work , hope someone can help me. Details of my installations.

I have installed Hmailserver (4.4.1 B273) with MSSQL on Windows 2003 server. This is working fine stand-alone. I have also installed and tested ClamAV with Hmailserver. This too seem to work fine.

Installed ASSP (1.3.3.7) - followed the instructions as mention in the forum on 'how to setup ASSP'
a) Hmailserver - SMTP set to 125
b) ASSP - SMTP Listen - 25, SMTP Destination - 127.0.0.1:125
- Local Domain - done , Relaying - accept all mail -127.0.0.1.

I can telnet to 127.0.0.1 125 - i get the banner - so ASSP seem to be working. The client software (Outlook) CAN receive/sent mails.
All spam is received by user in the Outlook.

Problem is - NO data is captured in the c:\ASSP\SPAM ,c:\ASSP\NOTSPAM , c:\ASSP\error\SPAM. Why is this so ? All my installation is done using the Administrator access level. Where did i go wrong.

Can any seniors or Martin pls help me solve my problem.

Thanking You in Advance.

redrummy
Senior user
Senior user
Posts: 370
Joined: 2007-06-21 06:52
Location: Alaska

Post by redrummy » 2007-12-24 08:17

I'm not senior, or Martin, but if your post is accurate then telnetting to 127.0.0.1:125 gets you the hMailServer banner which doesn't tell you anything about ASSP. Are you sure you shouldn't be asking in the ASSP forums instead (http://www.asspsmtp.org/forums/)?

Ryan

skrajpal
New user
New user
Posts: 5
Joined: 2007-12-24 06:22

Post by skrajpal » 2007-12-24 08:33

Thanks Ryan for your reply.
1 small mistake in my earlier post.
I can telnet to 127.0.0.1 25 - ok
telnet 127.0.0.1 125 - cannot.
I am not sure if this is a ASSP problem.
Thanks

redrummy
Senior user
Senior user
Posts: 370
Joined: 2007-06-21 06:52
Location: Alaska

Post by redrummy » 2007-12-24 09:10

What is the banner when you telnet to 127.0.0.1 25 ?
What is the message when you telnet to 127.0.0.1 125 ?

Pull up the Processes tab of Task Manager and note the PID of your hMailServer and ASSP processes (View > Select Columns > PID if you don't see it). Then at a CMD prompt run:

Code: Select all

netstat -ano | find "PID#"
For each of the associated PID#'s. The output of each command should look similar to this (your details will be different, of course):

Code: Select all

TCP    0.0.0.0:25             0.0.0.0:0              LISTENING       3760
TCP    0.0.0.0:143            0.0.0.0:0              LISTENING       3760
TCP    127.0.0.1:2686         127.0.0.1:3306         ESTABLISHED     3760
TCP    127.0.0.1:3840         127.0.0.1:3306         ESTABLISHED     3760
For example, the previous table is hMS listening for SMTP & IMAP while connected to MySQL. What information do you get from these commands?

Ryan

skrajpal
New user
New user
Posts: 5
Joined: 2007-12-24 06:22

Post by skrajpal » 2007-12-24 10:02

telnet to 127.0.0.1 25 shows banner
> 220 mail.mydomain.com ESMTP

telnet to 127.0.0.1 125 shows
> connectiing to 127.0.0.1 ... could not open connection to the host, on port 125: connect failed.
.
HMAILSERVER process is :

TCP 0.0.0.0:25 0.0.0.0:0 LISTENING 2536
TCP 0.0.0.0:110 0.0.0.0:0 LISTENING 2536
TCP 0.0.0.0:143 0.0.0.0:0 LISTENING 2536

I DON'T see a ASSP processes in TASK Manager. But it shows at the computer management->services - Anti-Spam SMTP Proxy as STARTED.

Anything wrong with my ASSP setup ??

redrummy
Senior user
Senior user
Posts: 370
Joined: 2007-06-21 06:52
Location: Alaska

Post by redrummy » 2007-12-24 11:39

I don't use ASSP, so I can't tell you specifics about it. I'm just working from a general theory-of-operations point of view. However, hMS is definitely listening on TCP:25 which is contrary to your original post. You're probably bypassing ASSP completely at this point.

You can determine the process for a service by double-clicking the service name and looking under "Path to executable". That should help you find the PID. I suspect ASSP can't bind to TCP:25 because hMailServer is already using it. I would think its log file(s) would record such a problem.

I imagine that the intended mail flow is:
[In] Internet > ASSP > hMailServer > Client
[Out] Client > hMailServer > ASSP (optional) > Internet

In this way ASSP will filter messages on the way in and can learn from user mail on the way out. Assuming you have a NAT router/firewall and your mail clients are on the inside of your network I'd do the following:
- Leave hMailServer on the current/default ports for ease of client configuration
- Configure ASSP to LISTEN on TCP:125 (or whatever) and deliver inbound messages to localhost:25
- Configure hMailServer Settings > Protocols > SMTP > Delivery > SMTP Relayer > localhost:125 (optional)
- Forward TCP:25 from your router's WAN interface to TCP:125 on your server

Beyond that if it's strictly an ASSP issue I think you'd find more answers on that forum. Good luck.

Ryan

^DooM^
Site Admin
Posts: 13861
Joined: 2005-07-29 16:18
Location: UK

Post by ^DooM^ » 2007-12-24 12:13

Make sure you restart the hMail service or reboot your machine when you change the ports hMail listens on.

minsik
Normal user
Normal user
Posts: 92
Joined: 2006-08-03 13:08
Location: South Australia

Post by minsik » 2007-12-24 13:57

get pc rebooted, make sure hamailserver is running by opening the admin and seeing it is actually running. start logging under the status panel.

restart the assp service in services.msc, then make a cmd connection to the mail server. telnet 127.0.0.1 25. This should connect to assp and be passed through to hmailserver. you will see the email server reply with its connection message.

of course assp is port 25 with its output port set as 125, then make sure there is no port 25 allocated in hmailserver, only port 125, and that hmailserver has started again. It should not complain about qny ports in use at all as assp is watching port 25, hmailserver wont try to use port 25 just 125.

check this with the the assp tail and it should show an entry connection as below.

Connected: 127.0.0.1:4578 -> 127.0.0.1:25 -> 127.0.0.1:225

It clearly shows that the assp is receiving the connection from 127.0.0.1 port 25 and its being output on port 225 ( in my case) and that its using port 4578 to achive this.

hope this is some help. Do lots of reading the very good documnetation both with assp and Hmailserver. there are many messages here about these two living together!
Windows XP
hmailserver (latest beta allways) (except db versions)
test config, trying to convince the boss to use hmail!
ASSP - front end SPam killer

skrajpal
New user
New user
Posts: 5
Joined: 2007-12-24 06:22

Post by skrajpal » 2007-12-26 03:34

Thanks a million Guys.
I realised that it was not going thru ASSP but directly.
Checking in detail - realise that i have only set the SETTING->PROTOCOL-SMTP->125 , but SETTING->TCP/IP->SMTP was still 25. Once I changed this and restart the services , it seem to be working. Now is see data captured in C:\ASSP\NOTSPAM AND SPAM FOLDERS.
Thank you again.

skrajpal

skrajpal
New user
New user
Posts: 5
Joined: 2007-12-24 06:22

Post by skrajpal » 2007-12-26 10:48

Just realise that only outgoing mails are being stored in C:\ASSP\NOTSPAM. BUT - All incoming is not stored in both SPAM and NOTSPAM directorys. Any idea why.

Post Reply