1 Postfix and 1 MailScanner question
Ugo Bellavance
ugob at CAMO-ROUTE.COM
Wed Nov 5 22:53:22 GMT 2003
> 2. I plan to run 2 (possibly 3) postfix2/rh9/mailscanner
> machine an use
> MX records to distribute inbound mail to these servers - I
> want them to
> have identical configs (aside from hostname/ip) - is there
> anyway I can
> automate changes made to configs on one box to apply to other
> box/s ? Or
> is there no other way than making any changes2 or 3 times?
I asked that question a while ago, here is one answer I got (i didn't test it yet).
> -----Message d'origine-----
> De : Peter Peters [mailto:P.G.M.Peters at UTWENTE.NL]
> Envoyé : Wednesday, October 22, 2003 10:34 AM
> À : MAILSCANNER at JISCMAIL.AC.UK
> Objet : Re: move config files from one server to another
>
>
> On Tue, 21 Oct 2003 12:20:18 -0400, you wrote:
>
> >> Now transfer ms-backup.tar to your new server and place it in /etc
> >>
> >> On your new server:
> >> *********************
> >> cd /etc
> >> tar -xvf ms-backup.tar
> >>
> >Yes, it helps me so much! I'll keep this message carefully.
> >Thanks a lot!
>
> This works.
>
> But for updating/moving configuration files and the like I
> use cpio and
> ssh:
> | @find . -newer updated -type f |\
> | grep rules$ |\
> | cpio -oH crc -C 1024 |\
> | ssh mail at netlx014 "cd /etc/MailScanner/rules;\
> | cpio -ivdm -C 1024"
>
> This example is from my rules directory and is used to distribute the
> rules over to the redundant server. I use similar scripts for aliases,
> access etc.
>
> Even when copying the complete configuration tree (I am also
> configuring
> a new system) I use scp (-pr). I have the difficulty that the original
> main server is a Redhat and the new main server is Suse. The two
> backup/redundant servers are also Suse. So I have to get the
> configuration (and Makefile etc) from the redhat system and the
> distribution dependant information from one of the other servers.
> Sometimes I mix things. :-(
>
> --
> Peter Peters, senior netwerkbeheerder
> Dienst Informatietechnologie, Bibliotheek en Educatie (ITBE)
> Universiteit Twente, Postbus 217, 7500 AE Enschede
> telefoon: 053 - 489 2301, fax: 053 - 489 2383,
http://www.utwente.nl/civ
More information about the MailScanner
mailing list