Current time: 11-16-2024, 05:04 PM Hello There, Guest! (LoginRegister)


Post Reply 
Setup Secondary Mail Relay
Author Message
vetch101 Offline
Junior Member
*

Posts: 45
Joined: May 2007
Reputation: 0
Post: #1
Setup Secondary Mail Relay
Hi all,

I've got a client who is currently running their own mailserver, but has a provider who works as a relay for when they are not available...

MX records point with weight IN MX 10 to their main server and if it's not available, IN MX 50 on the backup mail relays.

Is this something we can configure with ISPCP.

Also, how would we go about configuring MX records and DNS with ISPCP?

Thanks in advance,

Jx
04-29-2009 12:30 AM
Find all posts by this user Quote this message in a reply
vetch101 Offline
Junior Member
*

Posts: 45
Joined: May 2007
Reputation: 0
Post: #2
RE: Setup Secondary Mail Relay
Hi all,

Anyone got any ideas on this?

Cheers,

Jx
(This post was last modified: 05-03-2009 11:48 PM by vetch101.)
05-03-2009 11:47 PM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #3
RE: Setup Secondary Mail Relay
Upgrade to last svn Wink
05-03-2009 11:49 PM
Visit this user's website Find all posts by this user Quote this message in a reply
vetch101 Offline
Junior Member
*

Posts: 45
Joined: May 2007
Reputation: 0
Post: #4
RE: Setup Secondary Mail Relay
(05-03-2009 11:49 PM)sci2tech Wrote:  Upgrade to last svn Wink

I'm guessing it's been added?

I hate to ask, but is it stable? I've got a fair few sites running on it - I don't want to introduce instabilities... Wink

Jx
(05-03-2009 11:49 PM)sci2tech Wrote:  Upgrade to last svn Wink

BTW - thanks for the Uber Fast reply!
(This post was last modified: 05-03-2009 11:53 PM by vetch101.)
05-03-2009 11:52 PM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #5
RE: Setup Secondary Mail Relay
Yes it was added today but was not tested enough. Seems to work ok, but can`t recomand for productive servers. If you want you can add it manually in /var/cache/bind/domain.tld.db
05-03-2009 11:56 PM
Visit this user's website Find all posts by this user Quote this message in a reply
vetch101 Offline
Junior Member
*

Posts: 45
Joined: May 2007
Reputation: 0
Post: #6
RE: Setup Secondary Mail Relay
(05-03-2009 11:56 PM)sci2tech Wrote:  Yes it was added today but was not tested enough. Seems to work ok, but can`t recomand for productive servers. If you want you can add it manually in /var/cache/bind/domain.tld.db

Ok - so that would fix the DNS...

How would I set up the mail config?
Is there a way to setup relaying?

Cheers,

Jx
(05-03-2009 11:56 PM)sci2tech Wrote:  Yes it was added today but was not tested enough. Seems to work ok, but can`t recomand for productive servers. If you want you can add it manually in /var/cache/bind/domain.tld.db

Incidentally - cool feature, btw... Wink

Will definitely be very useful!

Thanks for the progress Wink

Jx
(This post was last modified: 05-04-2009 12:03 AM by vetch101.)
05-03-2009 11:59 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #7
RE: Setup Secondary Mail Relay
vtech101 Wrote:How would I set up the mail config?
Is there a way to setup relaying?

There's no need for any special configuration on the ispcp part Smile
05-04-2009 09:52 PM
Visit this user's website Find all posts by this user Quote this message in a reply
vetch101 Offline
Junior Member
*

Posts: 45
Joined: May 2007
Reputation: 0
Post: #8
RE: Setup Secondary Mail Relay
(05-04-2009 09:52 PM)kilburn Wrote:  
vtech101 Wrote:How would I set up the mail config?
Is there a way to setup relaying?

There's no need for any special configuration on the ispcp part Smile

Ok...

I thought that I would have to add something into the setup so that once their server is back up, then the mail will then relay to the main server?

The ISPCP only wants to be a temporary store...

Jx
05-04-2009 09:56 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #9
RE: Setup Secondary Mail Relay
Hmmm maybe I misunderstood you... The ispcp server is the backup or main one?
If it's the main one then I was correct, you don't need to do anything special.
If it's the backup server, you should manually remove/comment the domain in the files /etc/postfix/ispcp/domains and /etc/ispcp/postfix/working/domains . After that, postmap the former file and tell postfix to reload it's config. Voilà, the server will continue accepting mails for this domain, but they will be relayed to the main server instead of locally delivered Smile
05-04-2009 10:29 PM
Visit this user's website Find all posts by this user Quote this message in a reply
vetch101 Offline
Junior Member
*

Posts: 45
Joined: May 2007
Reputation: 0
Post: #10
RE: Setup Secondary Mail Relay
(05-04-2009 10:29 PM)kilburn Wrote:  Hmmm maybe I misunderstood you... The ispcp server is the backup or main one?
If it's the main one then I was correct, you don't need to do anything special.
If it's the backup server, you should manually remove/comment the domain in the files /etc/postfix/ispcp/domains and /etc/ispcp/postfix/working/domains . After that, postmap the former file and tell postfix to reload it's config. Voilà, the server will continue accepting mails for this domain, but they will be relayed to the main server instead of locally delivered Smile

Hi Kilburn,

Looks good... Thanks very much for the help!

I have to admit, I'm not terribly au fait with postfix...
... so, if you'll indulge me, I've got a couple of questions...

Firstly, when you say "postmap the former file", presumably that means run the command
postmap /etc/postfix/ispcp/domains
... is that correct?

Then reload Postfix is
/etc/init.d/postfix reload

Then the system will accept mails, but will have nowhere local to deliver them and so will just forward them on?

Assuming I've understood, that sounds great...

The only slight concern I have is that both the files you mentioned say:-

# MTA Managment Domains List;
#
# Please do NOT edit it manually;
#

At the top...

If I do edit them manually, does that mean that after every new domain added to the list throguh the web panel, I'll have to edit this again?

Cheers,

Jx
05-04-2009 10:41 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 3 Guest(s)