Page 1 of 1

Exception in thread SMTP Server

Posted: Fri Aug 17, 2007 11:27 am
by scuba303
hello,

i installed OpenEMM-5.1.1-win32 today on a windows server 2003 R2.
i used
ActivePython-2.5.1.1-win32-x86.msi (was a hint from this forum beacuase others discovered problems with other python distris.)
and
MySQL-python-1.2.2.win32-py2.5.exe

install says everything is right. if i try start.bat i will get the follwoing errors:

Code: Select all

Starting up .. home is C:\OpenEMM .. found codebase .. found database.
Running, press return for termination: Exception in thread SMTP Server:
Traceback (most recent call last):
  File "C:\Python25\lib\threading.py", line 462, in __bootstrap
    self.run()
  File "C:\OpenEMM\bin\scripts\semu.py", line 713, in run
    Server.ServerLoop ()
  File "C:\OpenEMM\bin\scripts\semu.py", line 663, in __init__
    smtpd.SMTPServer.__init__ (self, ('0.0.0.0', 25), None)
  File "C:\Python25\lib\smtpd.py", line 280, in __init__
    self.bind(localaddr)
  File "C:\Python25\lib\asyncore.py", line 303, in bind
    return self.socket.bind(addr)
  File "<string>", line 1, in bind
error: (10013, 'Permission denied')
any help welcome as i am not into python...

Posted: Fri Aug 17, 2007 11:35 am
by scuba303
ahhh.. seems to be a problem with another smtp service already running on the machine.

Posted: Fri Aug 17, 2007 3:24 pm
by ud
It may be also another problem: In UNIX like systems only the super user may bind to a port below 1024. Perhaps this restriction is also valid for Windows Server. Or it is also valid for all Windows versions, but nearly everyone is working with administration rights :D .

-- ud

Posted: Fri Aug 17, 2007 5:47 pm
by scuba303
i simply changed the port for smtp to 2025 and everything is fine!
there is a projects 2007 server running on the same machine. seems like this one is having it's own smtp.

Posted: Thu Dec 06, 2007 10:39 am
by rapid
could you please explain in details how did you do that?
i get the same error =(

Posted: Thu Dec 06, 2007 11:01 am
by ud
I think he changed bin\scripts\semu.py directly and changed the port the server is listening from 25 to 2025. This removes the error, but this does not really work as every remote systems tries to connect to port 25 to deliver your mail. So either you must run the application as administrator or you have to establish a port forward from 25 to 2025 (perhaps some Windows guru can help here in detail.)

-- ud

Posted: Fri Dec 07, 2007 10:55 am
by rapid
Thanks! I 've donewhat you said and the error disappeared :P

error

Posted: Wed Jul 08, 2009 10:28 pm
by steeleweb
I am still getting error, not sure why.

I did not have a smtp server running I then installed a smtp server and changed the port to 2025 and then recieved the error listed.

Any other suggestions?