View previous topic :: View next topic |
Author |
Message |
mariourk l33t
Joined: 11 Jul 2003 Posts: 807 Location: Urk, Netherlands
|
Posted: Tue Jan 22, 2008 11:15 am Post subject: Configuring Postfix as a fallback server |
|
|
I'm having somewhat of a bandwidth problem. Sometimes the traffic peaks. When a mailserver is trying to deliver an email to my server at that time, the message won't come through and timeout. The sending mailserver will try it again some other time, but this causes a delay in my incoming messages. Sometime this can take several days.
What I would like to do, is install another sever somewhere else, that could act as a fallback. When the main-server is busy, emails should go to the fallback. The fallback than accepts and stores those messages and tries the hand them to the mainserver at a later time. The advantage is that I would have controll over the delay-time. And I can still recieve emails when the mainserver goes down.
The problem is, I have no idea how to configure Postfix as a fallback-server. With Google I couln'd find much of a good howto that describes how to do this. I also couldn't find anything on this forum.
I really hope someone can help me out here.
Thanks a lot anyway _________________ If there is one thing to learn from history, it's that we usualy don't learn anything from it, at all. |
|
Back to top |
|
|
di1bert l33t
Joined: 16 May 2002 Posts: 963 Location: Oslo, Norway
|
Posted: Tue Jan 22, 2008 11:41 am Post subject: |
|
|
We changed to Exim a while back but I did manage to find this which should do the same thing.
What you want to do is have your second fallback server accept mail for your domain, but not store
in in a mailbox, but rather just spool it. You can then use fetchmail to run ETRN against your fallback server
from your primary server when the load is a little lower.
Here's an example of the fetchmail file:
Code: |
defaults
proto etrn
poll mail.ourdomain.com
fetchdomains yourdomain.com
|
I think that should be enough to get you started....
-m |
|
Back to top |
|
|
elgato319 Guru
Joined: 15 Sep 2005 Posts: 546
|
Posted: Tue Jan 22, 2008 12:30 pm Post subject: |
|
|
just setup a normal postfix mta
in main.cf
Quote: |
relay_domains =
$mydestination,
/etc/postfix/relay-domains
transport_maps = hash:/etc/postfix/transport
|
relay-domains
Quote: |
domain1.com
domain2.com
|
transport
Quote: |
domain1.com smtp:[ip-of-your-first-mailserver]
domain2.com smtp:[ip-of-your-first-mailserver]
|
after that just reload postfix
Code: |
postmap transport
postfix reload
|
postfix should now accept the domains specified in relay-domains and send them to the server you put in the transport file |
|
Back to top |
|
|
mariourk l33t
Joined: 11 Jul 2003 Posts: 807 Location: Urk, Netherlands
|
Posted: Tue Jan 22, 2008 2:27 pm Post subject: |
|
|
Thanks! I will try this. _________________ If there is one thing to learn from history, it's that we usualy don't learn anything from it, at all. |
|
Back to top |
|
|
|