Closed TopicStart new topicStart Poll

> Backup MX setup, Config Backup MX for mine and others
hschneider
Posted: Jul 3 2004, 07:24 AM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 6631
Member No.: 195
Joined: 19-June 02



You just should give it a test run. It would be nice, if this topic could be cleared this way. There are many knowledge fragments flying around, but the complete solution is still missing.

>Worse it will get thrown away if the mailboxes don't exist on my server?

For this you'll need cmdaliases:

QUOTE

CMD ALIASES

   CmdAliases implement aliases that are handled only through commands and
   can be thought of as a user level implementation of custom domain
   processing commands. The command set is the same of the one that is
   described above ("Custom domain mail processing") and won't be explained
   again here.

   For every handled domain (listed inside 'domains.tab') a directory with
   the same domain name is created inside the 'cmdaliases' subdirectory.
   This directory is automatically created and removed when you add/remove
   domains through the CTRL protocol (or 'CtrlClnt').

   When a mail for 'USER@DOMAIN' is received by the server, the domain
   'DOMAIN' is to be handled locally, and the standard users/aliases lookup
   fails, a file named 'USER.tab' is searched inside
   '$MAIL_ROOT/cmdaliases/DOMAIN'. If such file is found, commands listed
   inside the file (whose format must follow the one described in the
   previous section) are executed by the server as a matter of mail message
   processing. An important thing to remember is that all domain and user
   names, when applied to the file system, must be lower case.

   The use of the command '[SMTP]' must be implemented with great care
   because it could create mail loops within the server.


Furthermore:
Use "smtprelay" instead of "smtp". This delivers its target(s) directly without using DNS lookups, which should solve the loop problem.

QUOTE

    [SMTPRELAY]
         "smtprelay"[TAB]"server[:port],server[:port],..."[NEWLINE]

        Send mail to the specified SMTP server list by trying the first, if
        that fails, the second and so on.

        Otherwise you can use this syntax:

         "smtprelay"[TAB]"#server[:port],server[:port],..."[NEWLINE]

        To have XMail random-select the order the specified relays.


Again:
If you or someone else manages to put these fragments together, a backup MX howto would be greatly appreciated.


--------------------
Bye,
Harald


-- Download XMail Queue Manager 1.46 NOW: XMail Server Tools
-- Cross platform remote queue management!
-- Message analyzing on the fly!
-- Builtin diagnostics knowledge base!
-- Manages multiple mail queues!

Sponsored by
CD-Produktion und DVD-Produktion and Homestaging Saarland - Immobilien schneller verkaufen in der Region Saarland, Rheinland-Pfalz und Luxembourg
PMEmail PosterUsers Website
Top
nickp
Posted: Jul 3 2004, 06:43 PM
Quote Post


Newbie
*

Group: Members
Posts: 7
Member No.: 1187
Joined: 27-June 04



OK I have tested it and it works... no loops!

How to create a backup server

Assume
Domain name = MyDomain.com
Primary mailserver = mail.mydomain.com
backup mailserver = mail2.mydomain.com

1) Set up MX record for mydomain.com so that mail is delivered to the primary server in preference to the backup e.g.

mydomain.com. IN MX 10 mail.mydomain.com
mydomain.com. IN MX 20 mail2.mydomain.com

2) On the backup server, create a customdomain tab for MyDomain.com
name: MyDomain.com.tab
content: "smtprelay"<tab>"mail.mydomain.com"<newline>
image007.gif
PMEmail Poster
Top
hschneider
Posted: Jul 3 2004, 07:18 PM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 6631
Member No.: 195
Joined: 19-June 02



Fine fine ... thank U! image008.gif



--------------------
Bye,
Harald


-- Download XMail Queue Manager 1.46 NOW: XMail Server Tools
-- Cross platform remote queue management!
-- Message analyzing on the fly!
-- Builtin diagnostics knowledge base!
-- Manages multiple mail queues!

Sponsored by
CD-Produktion und DVD-Produktion and Homestaging Saarland - Immobilien schneller verkaufen in der Region Saarland, Rheinland-Pfalz und Luxembourg
PMEmail PosterUsers Website
Top
svenvg
Posted: Jul 6 2004, 10:28 AM
Quote Post


Junior Member
**

Group: Members
Posts: 34
Member No.: 1088
Joined: 29-April 04



Great! ... or not?

Like I pointed out in one of the previous posts: this should do the trick, BUT with this the auto sync tool from Altaircom isn't working anymore.... and that is a pity, because if you are ISP like we are and you are hosting domains for your customers you have a lot of domains...

As I see it this can be overcome as long as you only have 2 servers, A primary one and a secondary one...

acording Xmail manual:
QUOTE
If a message that has as target domain of 'sub1.sub2.domain.net' arrives at the XMail server, 'AND' XMail does not have a real domain 'sub1.sub2.domain.net' inside its domain list, XMail decides if this domain gets a custom domain processing by trying to lookup:

sub1.sub2.domain.net.tab
.sub2.domain.net.tab
.domain.net.tab
.net.tab
.tab

inside the 'custdomains' directory.


So: I could make just the .tab file, meaning "all not local domains"...?

once you have more then 1 primary server for load balancing and 1 backup, then this will not work anymore...

just a thought..
Sven.
PMEmail PosterAOL
Top
hschneider
Posted: Jul 6 2004, 10:46 AM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 6631
Member No.: 195
Joined: 19-June 02



>BUT with this the auto sync tool from Altaircom isn't working anymore
Do you have closer infos about which config files are changed in which way by this tool ?

>So: I could make just the .tab file, meaning "all not local domains"...?
Yes!



--------------------
Bye,
Harald


-- Download XMail Queue Manager 1.46 NOW: XMail Server Tools
-- Cross platform remote queue management!
-- Message analyzing on the fly!
-- Builtin diagnostics knowledge base!
-- Manages multiple mail queues!

Sponsored by
CD-Produktion und DVD-Produktion and Homestaging Saarland - Immobilien schneller verkaufen in der Region Saarland, Rheinland-Pfalz und Luxembourg
PMEmail PosterUsers Website
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | Documentation and Knowledge Base | Next Newest »

Closed TopicStart new topicStart Poll