PDA

View Full Version : Enhancing Your mail server w/ASSP


gurneyzap
14th November 2006, 18:25
Hi,

I have a working mail server using Falko's excellent how-to. I've heard a lot of good things about ASSP, so I thought I would give it a try.

Setup seems very easy but when I send an email, the sending server logs show connection refused.

In the ASSP logs I see this:
Couldn't create server socket on port '127.0.0.1:25' -- maybe another service is running or I'm not root (uid=0)?

How do I resolve?

Thanks

ovis
15th November 2006, 16:09
Oke first this is my setup in the Interface on port 55555:


SMTP Destination 127.0.0.1:25

Listen Port 123.123.123.123:25


Now the SMTP Destination is the OUTPUT
The listen Port is the INPUT

You have to make sure that postfix is ajusted to this situation so it listens on the output of your proxy.

Is is done in the /etc/posfix/master.cf :


localhost:smtp inet n - - - - smtpd



netstat -vatup

tcp 0 0 example.com:smtp *:* LISTEN 5511/perl
tcp 0 0 localhost.localdom:smtp *:* LISTEN 1316/master


Here we see that port 25 (smtp) of the outside is bound to perl (ASSP)
And the port 25 of the inside is bound to master (postfix)

Now if any other process is interfering or a firewall is preventing this behavore your have to investegate.

In the case that your not root, get root OR go to the interface and adust the GUI and UID to taste. But first try if it works as root.

What makes it diffecult is that the solution is probly simple and hard to find :)


Greetz Ovis