receiver_config port
- From:
- Joshua Partogi
- Date:
- 2010-04-15 @ 03:48
Hi all,
I have a postfix server running on port 25 and it's been receiving email
well enough. I have read the doc about lamson that the receiver_config port
for lamson should be 25. But this is the error stacktrace that I get if I
use 25 as the receiver_config port.
File "~/config/boot.py", line 17, in <module>
settings.receiver_config['port'])
File "/usr/local/lib/python2.6/dist-packages/lamson/server.py", line
164, in __init__
smtpd.SMTPServer.__init__(self, (self.host, self.port), None)
File "/usr/lib/python2.6/smtpd.py", line 280, in __init__
self.bind(localaddr)
File "/usr/lib/python2.6/asyncore.py", line 325, in bind
return self.socket.bind(addr)
File "<string>", line 1, in bind
socket.error: [Errno 13] Permission denied
Have I done something wrong and missing something? Please bear with me as I
am still a newbie with lamson.
Kind regards,
--
http://twitter.com/projexion
--
http://twitter.com/projexion
Re: [lamson] receiver_config port
- From:
- Zed A. Shaw
- Date:
- 2010-04-15 @ 06:56
On Thu, Apr 15, 2010 at 01:48:00PM +1000, Joshua Partogi wrote:
> Hi all,
>
> I have a postfix server running on port 25 and it's been receiving email
> well enough. I have read the doc about lamson that the receiver_config port
> for lamson should be 25. But this is the error stacktrace that I get if I
> use 25 as the receiver_config port.
> socket.error: [Errno 13] Permission denied
Looks like you're trying to run it as just a regular user rather than
root. For various historic reasons ports below 1024 can only be bound
by root. So try doing this with sudo. There's also an option to have
lamson change to another user after doing this. Look at the -uid and
-gid options.
--
Zed A. Shaw
http://zedshaw.com/
Re: [lamson] receiver_config port
- From:
- Joshua Partogi
- Date:
- 2010-04-16 @ 03:29
Thanks for the response Zed! I got it working now. I was also wondering
whether it is a good idea to set the host as 0.0.0.0 since setting it as
localhost makes it unreachable from the internet.
--
http://twitter.com/projexion
On Thu, Apr 15, 2010 at 4:56 PM, Zed A. Shaw <zedshaw@zedshaw.com> wrote:
> On Thu, Apr 15, 2010 at 01:48:00PM +1000, Joshua Partogi wrote:
> > Hi all,
> >
> > I have a postfix server running on port 25 and it's been receiving email
> > well enough. I have read the doc about lamson that the receiver_config
> port
> > for lamson should be 25. But this is the error stacktrace that I get if I
> > use 25 as the receiver_config port.
>
> > socket.error: [Errno 13] Permission denied
>
> Looks like you're trying to run it as just a regular user rather than
> root. For various historic reasons ports below 1024 can only be bound
> by root. So try doing this with sudo. There's also an option to have
> lamson change to another user after doing this. Look at the -uid and
> -gid options.
>
> --
> Zed A. Shaw
> http://zedshaw.com/
>