Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Configuring Postfix as a fallback server
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mariourk
l33t
l33t


Joined: 11 Jul 2003
Posts: 807
Location: Urk, Netherlands

PostPosted: Tue Jan 22, 2008 11:15 am    Post subject: Configuring Postfix as a fallback server Reply with quote

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 :D
_________________
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
View user's profile Send private message
di1bert
l33t
l33t


Joined: 16 May 2002
Posts: 963
Location: Oslo, Norway

PostPosted: Tue Jan 22, 2008 11:41 am    Post subject: Reply with quote

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
View user's profile Send private message
elgato319
Guru
Guru


Joined: 15 Sep 2005
Posts: 546

PostPosted: Tue Jan 22, 2008 12:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
mariourk
l33t
l33t


Joined: 11 Jul 2003
Posts: 807
Location: Urk, Netherlands

PostPosted: Tue Jan 22, 2008 2:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum