On Tue, 4 May 2010, Cameron Smith wrote:

> On Tue, May 4, 2010 at 11:26 AM, Michael Schwartzkopff 
> <[email protected]>wrote:
>
>> Am Dienstag, 4. Mai 2010 20:19:02 schrieb Cameron Smith:
>>> On Tue, May 4, 2010 at 10:17 AM, David Lang
>>>
>>> <[email protected]>wrote:
>>>> On Tue, 4 May 2010, Cameron Smith wrote:
>>>>> I am currently using Heartbeat to manage http, mysql and a DRBD
>> device
>>>>> between two nodes.
>>>>>
>>>>> I want to also manage Postfix with Heartbeat.
>>>>>
>>>>> What things should I keep in mind in the configuration of Postfix so
>>>>> that mail services are tied to the IP managed by Heartbeat rather
>> then
>>>>> the
>>>>
>>>> IP's
>>>>
>>>>> of each node? Are there any unique things regarding HA and an MTA I
>>>>
>>>> should
>>>>
>>>>> be aware of when setting this up?
>>>>
>>>> My first question is why you need to tie Postfix to the VIP instead of
>>>> just letting it listen on IPANY (which would let it receive mail at
>> both
>>>> the real IP
>>>> addresses and the VIPs).
>>>>
>>>> I have several dozen clusters with postfix on them, and it works just
>>>> fine without needing to know anything about heartbeat.
>>>>
>>>> David Lang
>>>
>>> Well how do you manage mail accounts for users in addition to mail from
>> the
>>> server itself? Where are the files for those mail accounts living? On one
>>> of the cluster nodes and not on the other (non DRBD device)? What happens
>>> to mail for those people when the node goes down?
>>
>> Oh, you are taking about a MTA WITH mail boxes and a daemon like cyrus
>> doing
>> pop3 or imap?
>>
>> That's, of course, a different story. You need shared storage like DRBD for
>> this setup. And a floating IP address.
>>
>> --
>> Dr. Michael Schwartzkopff
>>
>
> Yeah!
> Since I already have that in place for http and mysql I just wanted to know
> if there was anything unique I need to do for postfix config for when it is
> running on primary (managed by heartbeat) and how do I handle the sending of
> system emails on the secondary since postfix will be down there?

What you need to do is to separate the two functions.

For example, if you were using cyrus for your mail store, you could run postfix 
on both boxes normally and have them configured to deliver over the network (to 
the VIP) via LMTP. The postfix config would not need to change.

Then you would need to configure cyrus to run on one box or the other (and 
configure the replication method)

If you are configuring postfix to deliver mail to a local filesystem directly, 
then you end up needing to have two configs on each system, one to use when the 
system needs to deliver mail locally, the other to use when it needs to deliver 
mail to the other system. Then have the 'stop' mode switch to the config that 
delivers mail to the other system.

David Lang

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to