OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Local delivery in cluster enviroment

From: `VL (vl.homutovgmail.com)
Date: Tue Feb 12 2008 - 02:06:01 CST


Hello, postfix users!

I need some help with setting up postfix.

Here is my setup: i have small internet gateway that runs
postfix. Postfix is set up to deliver all mail from internal
network to ISP`s SMTP server. Mail for local
users (system messages to root) is delivered to local mailbox.

Later i installed heartbeat and replicated gateway. Now
i have two computers that share storage(DRBD). Postfix
runs only on active node and uses cluster ip.

Now i have a problem: second (passive) node doesn`t run postfix,
but i want to receive system alerts to mailbox, that is located on shared
storage(avaliable only on active node).

Looks like i have to run two copies of postfix on same machine:
one to server my gateway (accepts messages on cluster ip and sends them to ISP)
and second to accept local messages and send them to 1st postfix.

This looks like a mess and i want to hear your advices on my situation.
Once more: i want to receive system mail from both machines to one mailbox
located on shared storage (it is accessible via imap server).

Thank you