Koozali.org: home of the SME Server

Changing Passwords via Imp Webmail

John Bennett

Changing Passwords via Imp Webmail
« on: January 11, 2001, 09:05:36 AM »
I am trying to configure poppassd to allow some clients the ability to change their passwords via imp webmail.  These particular users don't login to this e-smith server nor can they get to the e-smith-password manager screen.  I have all the necessary changes to imp so that the change password icon appears and executes when a user clicks on it.  That was the easy part.

What I can't get to work is the poppassd portion.  I went to rpmfind and downloaded poppassd.  When I installed it, it actually reads poppassd-ceti.  If this is not the right package, please tell me.  I found another site for poppassd via the horde.org page, but I would need to compile the code, and I am not at that level yet.  I get a message on the screen that reads, "inetd: no process killed"  I guess this means that it tried to stop the inetd process and failed.  I edited the services template-begin file and added - poppassd   106/tcp.  Then I did a console-save and verified that the changes made it to the services file in /etc.  I then edited inetd.conf and verified that it added the appropriate lines.   Rebooted the server and tried to telnet to my e-smith server via port 106, but my connection is always refused.  Inside of imp, when I click to actually execute the change, I get  a connection refuses as well.

This is where I am stuck.  If anyone can help me I would greatly appreciate it.  If not, then I will post to the imp forum next.

If someone from e-smith reads this, is there a way to possibly get this included in 4.1 or later as an option?  Or another suggestion is welcomed.  I just need a way to let users change their passwords in a hosted environment.

Thanks,

JB

John Bennett

Re: Changing Passwords via Imp Webmail
« Reply #1 on: January 11, 2001, 09:24:21 AM »
I am currently trying this on a 4.0.1 server.

John Bennett

Re: Changing Passwords via Imp Webmail
« Reply #2 on: January 12, 2001, 10:25:26 PM »
Just in case anyone passes by this thread, I can successfully run this from the
esmith server console or telnetted into the server.  But, I still can not simply telnet to the server via port 106 - telnet x.x.x.x 106, Which means imp won't work as well.  Any suggestions on what to check on the e-smith box?  I haven't intentionally turned on any blocking.

Thanks,

JB

Charlie Brady

Re: Changing Passwords via Imp Webmail
« Reply #3 on: January 13, 2001, 08:08:32 AM »
John Bennett wrote:
 
> Just in case anyone passes by this thread, I can successfully
> run this from the
> esmith server console or telnetted into the server.  But, I
> still can not simply telnet to the server via port 106 -
> telnet x.x.x.x 106, Which means imp won't work as well.  Any
> suggestions on what to check on the e-smith box?  I haven't
> intentionally turned on any blocking.

Before you spend more time on this, you should be aware that if you succeed in getting poppassd set up and "working", unless you really know what you are doing, then you will succeed in changing people's webmail password, but they will no longer be able to use Windows file sharing. Windows file sharing uses a different password database.

Why not just inform your users that they should use http://www/e-smith-password to change their passwords?

Charlie

John Bennett

Re: Changing Passwords via Imp Webmail
« Reply #4 on: January 13, 2001, 09:13:26 AM »
Thanks Charlie.
The reason is that currently the users are not logging into this server, so the windows file-sharing shouldn't affect us.  They are only getting to this server for webmail.  They use an e-smith box in both offices, but aren't currently connected together.  I would rather like to enable the e-smith-password option, but I would have to allow a particular network in.  Which is fine, but the company I am working at, was bought by another company, and they are still on the same network.  They get to the internet via 2 proxies, so I don't want to allow that network in, because it would be from the 1st companies network.  

If they were separated and on their own networks with separate communications to the 'net, then I would use the e-smith-password.

If you have a better solution, I will try it.

John Bennett

Re: Changing Passwords via Imp Webmail
« Reply #5 on: January 13, 2001, 09:58:13 AM »
I have it working on my e-smith 4.0.1 server.
If anyone is interested here is what I did.

1.  Download and install the poppassd RPM from rpmfind.net

2.  Edit (pico) /etc/e-smith/templates/etc/services/template-begin
     add poppassd   106/TCP
           poppassd   106/UDP

I don't think you need to UDP, but the suggestions I got said to add this.

3.  Change to the etc/rlinetd.d directory

4.  Create a file called poppassd with these contents:

#------------------------------------------------------------
# DO NOT MODIFY THIS FILE! It is updated automatically by the
# e-smith server and gateway software. Instead, modify the source
# template in the /etc/e-smith/templates directory. For more
# information, see http://www.e-smith.org.
#
# copyright (C) 1999, 2000 e-smith, inc.
#------------------------------------------------------------

service "poppassd"
{
    protocol tcp;
    port "poppassd";
    user "root";
    exec "/usr/sbin/poppassd";
}

4a.  If you add the above file to the /etc/e-smith/templates/etc/rlinetd.d directory, then the console-save event will not copy this file to /etc/rlinetd.d

5. Execute /sbin/e-smith/signal-event console-save

6. Execute service rlinetd restart

7. Execute /sbin/usr/poppassd
    You should get this below:  
   200 poppassd v1.8-ceti hello, who are you?

8. Test to see if you can telnet to port 106 from the console (Telnet x.x.x.x 106)
    This is probably not necessary, but I wanted to make sure it was working from  
    the server.  Again, you should get:
    200 poppassd v1.8-ceti hello, who are you?

9. Test to see if you can telnet to port 106 from a workstation.  
    If your server will be behind a firewall, then you will need to allow port 106 TCP
    and possibly port 106 UDP in.  (Again, I don't think you need this)
    If you are doing any type of port forwarding, then make sure you forward port  
    106 to your e-smith server.

10.Edit (pico) the defaults.php3 in
    /home/e-smith/files/primary/html/horde/imp/config  add the following:

    $default->change_password = 'poppassd.php3';
    $default->poppassd_server = 'IP address of your server';
    $default->poppassd_port = '106';

Notes:  a.  I added these lines right after the user changeable items section.
           b.  The FAQ at horde.org says you can use $SERVER_NAME (no quotes)
                for the $default->poppassd_server parameter.  I am using port
                forwarding, so I had to use the IP address of the server that was  
                actually doing the port forwarding.

That should be it.  If you log into your webmail you should now see a change password icon and it should work.

I have not done any testing with this on e-smith 4.1.