Page 1 of 1

Plsek 8.3, qmail, zarafa - mail delivery problem

Posted: Sun Jan 20, 2008 8:21 am
by grim_reaper
Hi 2 all


I just found the forum on google and it looks really great.
I have a small problem and since I'm not really a Linux Pro, please don't laugh!

I use Plesk 8.3 on a Suse 10.1 64 Bit System.
I only have about 25 clients (not much) and all use Horde webmail in Plesk which is pretty good.
A few of them now wanted a Exchange like System so that they can sync their PDAs in Real Time, run Outlook as exchange and also have a webmail that looks like Outlook.

What I did so far:
So I installed Zarafa an after a few problems the server is now running. I'm able to connect via Webmail, I can run Outlook as Exchange and I can connect via LiveSync to my PDA. (Contacts, Notes and Calender entries already sync with each other!)

The Problem.
The Problem now is, that I'm just not able to send OR receive any emails on the Zarafa accounts. (the Horde accounts created through Plesk still work fine)
For Some reason qmail handles something wrong, I just don't know what :(

The Zarafa Manual says:
Delivery of email through the server
To deliver an email into a user's inbox, you need to use the zarafa-dagent program. The
zarafa-dagent will read an SMTP email message from the standard input or a file. A parameter
to the zarafa-dagent is needed to select the store where to deliver the incoming message. A few
examples are given for different email servers:
qmail
Place in your $HOME/.qmail file a line containing:
| /usr/bin/zarafa-dagent -q [user name]
The [user name] tag needs to be replaced with the name of the user to correctly deliver the
email. The -q switch is to notify the zarafa-dagent program to return qmail style error codes. When
an email can temporarily not be delivered, it will stay in the qmail queue, which will try to deliver
the email later again.
THe problem is that there a many many .qmail files in Plesk 8 which are all stored unter /var/qmail/mailnames/DOMAIN_NAME/NAME

The thing is I have absolutely no Idea how to configure qmail :(
It would be really great if someone could give me a hint!

Oh, and of course, here's the qmail error log:

Code: Select all

Jan 20 12:09:43 v1849 qmail-queue-handlers[22143]: starter: submitter[22144] exited normally
Jan 20 12:09:43 v1849 qmail-local-handlers[22146]: Handlers Filter before-local for qmail started ...
Jan 20 12:09:43 v1849 qmail-local-handlers[22146]: from=grim_reaper@inode.at
Jan 20 12:09:43 v1849 qmail-local-handlers[22146]: to=email@gernotheinzel.net
Jan 20 12:09:43 v1849 qmail-local-handlers[22146]: cannot reinject message to 'email@gernotheinzel.net'
Jan 20 12:09:43 v1849 qmail-queue-handlers[22157]: Handlers Filter before-queue for qmail started ...
Jan 20 12:09:43 v1849 qmail-queue-handlers[22157]: from=
Jan 20 12:09:43 v1849 qmail-queue-handlers[22157]: to=grim_reaper@inode.at
Jan 20 12:09:43 v1849 qmail-queue-handlers[22157]: hook_dir = '/var/qmail//handlers/before-queue'
Jan 20 12:09:43 v1849 qmail-queue-handlers[22157]: recipient[3] = 'grim_reaper@inode.at'
Jan 20 12:09:43 v1849 qmail-queue-handlers[22157]: handlers dir = '/var/qmail//handlers/before-queue/recipient/grim_reaper@inode.at

Posted: Sun Jan 20, 2008 9:46 am
by scott
You would need to modify the .qmail file for each account, in this case when they say $HOME/.qmail that means /var/qmail/mailnames/<DOMAIN NAME>/<USERNAME>/.qmail

You might want to look into using the Events system in plesk to do this for you, since those .qmail files are generated dynamically.

Posted: Sun Jan 20, 2008 10:44 am
by grim_reaper
Hi, thanks for the fast reply!

The Problem is, that this maildirs only exist if I create a new Mail account in Plesk.
If I create a new Mail account in Zarafa, no new dir and .qmail is created!

What I've done so far is, I created the same mail adress I already created in Zarafa also in Plesk. Then I made the change in the .qmail.
After that an E-Mail sent to this adress isn't dlivered at all (as seen in the above logfile) not to the Zarafa mailbox and not to the Plesk mailbox.
I hate qmail :-(

And the most frustrating thing is that I get no support from SW Soft because it's not their Software. And if you post something in a Forum for qmail everyone tells you that Plesk screwed up their qmail patch and that they can't really help you. And of course the Zarafa Support doesn't cover your Problems with Plesk.

So I'm kind of hopeless :( :( :(

Posted: Sun Jan 20, 2008 10:56 am
by scott
Thats correct, you would need to integrate Zarafa into Plesk through the API in order to get it to create those accounts for you. Or conversely, create the Zarafa settings from plesk through its API. Sounds like a fun project!

Posted: Sun Jan 20, 2008 11:22 am
by grim_reaper
well, that would be way more then I want.
Zarafa is pretty expensive and I only bought a license for 5 Users and 4 are acutally using it!

It hasn't have to be integrated in any way.
I just want everyone to use plesk and just these 4 people should use zarafa.
So Plesk doesn't really have to do anything with Zarafa.
I mean, yeah, would be kind of cool to play around with it, but I can't really "play" or "experiment" with my server because I am after all charging money for it and the clients want to use it.

Do you thing that there could be kind of a "simple" way.

Or another question. Is it possible to use another programm for Zarafa such as postfix or procmail and still let qmail handle everything for Plesk??

I now its probalby a stupid question but after all I specialize in Webdesign and not Linux Configartions :-)

Posted: Sun Jan 20, 2008 11:57 am
by scott
You cant use postfix with Plesk yet. Couldnt tell you how easy it would be to integrate, since I have no idea how Zarafa works. Try reading up on the plesk command line utilities. I'll bet that will let you get the two working together.