Zentyal Forum, Linux Small Business Server

Zentyal Server => Installation and Upgrades => Topic started by: gunjender on August 18, 2009, 01:23:01 pm

Title: ebox -- vtiger -- dovecot -- howto, tutorial or anything like that
Post by: gunjender on August 18, 2009, 01:23:01 pm
Hello to all,

we are trying to set up a server for small business with customer relations management and stuff like that. Connected with open office.

The server seems to be running fine now. We are newbies and therefore every step is a new challenge...

Does anyone by chance know whether there is some written information on setting up dovecot for vtiger available?

Which way should the system be configured? Is dovecot that IMAP server for vtiger? And does dovecot fetch all the e-mail from different pop3 accounts and does it send by SMTP?

If so, how do I set up dovecot for pop3 and SMTP?

We are really thankful for any information on the topic...
Title: Re: ebox -- vtiger -- dovecot -- howto, tutorial or anything like that
Post by: gunjender on August 19, 2009, 07:39:52 am
Okay, I don't really understand why we didn't get any response...

But after a good bit of research and trying to understand -- as we really are just starting to work with Linux-based software -- we found the following link.

http://forum.eboxplatform.com/index.php?topic=892.0

Looks like the solution...
Title: Re: ebox -- vtiger -- dovecot -- howto, tutorial or anything like that
Post by: Javier Amor Garcia on August 19, 2009, 08:53:47 am
Hello,
  I am not sure what do you really want and i dont know which email requirements has vtiger. But if you only need SMTP and IMAP service the previous link is overkill, to get them you dont need either to instal lfetchmail or modify any stub file.

You only have to:
a) enable users and mail modules
b) in mail create a virtual mail domain, enable authorization and enable imap service
c) create users amnd edit them to add a mail address in the virtual domain.

This will be a basic email configuration with eBox but as I said I am not sure what are your requirements...

Cheers,
  Javier
Title: Re: ebox -- vtiger -- dovecot -- howto, tutorial or anything like that
Post by: gunjender on August 21, 2009, 10:25:55 pm
Hi Javier,

thanks very much for your reply. Sorry, that we answer only now, but we don't work on the server every day.

We are not so sure ourselves about the e-mail requirements of vtiger. We believe it needs an IMAP profile.

At least this was what we could find on the Internet. People say vtiger works together with dovecot.

Our server is supposed to work only as a local server for a start. It connects the Internet via an installed rooter. No access to the server from outside.

The e-mail addresses are managed by a provider and we fetch them using pop3. Now we want fetchmail to do this for us and store the incoming e-mail somewhere so that dovecot can manage them as an IMAP profile. Fetchmail is supposed to be the interface between provider and dovecot.

By now we have integrated fetchmail into our system and it fetches e-mail from our provider but we don't know where it stores the messages.

With your suggestions we would need to give the server full access to the Internet, wouldn't we?

Hope I was able to explain our problem. We are learning step-by-step how to set up the system as you can see.

Thanks for any assistance.

