Koozali.org: home of the SME Server

Creating Multidrop mailboxes

Kelvin

Creating Multidrop mailboxes
« on: March 09, 2003, 05:25:34 AM »
Hi All,

We know SME can pickup mail from multidrop mailboxes.

Can you create a multidrop Mailbox in SME for a virtual domain ?

ie. Say we have setup virtual domains called vdomain1.com and vdomain2.com on the SME server.

We have the users mboxvd1 and mboxvd2 on the server as well.

We want any mails arriving at SME for anyone at vdomain1.com (ie. @vdomain1.com) to be dropped into the mailbox for mboxvd1 and @vdomain2.com to be dropped into the mailbox for mboxvd2.

Then, users of the domain vdomain1 may run their own mailserver offsite (could be another SME server or something else) which will be able to collect all their mails via multidrop from mboxvd1 and distribute the mail locally.

Kelvin

Tony Howden

Re: Creating Multidrop mailboxes
« Reply #1 on: March 09, 2003, 03:47:12 PM »
Hi

If I understand the query, you need to edit the qmail setup to accept all email for a domain to go to a user.

If memory is working ok it goes like this:

Create a custom template directory for each of

/etc/e-smith/templates-custom/var/qmail/control/virtualdomains

and

/etc/e-smith/templates-custom/var/qmail/alias

In the virtualdomains directory create a file

80localdomains

edit the content and add in

yourfulldomain.domain.tld:alias-apropriateshortname

i.e.
mboxvd1.com.au:alias-mboxvd1

and in the alias directory create the appropriate dot file

.qmail-apropriateshortname-default

( .qmail-mboxvd1-default )

and edit the content to have the name of the local user account you want to get the mail.

The '.' I think is important as they are meant to be hidden files and I think qmail requires this, but I havent tested them as normal files.

Finally run these:

/sbin/e-smith/expand-template /var/qmail/control/virtualdomains

and

/sbin/e-smith/expand-template /var/qmail/alias

and then restart qmail

service qmail restart

(although I seem to recall that qmail polls its config files every few minutes and doesnt really need the restart to recognise changes)

Like I say, this is from memory and it was months ago that I did mine, one of these days I'll revisit it and write some words that are more certain.

Hope this helps

cheers
Tony

Kelvin

Re: Creating Multidrop mailboxes
« Reply #2 on: March 10, 2003, 11:00:49 AM »
Hi Tony,

Thanks for the reply. I will try at some stage. However, it's obvious here that there is no "E-Smith" way (ie. through server manager, etc) to do this.

I'm wondering, does your experience with QMail extend to configuring it as a backup MX ? What I'm hoping is to setup one SME server as backup MX to the main SME server (they are both on different public IPs). Is it just as easy to configure the backup MX for many virtual domains as it is to do one ?

Thanks.

Kelvin

Tony Howden

Re: Creating Multidrop mailboxes
« Reply #3 on: March 11, 2003, 04:26:21 PM »
Hi Kelvin

Damn, but you'd have to ask that question......  

Don't know, but its on my list of things to work out when I have nothing to do.....  let's see....entry date was June 2001.....  hmmm.... almost due....


cheers
Tony