I have a couple of setups where there is both Courier-MTA and Drupal being used on the same server. I'm thinking of working up some sort of module to integrate the two so that there is only one place to manage accounts. Has anyone done anything like this already?

Comments

LDAP?

There is a Drupal LDAP module, but I've never used it. I assume Courier could also be configured to use LDAP?

--
Anton
New to Drupal? | Forum posting tips | Troubleshooting FAQ

--
Anton

Yes it can

But then I'd have to learn LDAP, and I've been trying to put that off for as long as I could. :^)

courier-mysql

the courier authdaemon can be configured to use mysql tables, so this wouldn't be a big thing to do.
you can find an example configuration at www.syscp.org, syscp uses courier-mysql for its mail accounts.

I am currently using MySQL

I am currently using MySQL for Courier authentication on my own mail server, but according to the docs:

"NOTE: this password must be crypt-ed using the operating system's crypt function, NOT MySQL's crypt function. MySQL's crypt() function is non-standard and is not generally compatible with the operating system's crypt function."
(from http://www.courier-mta.org/authlib/README.authmysql.html)

To me, that says it would be difficult, if not impossible, for the two to share a single users table, which is why I was asking.

Checkout cryptpw module

Check out the Cryptpw module, which integrates Courier authentication with Drupal.

The web is like usenet, but
the elephants are untrained.

Good. — Fast. — Cheap.
(Pick any two.)

nobody click here