Jens
Title: Re: ebox -- vtiger -- dovecot -- howto, tutorial or anything like that
Post by: Javier Amor Garcia on August 26, 2009, 09:41:23 am
Ok, so if you need fetchmail for sure forget about my suggestions and follow the advice of the other post that seems sound (but I haven't tried myself)..
Quote
By now we have integrated fetchmail into our system and it fetches e-mail from our provider but we don't know where it stores the messages.

That depends on which user are you using in your .fetchmailrc file to fetch the mail.
eBox's dovecot is configured to use the /var/vmail directory to store the mailboxes. Each user mailbox has the format /var/vmail/[domain]/[user]  so the user selected in .fetchmailrc must have a mailbox here to be able to use dovecot without problems
Title: Re: ebox -- vtiger -- dovecot -- howto, tutorial or anything like that
Post by: gunjender on August 27, 2009, 03:00:09 pm
Hi Javier,

we have now given fetchmail the path to the default ebox mail folder including domain folder and user folder.

And what happens now is that we receive an error message "permission denied" when fetchmail tries to store the receive messages.

How do we enable the authorisation?

Does this have anything to do with setting up the "certification authority"?

What has to be filled into this form? Status, best before so many days? is there a Howto for this?

And then the last question -- to set up Thunderbird as IMAP profile -- what has to be filled in for server -- IP of server or domain, or local loopback (what's this anyway) -- and which port is used by default?



Thanks
Jens
Title: Re: ebox -- vtiger -- dovecot -- howto, tutorial or anything like that
Post by: Javier Amor Garcia on August 27, 2009, 03:27:31 pm
No, is not related with the Certification authority. Possibly it will related to the fact that all files below /var/vmail are owned by the user and group 'ebox' so fetchmail should have permission to write there.

As for the Certification Authority is used to issue certificates, if you want to know more look at this page of the documentation http://doc.ebox-platform.com/en/vpn.html#public-key-infrastructure-pki-with-a-certification-authority-ca (http://doc.ebox-platform.com/en/vpn.html#public-key-infrastructure-pki-with-a-certification-authority-ca)
Title: Re: ebox -- vtiger -- dovecot -- howto, tutorial or anything like that
Post by: gunjender on August 27, 2009, 11:25:27 pm
Hi Javier,

<<...so fetchmail should have permission to write there.>>
How do I give fetchmail Permission to write into /var/vmail/[mail.domain]/jens

The log of "fetchmail -v" is:
...
fetchmail: about to deliver with: /var/vmail/[mail.domain]/jens
sh: /var/vmail/[mail.domain]/jens: Permission denied
#*****fetchmail: MDA returned nonzero status 126
 not flushed
...

Thanks Jens
Title: Re: ebox -- vtiger -- dovecot -- howto, tutorial or anything like that
Post by: Javier Amor Garcia on August 28, 2009, 01:54:53 pm
One quick solution would be run fetchmail as 'ebox' user, is this possible in your setup?

I see that in the guide previous linked cron was used with the line:

Quote
*/10 *  * * *   eboxadmin   fetchmail

Maybe you coudl try something like  this:

Quote
*/10 *  * * *   ebox  fetchmail -f [path to fetchmail's configuration file]
Title: Re: ebox -- vtiger -- dovecot -- howto, tutorial or anything like that
Post by: gunjender on August 28, 2009, 09:24:08 pm
Hello Javier,

Thanks for the answer -- I'm out of office until next Sunday -- I'll try then and will be back to you...

Good Luck
Jens
Title: Re: ebox -- vtiger -- dovecot -- howto, tutorial or anything like that
Post by: gunjender on September 11, 2009, 05:18:02 pm
Hi Javier,

I'm back in the office since Monday and I just can't get fetchmail to store the e-mails where I can find them.

I am working on two systems. One in the office and the other at home.

In the office, when I try to fetch e-mail I become either the response "must have no more than -rwx--x---(0710) permissions" or the system tells me that "fetchmailrc must be owned by you", depending on the rights I give to the process (chmod).

At home fetching mail works but I can't see where the e-mails are stored.

Is there something basic here that I don't understand?

Is there anyone in Germany who gives professional or semiprofessional support?

Is there a basic manual or book available about ebox?

What do you suggest? We are really no beginners with the computer :-) it's just that we don't have any experience with Linux...
Title: Re: ebox -- vtiger -- dovecot -- howto, tutorial or anything like that
Post by: Javier Amor Garcia on December 01, 2009, 11:53:11 am
Quote
n the office, when I try to fetch e-mail I become either the response "must have no more than -rwx--x---(0710) permissions" or the system tells me that "fetchmailrc must be owned by you", depending on the rights I give to the process (chmod).

This is easy to solve:
chmod 0710 [fetchmail configuration file]
chown [your user].[your group] [fetchmail_configuration_file]