ispCP - Board - Support
Setup Secondary Mail Relay - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: Setup Secondary Mail Relay (/thread-6560.html)

Pages: 1 2 3


Setup Secondary Mail Relay - vetch101 - 04-29-2009 12:30 AM

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


RE: Setup Secondary Mail Relay - vetch101 - 05-03-2009 11:47 PM

Hi all,

Anyone got any ideas on this?

Cheers,

Jx


RE: Setup Secondary Mail Relay - sci2tech - 05-03-2009 11:49 PM

Upgrade to last svn Wink


RE: Setup Secondary Mail Relay - vetch101 - 05-03-2009 11:52 PM

(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!


RE: Setup Secondary Mail Relay - sci2tech - 05-03-2009 11:56 PM

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


RE: Setup Secondary Mail Relay - vetch101 - 05-03-2009 11:59 PM

(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


RE: Setup Secondary Mail Relay - kilburn - 05-04-2009 09:52 PM

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


RE: Setup Secondary Mail Relay - vetch101 - 05-04-2009 09:56 PM

(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


RE: Setup Secondary Mail Relay - kilburn - 05-04-2009 10:29 PM

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


RE: Setup Secondary Mail Relay - vetch101 - 05-04-2009 10:41 PM

(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