Alexander Skwar wrote:
> Neil Schneider wrote:
>> I have web-cyradm configured on a web server. The mail server
>> resides
>> on another machine. When I try to use web-cyradm, it returns no
>> errors, but seems to be failing. It simply refreshes the login page.
>
> What version of MySQL and PHP are you using? You're giving
> "sparse" information here :)
Sorry, didn't know that the versions of MySQL and php would be
pertinennt to my quesions.
MySQL 4.1
php 4.4
Although I've done things with configuration of MySQL, php
cyrus-imapd, postfix and the other technologies, I've never done MySQL
authentication for anything.
>> The documentation is sparse, so for example I don't know what these
>> variables refer to exactly.
>>
>> # The Cyrus login stuff
>> $CYRUS = array(
>> 'HOST' => 'localhost',
>>
>> Is this 'HOST' the one where the authentication is taking place,
>> where
>> the mysql database resides or where the IMAP server is running?
>
> IMAP host. It'll then connect the MySQL host.
>
>>
>> $DB = array(
>> 'TYPE' => 'mysql',
>> 'USER' => 'mail',
>>
>> IMAP user name, or mysql connection user name?
>
> MySQL connection user name. Has to match what you've put in
> scripts/insertuser_mysql.sql
>
>> 'PASS' => 'secret',
>>
>> This password is associated with the USER above, I presume.
>
> Yes.
>
>>
>> 'PROTO' => 'unix', // set to "tcp" for TCP/IP
>>
>> What needs to make this connection? The IMAP authetication mechanism
>> from the remote machine or the MYSQL connection localy?
>
> This is for PHP, basically. PHP will make a MySQL connection to
> the MySQL host. If your PHP host and your MySQL host are two
> machines, you've GOT to use "tcp" - unix will only work on localhsot.
>
>> 'HOST' => 'localhost',
>>
>> which host here? the one where mysql is running, or the one where
>> IMAP
>> is running?
>
> MySQL host, as we're still in the $DB array.
>
>>
>> 'NAME' => 'mail'
>>
>> $LOG_DIR = "/var/log/web-cyradm";
>>
>> Ends in a / or not?
>
> Don't know. Normally, directory names are NOT given with a trailing
> /.
>
>> Local machine log or IMAP machine log.
>
> PHP host.
>
>> machine and the rest on the other. For example, where is the PAM
>> Configuration supposed to exist?
>
> On the machine, which is going to use it. So, if IMAP is going
> to use PAM, then the PAM configuration needs to be on the IMAP
> host.
>
>> Some of the configurtion options for Configuring Postfix are a
>> little
>> vague. Are the postfix external configuration files with values for
>> mydestination
>> relayhost
>> mailbox_transport
>> supposed to point to the local or remote machine?
>
> The configuration options need to point to the MySQL host as
> you're interfacing MySQL with postfix.
Postfix and cyrus-imapd are running on a mail server.
Web-cyradm, MySQL, Squirrelmail, Apache are all running on the web
server, a seperate system from the mail server. .
Ok, this gets a little confusing. Let me see if I have the order right
.
Web-cyradm talks with php to MySQL for authentication and
authorization information?
Postfix talks to mysql for configuration and authentication
information, so we need to establish a connection back to the mysql
server?
Cyrus-imapd talks to pam/cyrus-sasl for authentication and authorization?
Pam and cyrus-sasl get authentication and authorization from MySQL on
the web server ?
> But "relayhost" is not configured thru an external configuratin
> file. What makes you think so?
I should have known that relayhost wouldn't be in mysql. It's only a
single line configuration.
Please correct any misunderstanding above. I haven't been able to get
webcyradm to log anywhere that will help me debug my
misconfiguration.I get a connection log in apache that shows the GET,
that's all. And the page comes back blank and asking for login
information again. I see a POST to auth.inc.php followed by another
GET, in the apache access log, after each login attempt.
--
Neil Schneider pacneil_at_linuxgeek_dot_net
http://www.paccomp.com
Key fingerprint = 67F0 E493 FCC0 0A8C 769B 8209 32D7 1DB1 8460 C47D
"When the politicians complain that TV turns the proceedings into a
circus, it should be made clear that the circus was already here,
and that TV has merely demonstrated that not all the performers are
well trained." - Edward R. Murrow
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
_______________________________________________
Web-cyradm mailing list
[email protected]
http://www.web-cyradm.org/mailman/listinfo/web-cyradm