Page 1 of 1

POP user database actorisation problem

Posted: Mon Feb 20, 2006 3:46 pm
by kemis
Plesk use mySQL for storing user email accounts. But if you do not want to use Plesk for this and insted us Webmin you can not get any mail thru pop.

I think is the file authpsa in currier that handle this and store user accounts in mySQL and the actorisation is now by mySQL and not Unix users.

But do any one know have to change this, so the email account actorisation is done against Unixaccount not Plesk mySQL so we can use Webmin.

We use CentOS3 and Virtuozzo.

Hope someone know how to solve this or have I under stand the problem wrong!?

/Paul

Posted: Mon Feb 20, 2006 4:13 pm
by scott
The short version is you cant, the users dont exist in the OS. They only exist in the context of mysql and qmail.

Posted: Sun Feb 26, 2006 8:01 am
by kemis
To clarify things:

1. We don't use Plesk to create mailaccounts but a separate homebrew system working against /etc/passwd
2. MySQL is not used ever for any storage of anything
3. The users exist in the OS

We are moving to a new server and our system for usermanaged mailaccounts is something we like to keep.

I have seen a small module for this put I can't find it again.

In /etc/xinetd.d/courier-pop3d

Code: Select all

service pop3
{
        disable = no
  flags = NODELAY
  socket_type = stream
  wait = no
  user = root
  server = /usr/bin/tcp-env
  server_args = -R -f /etc/courier-imap/pop3d /usr/sbin/pop3login /usr/lib/courier-imap/authlib/authpsa /usr/bin/pop3d Maildir
  log_type = FILE /var/log/pop3d.log
  log_on_success = PID HOST EXIT DURATION
  log_on_failure = HOST ATTEMPT
}
authpsa should be changed to authpasswd or whatever the name of the program is.

Hopefully this can get me the correct answer.

Thanks.