|
|
 |  |
Re: ScriptingFrom: Aaron Lynch Date: Saturday, May 4, 2002
Time: 1:33:44 pmThanks For all your help Chris.
I just thought I'd put the finished product up:
This ApplsScript will go through _some_ domains delete the current MX
records and add in new ones. It lets you add postini anyi spam & virus
services to certain domains by putting their MX records in the form of
domain.com.mail1.psmtp.com.
I'm sure it could be improved further but this does what I want and will
save me days of manual work :)
property domains : {"test1.com.", "test2.com."}
repeat with domain in domains
tell application "QuickDNS Manager for OS X"
activate
set theDoc to (open zone (domain as string))
tell theDoc
delete every MX record
make new record at beginning with data "@ MX 40
mail2.ninewire.com"
make new record at beginning with data "@ MX 30
mail.ninewire.com"
make new record at beginning with data "@ MX 20 " & domain &
"mail2.psmtp.com."
make new record at beginning with data "@ MX 10 " & domain &
"mail1.psmtp.com."
try
close saving yes
end try
end tell
end tell
end repeat
|
Messages In This Thread:- Scripting by Aaron Lynch on May 2, 2002 at 11:54:59 pm
- Re: Scripting by Men & Mice Support on May 4, 2002 at 12:51:21 pm
|

Return to Digital Point Solutions' Home Page |