Koozali.org: home of the SME Server

How best to configure domain emails under one email account...

Offline ber

  • *****
  • 239
  • +0/-0
Hi what would be the best procedure to configure an email account so taht all emails belonging to a particular domain is received into this account.
the server is being used a a secondary Server for MX records in case the main server goes down.
We want to configure  Main server to pull the emails once its back online. (shut down or failure issues). The SME is hosting the Web traffic but not MX.

Thanks. :-)

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: How best to configure domain emails under one email account...
« Reply #1 on: June 12, 2011, 03:15:20 AM »
the server is being used a a secondary Server for MX records in case the main server goes down.
We want to configure  Main server to pull the emails once its back online. (shut down or failure issues).

You don't need to do that. Just add the domain name to /var/qmail/control/rcpthosts (via a template fragment) and qmail will do the rest. Main servers don't need to pull emails from the secondary MX. The secondary MX will deliver via SMTP as soon as it can.

But usually secondary MXs are a waste of time, and just make it harder to combat spam. If your server is down, mails will just wait in sender queues until it is back up again. You don't need a secondary MX.

If you insist on configuring your SME server to be a secondary MX, rcpthosts is all you need to configure qmail, but you will need more template changes to configure qpsmtpd. But just don't bother.

Offline ber

  • *****
  • 239
  • +0/-0
Re: How best to configure domain emails under one email account...
« Reply #2 on: June 12, 2011, 07:29:49 AM »
Hi charlie, can you advise further the procedure for this...
I'm unsure what is meant by template gragment, sorry still learning the Linux fs. (newbie)

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: How best to configure domain emails under one email account...
« Reply #3 on: June 12, 2011, 05:05:55 PM »
ber

Please read this
http://wiki.contribs.org/Template_Tutorial
and the links it refers to.

I would say that the topic is beyond your current skill level & ability, therefore you would be best paying a consultant to make those required changes for you, unless of course someone here is willing to advise you exactly what steps are required (with all relevant details).
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: How best to configure domain emails under one email account...
« Reply #4 on: June 12, 2011, 06:36:58 PM »
Hi charlie, can you advise further the procedure for this...

Yes - do nothing. Do not provide secondary MX for that domain. If you have set up your server as an MX in that domain's DNS, then remove it. Simple.

Offline ber

  • *****
  • 239
  • +0/-0
Re: How best to configure domain emails under one email account...
« Reply #5 on: June 12, 2011, 10:16:42 PM »
done...

Offline purvis

  • *****
  • 567
  • +0/-0
Re: How best to configure domain emails under one email account...
« Reply #6 on: July 01, 2011, 10:50:00 AM »
ber, i use a service at dyndns.com that does what you want for not a whole lot of cash, about 40 dollars a year.
we are in a louisiana, a hurricane prone area.
i purchased the service when our internet provider, AT&T, would not stay working. i left them for a cable internet company.
it use to be called "mailhop" but now i see it is called "sendlabs mx backup"

i do not need toliet paper either but it is good have and use.
« Last Edit: July 01, 2011, 10:53:46 AM by purvis »