|
|
#1 (permalink) |
![]() |
I needed a MX backup server so that i can move my exchange server.
I came up with this: Download and install Ubuntu server 9.04. (Virtual or hardware) When the installation is done run: Code:
sudo -s Now when you have a root terminal run: Code:
apt-get update Code:
apt-get install postfix Code:
nano /etc/postfix/main.cf Code:
smtpd_recipient_restrictions = permit_mynetworks reject_unauth_destination Code:
relay_domains = $mydestination domain1.com domain2.net domain3.org And the last line: Code:
transport_maps = hash:/etc/postfix/transport Now we need to create the transport file so run: Code:
nano /etc/postfix/transport Code:
domain1.com smtp:mail.domain1.com domain2.net smtp:mail.domain2.net domain3.org smtp:mail.domain3.org Now save the file ctrl + O the exit ctrl + X. Now we have to create a binary database for the transport. Code:
cd /etc/postfix/ Code:
postmap transport Code:
postfix reload mailq (List the mail queue) postsuper -r queueid (sends that mail from the queue) From a external ip portforward port 25 to this unit. Now add that external ip to your MX records. (with a higer value than your standard mailserver) When the main MX record server goes down email will be sent to the backup server. When the primery server gets back online again postfix will send all mails to the smtp specified in "/etc/postfix/transport". Try to see that it works. download mailsend.exe http://www.muquit.com/muquit/softwar.../mailsend.html Enter the ip to the backupserver and follow the instructions. if it works it will relay the mail to your server. GL
__________________
"Of all the things I've lost, I miss my mind the most" Untangle Reseller (Sweden) WebFooL@fakenews.se http://fakenews.se/ Need space to Upload content for you forum post? Last edited by WebFooL; 07-10-2009 at 02:39 PM.. |
|
|
|
|
#2 (permalink) |
|
Master Untangler
Join Date: Jan 2008
Location: Sydney Australia
URLs submitted: 3
Posts: 111
![]() |
Hi WebFool, I tried following your instruction, but have a question at the installing postfix part. What did you select at the postfix configuration screen that comes up?
Or did you just tell it that you will configure later. I think I tried the " smart host" option, but I'm not sure of what other options should be changed in the main.cf file. |
|
|
|
|
#3 (permalink) |
![]() |
If i remember right.
I first install it as a local server. After all configurations where done i change the network access in the "/etc/postfix/main.cf" so that my loacl network can relay thru it. My setup is on a remote location. I can access it later to night and verify how my main.cf file looks.
__________________
"Of all the things I've lost, I miss my mind the most" Untangle Reseller (Sweden) WebFooL@fakenews.se http://fakenews.se/ Need space to Upload content for you forum post? Last edited by WebFooL; 09-08-2009 at 09:37 AM.. |
|
|
|
|
#4 (permalink) |
![]() |
Can you post a copy of your main.cf then i can have a look.
__________________
"Of all the things I've lost, I miss my mind the most" Untangle Reseller (Sweden) WebFooL@fakenews.se http://fakenews.se/ Need space to Upload content for you forum post? |
|
|
|
|
#6 (permalink) |
|
Master Untangler
Join Date: Jan 2008
Location: Sydney Australia
URLs submitted: 3
Posts: 111
![]() |
Thanks for the offer WebFool. I'm going to start from scratch on that PC, I stuffed things up on it anyway, and it was only a test.
If I have any problems, I'll post the main.cf file for you to have a look at. ![]() |
|
|
|
|
#7 (permalink) |
![]() |
Ok, So my main site hade some problems today and it resolved in that my MX backup server came in use.
And it workt :P about 30-40 mails during 1 h for 3 different domains. So i can really recommend creating one. If you want a custom Virtual host created for you just hook me up with a pm and i will help you.
__________________
"Of all the things I've lost, I miss my mind the most" Untangle Reseller (Sweden) WebFooL@fakenews.se http://fakenews.se/ Need space to Upload content for you forum post? |
|
|
![]() |
| Thread Tools | |
|
|