LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-28-2005, 04:14 AM   #1
LinuxLover
Member
 
Registered: Feb 2004
Distribution: Centos 7 x86_64 , Rocky Linux 8 (aarch64)
Posts: 196

Rep: Reputation: 32
backup email server in Postfix


Hello every body,


I have configured two email server in postfix
A- is main email server with high priority
B- is the backup email server for the same domain with low priority.

Most of the time domain email is handeled by server A.

now when server A is down email will be recieved by by the backup email server that is B.

now when main server A comes back online again.

What will be about the Mails which have been recieved by the serer B (which was the backup email server)
How users will will recieve those mails now.

Plz reply me..


One the thing about this

I read in the book of postfix that if mail server is down the backup sever recieve the mail and when main email server (that has higher priority) comes back online then backup email server forward all email to mail email server.
Any body have idea how this can work.
what will be configuration for that.
 
Old 12-28-2005, 09:39 AM   #2
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
If I understand your post correctly, then your primary mail server is also the final destination for all emails. i.e. The mailboxes reside on this server.

If this is the case, then your backup mail server should NOT be configured with your domain name listed in "mydestination" variable in main.cf. This tells postfix not to handoff the inbound e-mail to the local delivery agent (like procmail). Just put your domain name in relay_domains file and override the MX record used by the backup mail server by using the transport maps. This way, all e-mail is queued by the backup mail server and delivered when the primary becomes available.

Don't forget that spammers routinly go after the backup mail server because the primary "could" be configured to trust all e-mail from the backup mail server - thus bypassing spam checks, etc... Also, because the backup mail server does not have any local mailboxes, it will need to be configured to check for valid recipents while the primary e-mail server is down. This can be done with a local database (or LDAP) using the relay_recipient_maps option in main.cf.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix relay backup server Nelson Linux - Software 0 12-08-2005 03:20 AM
backup email users to new server wauchula Linux - Newbie 2 10-11-2005 03:33 PM
How do I configure postfix master to forward all email to an email server ? hello321_1999 Linux - Software 1 11-18-2004 04:43 AM
Is Postfix an Email Server? Gib Sandwich Linux - Software 6 08-24-2004 02:23 AM
backup postfix server on same LAN? SolidSnake Linux - Networking 10 06-04-2004 11:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration