Redundant Postfix Servers

I am planning to setup redundant Postfix servers.
What is the best design for this.
I have my internal exchange servers which will relay mails to my Postfix servers.
I want to setup the Postfix servers with redundancy & load balancing.
Even if any one of the Postfix servers are down the mail flow should be via the available Postfix servers.
There should not be any down time or impact even if any of the mail servers are down.
I want to ensure that not even a single mail is dropped in case if any of the servers are down.
LVL 1
SrikantRajeevAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

arnoldCommented:
Please explain your use of the postfix servers, are they serving any local mail or are their use is solely for relaying outgoing mail i.e. taking the burden from the exchange dealing with outgoing queue processing.

Load balancing sort of having a Loadbalancing switch infront of the server, you would use DNS entry for smarthost.internal.private which will internally resolve to as many servers as you setup with a TTL 30, 25,60,90 seconds.

In outgoing situation, you can not balance/distribute the queue.  It is locally stored and locally processed.  if a system goes down, the only way to get the messages out is to fix and boot the server, or gain access to the data and .... reprocess it.
Usually, if a message did not make it on the initial connection, it is likely not going to make it on the nth i.e. the recipient domain/user is more likely than not to be invalid.

a failed server, will cause your exchange to requeue the outgoing messages until it hits a functional one.  Adding scripts that check on the availability of the mail server and those that are not available removed via DNS updates...

Commonly, mail servers are setup in tandem on the incoming side.
Multiple head units with one common storage where the mailboxes are stored.
0
SrikantRajeevAuthor Commented:
In case if there are mails in the Postfix Queue & due to some reason the server fails & by which it is not able to send e-mails.
Once the server is restarted will the mails in the Queue will be available & will it automatically be sent .
Will there be any loss of e-mails
0
arnoldCommented:
Messages in the queue will be retransmitted when the system comes up, but if it is down for long enough, one attempt might be still made before the sending of the message is given up on because the queue lifetime has been exceeded.

Are the mails in the postfix queue only outgoing i.e. replies as well as bounces of undeliverable mail.

A possible loss of email always exists when the mail server  dies. Depending on the reason, the drive could be pulled the outgoing queue looked at and messages if needed copied so that they can be transmitted.

Some email loss is more significantl than others, so you need to be more specific.
I.e. you have hundreds of emails in the queue that are NDRs to the sender.  Would you consider those email loss significant?  In many cases, those emails are spam sent to your domain......
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

SrikantRajeevAuthor Commented:
I will be using this Postfix for both outgoing & to receive the NDR.
0
arnoldCommented:
Please explain what do you mean to receive the NDR,

Is your postfix sitting between the exchange and the internet?
I.e. it is filtering the incoming and passing them along to the exchange at the same time deals with any rejected by exchange or responses from the inside to deliver them out?

In that scenario, if the server dies as soon as an accepted message comes in, it may not have the opportunity to pass it on to the exchange in which case it will introduce a delay or possible message loss.
0
SrikantRajeevAuthor Commented:
Yes my posftix will be sitting between the exchange & the internet.
Most of my mail flow will be only outgoing. But I want my NDR mails also to be received.
I need those NDRs for analysis purpose.
0
arnoldCommented:
NDRs are sent to the sender of a message, it will not be delivered to "you" until they double bounce <#@> i.e. the recipient is not valid or could not be reached and the sender is not valid or can not be reached.
At that point if configured, the double bounce could be delievered to the local postmaster account or an account configured to receive them.

You can use maillog/exchange smtp data to analyze some data.  Guess it depends on what data you need.
0
SrikantRajeevAuthor Commented:
I am the sender & I would like to receive the NDR
0
arnoldCommented:
If you are the sender, the NDRs either generated when your server is getting a 5xx or long enough a 4xx (until queue lifetime is exceeded) the sender (envelope sender) will be sent the NDR.

I am not sure I understand your last comment.

There is the NDR and there is the double bounce meaning the NDR could not be delivered to the sender of the original message.

i.e. usera@somedomain.com sends an email to userb@yourdomain.com.
userb@yourdomain.com has exceeded their storage quota. Your server now sends an NDR to usera@somedomain.com (envelope sender is <>, bounce)
Your server is unable to reach somedomain.com for queue lifetime, or the remote server has a permanent failure during your attempt (5xx error)
Your server goes into trying to generate an "NDR" for the NDR meaning double bounce. The sender is <#@> and the recipient is double bounce recipient on your server.  These messages are not meant to leave the server.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SrikantRajeevAuthor Commented:
Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Email Servers

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.