0

We currently have a qmail set up as an email gateway for incoming mail, and from there it is routed to a different internal mail server based on smtproutes.

Is there a way that we can have one domain forwarded from the qmail 'gateway' to multiple internal servers? For example, when someone will send an email to [email protected], it gets routed to our qmail server, and from there a copy is sent to both mailserver1.example.com and mailserver2.example.com - both of which have the same list of users and both of which think that they are the mailserver for example.com

Thank you.

0

2 Answers 2

1

One way to handle this would be to route the message on the head server to a .qmail file and then in the .qmail file forward the message to [email protected] and [email protected]. I think if you use the 'forward' program you could create a generic catch all that forwards all messages to the two servers.

/var/qmail/aliases/.qmail-default might look like this:

|forward "[email protected]" "[email protected]"
1
  • Thanks for this, I will try to see if I can implement it within our setup.
    – yayim
    Feb 1, 2010 at 23:03
1

Both? Probably not, at least with stock qmail. If you're happy to recompile qmail, you can define QUEUE_EXTRA to anything you like, and then route the local ones to a second local server.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .