Solved

Postfix Backup mx configuration

Posted on 2010-11-26
7
669 Views
Last Modified: 2012-06-21
Hi there.

I have a backup mx using postfix at the moment, it is set to route the primary mx of domains using transport mapping.

Is there a way I can tell postfix to deliver only to the primary mx rather than manually mapping it every time?

Thanks in advance.
0
Comment
Question by:alexanderfoti
  • 3
  • 3
7 Comments
 
LVL 19

Expert Comment

by:bevhost
ID: 34220559
In the DNS entries for the MX records use a high priority (smaller number) for the primary
0
 
LVL 1

Author Comment

by:alexanderfoti
ID: 34221487
I think you have misunderstood the question, or I have worded it badly.

At the moment, I already have domains with this postfix server as their second MX.

if I dont implement a transport map, the server will try to deliver to their primary mx, fail (As its down etc) then try to deliver to the second mx which is itself.

It will then go into a mail loop. To prevent this, I have transport maps setup to tell postfix only to send to the primary mx. Whilst this works, it means I need to add it in to the configuration everytime I add a domain.

Is there a way in the config of postfix to tell it to only send to the first mx?
0
 
LVL 19

Accepted Solution

by:
bevhost earned 500 total points
ID: 34221558
The name that you use in the secondary MX, does postfix recognise that as itself?
eg if postfix is behind a NAT gateway, then the MX record will resolve to a IP address that is not bound to the postfix server.
0
Network it in WD Red

There's an industry-leading WD Red drive for every compatible NAS system to help fulfill your data storage needs. With drives up to 8TB, WD Red offers a wide array of solutions for customers looking to build the biggest, best-performing NAS storage solution.  

 
LVL 1

Author Comment

by:alexanderfoti
ID: 34221957
No - the server is behind a nat and doesnt recognise it as itself, but, another server I have that ISNT behind a nat behaves in the same way
0
 
LVL 61

Expert Comment

by:gheist
ID: 34226457
all mailers should be identical.
some use lowest order mailer to catch spam and make dynamic blacklisting.
0
 
LVL 19

Assisted Solution

by:bevhost
bevhost earned 500 total points
ID: 34226596
Why do you need a backup MX?
Is the primary connected by dialup? or some other non permanent connection?

Why not allow the mail to queue on the sending MTA?
At least the sender will have some chance of knowing that the mail is not beling delivered yet.

As for why postfix is behaving this way I'm not sure, I would not configure this scenario for the reasons above.  In the MX records, do you use the actual hostname of the backup mx server, (ie the one with the matching forward and reverse DNS entries?) or are you using alias names from the domain you are doing backup MX for.?
0
 
LVL 1

Author Closing Comment

by:alexanderfoti
ID: 34295526
Thanks - The Backup MX's are provided as a service to prevent end users getting bounecbackswhen a client's site is down from non RFC conforming mail servers.
0

Featured Post

Free camera licenses with purchase of My Cloud NAS

Milestone Arcus software is compatible with thousands of industry-leading cameras for added flexibility. Upon installation on your My Cloud NAS, you will receive two (2) camera licenses already enabled in the software. And for a limited time, get additional camera licenses FREE.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now