Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Oct 2004 11:32:11 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Brent Wiese <brently@bjwcs.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Backup Mail Server Questions
Message-ID:  <20041001103211.GD91573@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <200409301811921.SM01528@SAMBA>
References:  <20040926184512.GA48082@happy-idiot-talk.infracaninophile.co.uk> <200409301811921.SM01528@SAMBA>

next in thread | previous in thread | raw e-mail | index | archive | help

--qGV0fN9tzfkG3CxV
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Sep 30, 2004 at 03:11:24PM -0700, Brent Wiese wrote:
=20
> Is there a way to make the backup MX server understand that some mail is
> ultimately destined for it and try to deliver it locally?
>=20
> Here would be an example:
>=20
> Mydomain.com is MX'd to mail.mydomin.com, which handles email for all my
> users. On that server, I've set up an alias for support@ that is actually=
 a
> forward to my ticket system box (ie: support@tickets.mydomain.com).

So people would usually send e-mail to 'support@mydomain.com' which
then gets automatically aliased to 'support@tickets.mydomain.com'?

And you want a system like aliases, but that can rewrite destinations
based on matching stuff after the '@' sign, rather than just before it?

Hmmm... virtusertable should do the trick.  Try adding:

    support@mydomain.com	support@tickets.mydomain.com

to /etc/mail/virtusertable , and then run 'make' to rebuild the .db
tables.  You'll need:

    FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')

in your `hostname`.mc file, but that should already be there, as it's
a standard in freebsd.mc

This is analogous to the situation where you run a company spread over
multiple sites each with their own local mail server, but all using
the same e-mail domain: you'ld use virtusertable to redirect the
incoming e-mail to the appropriate site server for each user.

> In the event my main mail server is down, I'd like to use the
> tickets.mydomain.com box as the backup MX. Its already running SMTP to
> handle the tickets, so seems a logical choice.=20

Yes, you should be able to use the tickets machine as a backup MX for
your domain as well as using the virtusertable stuff as above.
Indeed, if incoming e-mail for support@mydomain.com just happens to be
delivered to the tickets machine, you'll save a round trip to the main
server.
=20
> What would be ideal is to have mail destined for support@ to be delivered
> locally. So, for example, a user can create a ticket saying the mail serv=
er
> is down (of course that is only useful if admins have off-site email
> addresses the ticket system notifies for redundancy, but that's easy
> enough).

That should work for your unix boxes where they use a local sendmail
instance for sending e-mail.  Windowzy stuff that speaks SMTP directly
to the server will need somehow to be told to connect to the backup MX
rather than the main server.  Hmmm... it may be possible to use VRRP
to do that automatically; you'ld have to experiment.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

--qGV0fN9tzfkG3CxV
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)

iD8DBQFBXTIriD657aJF7eIRAlmrAJ4gdMgyt68mve3iEqK0Vr++OoVNvwCfdzh3
SuXMY5YpctqdjnvgpEVkaZ0=
=wLQv
-----END PGP SIGNATURE-----

--qGV0fN9tzfkG3CxV--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041001103211.GD91573>