p dont think wrote:
Hi guys,
I've just finished installing sqmail with the virtual domain plugin, and
What's "the virtual domain plugin"?
Sorry, should have been more specific.. vlogin.
also mysql prefs and the calander.
Its hooked up to a SASL auth courier imap-ssl /postfix/mysql backend and
Shouldn't matter to SM.
for the most part works fine.
yay!
The calander plugin however does not. it appears to be trying to store data into the users maildir and failing miserably.
Trying? I don't remember that it ever put its data anywhere else.
This is the error it is returning when I try and save an alert to the calander.
*Warning*: fopen(/usr/virtual/***VIRTUAL_DOMAIN***/***USERNAME***/[EMAIL PROTECTED]): failed to open stream: No such file or directory in */var/www/html/secure/mail/plugins/calendar/calendar_data.php* on line *60
Ah, looks like vlogin is "the virtual domain plugin". Huh. I guess vlogin is not getting called in calendar_data.php. I don't have the energy to look at that code, but try these things:
- make sure vlogin comes BEFORE calendar in plugin list
- try using $useSessionBased in vlogin configuration
- or insert a call to vlogin's overrideSmConfig() function at the beginning of the offending file
BTW, why do you have data directories on a per-user basis? Seems rather useless to me.
Thats the odd thing, in the sqmail settings, I have data-dir and attachments set to /var/local/webmail/data-dir and /var/local/webmail/attachements respectivly, so I don't know why it is trying to save to individual user accounts.
vlogin is the first item in the list of plugins. (it was last before.) it made no difference, I'll have to play with the $useSessionBased/vlogin setup.. thanks for the tip.
Bummer, I didn't know you were working on it, so I setup a table in mysql and have so far added code so that events are inserted into the mysql table in the same format that it normally stores in the txt file.
I was wondering if anyone has converted the calander to mysql backend as well? I am already using mysql for the user prefs and address book, so it seems logical to add a table to that db and put the calander info in there.
Note that there is a new calendar plugin on the way; it's tentatively alpha right now, but I simply do not have time to send it out ATM. It has the ability to use a SQL backend, but only a file backend is coded presently.
(minus the pipes of course.)
But my experiance with squirellmail is extrememly limited from a developer perspective, so I'm not familar with the data abstraction method in place, therefore I just inserted the SQL statements into the relevant files and will change it to the proper methods once I work out what they are.
It looks like its going to work fine though.
Interestingly, I had an install of sqmail from before I installed the new mail server, and the old one was conventional and didn't use vlogin. when I used the calander, it would save a single file with the event data in it, but if I added a second event, the first one was overwritten and disappeared.
I'm assuming that was from an earlier version.
*Failing the mysql option, does anyone know if the calander is supposed to work with my virtual domain setup?
Yes.
Ok, well at this stage I can't explain why it isn't, but if I can get it to work via mysql with the same table format as the addressbook (which is how I have done it.) Then I won't care. :-)
If nobody has ported to mysql, and the calander function is supported as working with virtual domains, then I'll probably have a go at converting it myself.
(and I'll post a patch or something for anyone else interested.)
Be patient. I'll send out the new version as time allows.
My interim mysql version is going to be just a hack, so I look forward to the real thing.
BTW, are their any developer docs for sqmail? I'd like to get more familiar with the code layout (like the db abstraction code) and stuff, but don't want to read the whole lot to learn my way around..
The code isn't as bad as oscommerce from a learning perspective, but it's still not obvious to a developer that is not familiar with its constructs.
many thanks
rgds
Franki
------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl -- squirrelmail-users mailing list Posting Guidelines: http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines List Address: [EMAIL PROTECTED] List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
