Gossamer Forum
Skip to Content



Home : Products : Gossamer Mail : Development, Plugins and Globals :

Pop_server plugin on Windows 2003 box

Can't Post
Pop_server plugin on Windows 2003 box
Is there documentation available for the pop_server paid plugin? I've paid for and installed the plugin and would love to get it running on my Windows server. unfortunately there isn't any documentation for the plugin that I can find.

My system has multiple network cards and IP addresses. Which IP will the pop_server plugin bind to? I need to open the port on the firewall.
(This post was edited by DrewBlack on Jul 3, 2006, 2:50 PM)
Can't Post
Re: [DrewBlack] Pop_server plugin on Windows 2003 box In reply to
I found the help page. I think I can get gpopd.pl configured to run as a service.

But I'd like to know if there's a way to configure it to bind to a specific IP address?
Can't Post
Re: [DrewBlack] Pop_server plugin on Windows 2003 box In reply to
Looking at the code, it looks like it binds to all ip addresses and there's currently no option to bind to a specific one. However, it shouldn't be too difficult to change. For now, you should be able to change Pop_Server.pm (admin/Plugins/GMail/Pop_Server.pm), around line 298 (in connect()), change:
Code:
bind(Server, sockaddr_in($self->{port}, INADDR_ANY)) || return $self->error("could not bind to port $self->{port}, perhaps something is already using that port: $!", "WARN");
to
Code:
bind(Server, sockaddr_in($self->{port}, inet_aton('the ip address to bind to'))) || return $self->error("could not bind to port $self->{port}, perhaps something is already using that port: $!", "WARN");

I'll have to add this as an option for a future release.

Adrian
Can't Post
Re: [brewt] Pop_server plugin on Windows 2003 box In reply to
Thanks. This should do the trick.

I have a pop3 service running already bound to a different IP address on the system and this should enable me to make sure that the gpopd daemon only binds to the hostname that the gossamer mail service is running on.