[postfix] Auxiliary backup server
Hello there,
I was thinking of having an auxiliary backup server in case my postfix is down (maintenance, downtime, etc). I wanted to use my friends postfix for that purpose. I have added MX records which point to his server. Now, my idea of that is to put on HOLD all mails which come from my domain for as long as my server is down. When my server is up, I would do postsuper -r ALL which would send all mails to my mail server. I've got a question regarding that though, : - my friend's server is obviously hosting other domains than mine and has different accounts set up. For that purpose I would need to accept all mails that come for mydomain.com on his server regardless if the account exist or not. How to do that? |
hello. most of what you're asking is answered in here. there is no need to put mail in HOLD and requeue. the secondary mx will deliver to the primary when the primary comes back online. just make sure the secondary has a higher MX preference number (i.e. lower priority) than the primary.
|
Cool, but what to do with this?
550 5.1.1 <test@mydomain>: Recipient address rejected: User unknown in local recipient table; I do not want to add all of them users on the backup mx... |
i don't understand what it is that you are showing. is it a log entry from the secondary mx for mydomain? on the secondary mx, mydomain should be listed under relay_domains, not mydestination. regarding your last comment, the link above says:
Quote:
|
Hey Berhanie,
I'm sorry, that was the output on the backup mx server I can't get rid of. I followed your instructions and these given in a link above. I did a lot of tests but something is missing. I am getting the above "unknown recipient" message all the time. I'll post my config for my backup mx in a moment, maybe that will help. |
Here's the backup mx conf:
Code:
alias_database = hash:/etc/aliases.db Code:
@mydomain x Code:
mydomain OK Code:
mydomain smtp:[mydomain] |
Quote:
also, you should not have mydomain on the transport table if you are relying on mx records. |
All times are GMT -5. The time now is 12:41 AM. |