Mappings file syntax

iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)
What is the preferred method of configuring an MTA to not take outside connections at all but only those generated on the local host?
Do I comment out the " * $YEXTERNAL" line in my mappings file ?
Also, if I wanted to only take connections from a couple subnets what is the syntax, eg from 128.111.207/206 subnets.
Pasted below is the current mappings settings for the MTA in question:
! Modified by IMS administration server on: Sat Jun 05 22:43:51 PDT 2004
PORT_ACCESS
*|*|*|*|* $C$|INTERNAL_IP;$3|$Y$E
* $YEXTERNAL
INTERNAL_IP
$(128.111.207.251/32) $Y
127.0.0.1 $Y
* $N

Hi,
What is the preferred method of configuring an MTA to
not take outside connections at all but only those
generated on the local host?
Do I comment out the " * $YEXTERNAL" line in my
mappings file ?I don't know about a preferred method but one method would be to replace " * $YEXTERNAL" with " * $N". Any host/IP address that doesn't match your INTERNAL_IP mapping table will be rejected.
Also, if I wanted to only take connections from a
couple subnets what is the syntax, eg from
128.111.207/206 subnets.If you wanted to treat these subnets as 'internal' (so they can relay through your system) you would add the following to your INTERNAL_IP mapping file (just above the $N line):
  $(128.111.206.0/24)  $Y
  $(128.111.207.0/24)  $YOtherwise you would add the same lines to your PORT_ACCESS mapping table just above the $N (and then the emails from these hosts would be treated as 'external', namely on tcp_local.
You need to run ./imsimta cnbuild; ./imsimta refresh after making the changes.
Regards,
Shane.

Similar Messages

  • Mail server configuration mappings file

    Hello
    I have just installed the following mail serverSun Java(tm) System Messaging Server 6.3-0.15 (built Feb 9 2007)
    libimta.so 6.3-0.15 (built 19:27:56, Feb 9 2007)
    SunOS mail.yurnero.com 5.10 Generic_118833-36 sun4u sparc SUNW,Sun-Fire-V240
    After installation I want it to be able to perform the following operations which it is not currently allowing
    1- Sending mails through thunderbird/outlook * Authenticated *
    Currently it displays the message "relaying not allowed" I understand that I need to configure the mappings file, yet the mappings file i had of the old server (2005Q4) does'nt works
    Can anybody guide me about how to create a mappings file, the administration reference only gives syntax and not a real life scenario
    2- Sending mails to other domains
    I have done the dns entry, while it is still not working , what other things should i check?
    regards
    Kimi

    First, you should connect to sunsolve.com, and download the current patches for your original release of 6.3. Many bugs are fixed.
    now, you need to decide on the range of IP addresses that the server considers "internal" to your environment. Those go in the "internal_ip" table in the mapping file.
    Also, you need to configure your mail client to use authentication. The server configuration by default allows this, and shows an authenticated smtp connection by "EA" in the enqueue log entry, for "Enqueue, Authenticated". Authenticated users are allowed to relay, so the fact that you got the message, "relaying not permitted" shows that your client did not authenticate.
    Remember, after changing the mappings file, or many other configuration details, you must run:
    imsimta cnbuild
    and then restart the portion of the MTA affected. In this case, it's the dispatcher:
    imsimta restart dispatcher

  • Mappings file

    Is some one can give me some explanation on the line
    tcp_*|*|ims-ms|* $N find in the ORIG_SEND_ACCESS prt of the mappings table?
    If we look at the log file we can see this:
    17-Feb-2005 15:39:01.51 tcp_intranet ims-ms E 1 [email protected] rfc822;[email protected] test1%[email protected]
    But the meaning of the rule is any mail coming from a tcp_* chanel and route to the ims-ms chanel must be discard so how the mail can be delivered?
    Thanks in advance

    Hi,
    The version is:
    Sun ONE Messaging Server 6.0 HotFix 1.04 (built Jun 3 2004)
    libimta.so 6.0 HotFix 1.04 (built 13:20:57, Jun 3 2004)
    The mappings content is:
    ! MTA mappings file
    ! for access control and other table lookups
    PORT_ACCESS
    *|*|*|*|* $C$|INTERNAL_IP;$3|$Y$E
    * $YEXTERNAL
    INTERNAL_IP
    $(151.90.252.94/24) $Y
    127.0.0.1 $Y
    * $Y
    ! * $N
    ORIG_SEND_ACCESS
    tcp_local|*|tcp_local|* $N$D30|Relaying$ not$ allowed
    tcp_*|*|native|* $N
    tcp_*|*|hold|* $N
    tcp_*|*|pipe|* $N
    tcp_*|*|ims-ms|* $N
    ! Block "external" submissions of explicitly source-routed "internal" addresses
    tcp_local|*|tcp_intranet|@*:*.* $N$D30|Explicit$ routing$ not$ allowed
    tcp_local|*|tcp_intranet|*$%*@* $N$D30|Explicit$ routing$ not$ allowed
    tcp_local|*|tcp_intranet|*.*!*@* $N$D30|Explicit$ routing$ not$ allowed
    tcp_local|*|tcp_intranet|"*@*"@* $N$D30|Explicit$ routing$ not$ allowed
    SEND_ACCESS
    tcp_*|*|*|*@[127.*] $X5.1.2|$NBad$ destination$ system
    tcp_*|*|*|*@localhost.* $X5.1.2|$NBad$ destination$ system
    tcp_*|*|*|*@example.com $X5.1.2|$NBad$ destination$ system
    tcp_*|*|*|*@example.net $X5.1.2|$NBad$ destination$ system
    tcp_*|*|*|*@example.org $X5.1.2|$NBad$ destination$ system
    tcp_*|*|*|*@*.test $X5.1.2|$NBad$ destination$ system
    tcp_*|*|*|*@*.example $X5.1.2|$NBad$ destination$ system
    tcp_*|*|*|*@*.invalid $X5.1.2|$NBad$ destination$ system
    tcp_*|*|*|*@*.localhost $X5.1.2|$NBad$ destination$ system
    <IMTA_TABLE:mappings.locale

  • Mappings file reference sequence

    Does anyone tell me in which order iMS refers the mappings file "mapping table"?
    What I expect here is the sequence iMS refers on PORT_ACCESS, INTERNAL_IP, ORIG_MAIL_ACCESS, ORIG_SEND_ACCESS, SEND_ACCESS, etc....
    I noticed it is not refer as in the order given in mappings file.

    In that case, could you kindly tell me how I can allow one "source from addr" come from "particular IP" (orig_mail_access), while others hit default entry listed in "orig_send_access".
    Actually, I have configure SMTP AUTH and anybody not authenticated hits an entry (tcp_local|*|tcp_local|* $N$D30|Relaying$ not$ allowed) in ORIG_SEND_ACCESS. I wanna config one administrative "from addr" come from another server to allow relaying without authentication.

  • From external: block all domains except one MAPPINGS file?

    Here's the problem...
    I have an old domain that my mailserver is still authoritive for. We receive mail through a mail ISP cluster, in that sense that our internal mailserver does not have any MX-records associated with it. All MX-records point to the ISP.
    We have recently changed domain name because of a merger.
    I am still rewriting all RCPT TO: [user]@olddomain.com to RCPT TO: [user]@newdomain.com in imta config.
    I now want to end that rewriting using the mappings file for all except but one domain.
    So the end result should be:
    MAIL FROM: all domains -> [user]@olddomain.com REJECT $Netc......
    but!
    MAIL FROM: specific domain -> [user]@olddomain.com should still be passed on to the IMTA.
    I have used SEND_ACCESS before as a method of blocking mail, but this is specific... I want to block the whole world except one originating domain (for the old domain)
    Does anyone have a working example of this and could you provide it for me?
    TIA
    Eli

    Jay :-)
    We have reinstalled iPlanet Messaging Server 5.2 on Windows Server using all new servername FQDN and all new domain hosting for.
    FQDN: mail.new-domain.local
    Mail authoritive for: new-domain.com
    Server is located on the LAN and gets it's mail from an ISP using mailkick.
    Server is actually not aware (neither in MX, nor in LDAP records) of the old domain.
    The only way the server gets it's mail is through smart-hosting. It just works and acts as a new server. Mail for the old-domain.com (organization) is accepted because I rewrite the domain part of the old-domain.com to new-domain.com
    old-domain.com $U%[email protected]
    Server accepts mail from all sending/origination domains only for the TO: new-domain.com it is authoritive for.
    Now here is the catch... I want to disable the TO: domain-rewriting, because people need to use the new-domain when addressing us.
    There is still only ONE organization out there that needs to address the old-domain.com because of X.509 encrypted mail. This is the only domain I will do rewriting for.
    Hence is why I was looking at the SEND_ACCESS
    It has some ways of blocking part of a sender or address part of a enveloppe based on wildcards etc....
    Yet only blocking....
    How do I block the whole world except that old organization we still do business with. Mail for the old domain is also delivered through the same mailkick by ISP.
    So if whole world -> [some user]@old-domain.com REJECT
    and
    single organization -> [some user]@old-domain.com ACCEPT and continue REWRITING
    Hope I shed a bit more light on the subject....
    Eli

  • Rewrite rule in mappings file

    hi all,
    in iMS 5.2, can any one suggest me how to write a rule in mapping file so that any mail sent from a particular user (say [email protected]) is also sent (i.e. Bcc 'd ) to [email protected] in addition to the "To:" address which the mail actually goes.
    this is required to monitor all mails originating from the address [email protected]
    regards,
    rajesh.

    Yeah, no.
    1. there is no such thing as a "rewrite rule" in the mappings file.
    2. Likely, what you want is a sieve rule, or a "capture" rule.
    3. Or, perhaps save the files to disk, like this:
    for capturing all messages to disk files (this doesn't mail the messages, just saves 'em on disk, invisibly)
    Add to your mappings file like this:
    MESSAGE-SAVE-COPY
    tcp_local|*@your_domain|D|/usr/ip lanet/server5/msg-dusty/imta/queue/tcp
    local/*/* $Y/usr/iplanet/server5/msgsave/$1/$2
    Add more lines to capture both inbound and outbound. The above line captures mails sent to the internet.
    files get written to the desination directory, for your examination. Since there's no "message" sent, if the destination account gets full, no message gets sent back to give you away. Less performance impact, too.
    I have 4 lines in my MESSAGE_SAVE_COPY area, to capture messages for specific people. . You may need fewer or more, depending on your exact needs.

  • Pacman.conf file syntax highlighting for nano

    Hi, here is pacman.conf file syntax highlighting for nano. It may be useful for those who edit their pacman.conf regularly.
    Just put this lines in the end of your /etc/nanorc or ~/.nanorc file:
    # syntax highlithing in pacman.conf
    syntax "pacman.conf" "pacman\.conf$"
    color brightwhite start="\[" end="\]"
    color brightyellow ".*="
    color brightred "=.*"
    color white "="
    color brightblue "\[|\]"
    color brightcyan start="/|http|ftp" end=".*"
    color green "#.*"
    In this thread you can find rc.conf file syntax highlighting.

    thank you! i always accidentally open up nano, find out text is practically unreadable with its default colours, close it and then wait the horrific 4 seconds it takes for emacs to spring to life.

  • Rc.conf file syntax highlighting for nano

    Hey, here is rc.conf file syntax highlighting for nano. It may be useful for those who edit their rc.conf regularly.
    # syntax highlithing in rc.conf
    syntax "rc.conf" "rc\.conf$"
    color brightwhite ""(\\.|[^\"])*""
    color brightwhite "\((\\.|[^\"])*\)"
    color brightred "![^> ]+"
    color brightcyan "@[^> ]+"
    color brightyellow ".*="
    color white "="
    color brightblue ""|\(|\)"
    color green "#.*"
    Put this lines into /etc/nanorc or ~/.nanorc

    thank you! i always accidentally open up nano, find out text is practically unreadable with its default colours, close it and then wait the horrific 4 seconds it takes for emacs to spring to life.

  • Policy files syntax

    The policy file syntax lets grant lists of permissions to identified code, for example giving its source.
    To grant several permissions to several code sources, it is possible to repeat the required permissions blocks for each of the code source... But, what is the best way to write policy files to grant permissions to any code source, (including SDK's extensions), and deny specific accesses (as file access, for example) for a given code source.
    Thanks for ideas...

    You cannot do something like "negative permission". You give a permission or you don't give it.

  • Relay Problem, Relay Prohibited, mappings file look fine

    Hello Everybody.
    I am suffering from a relay problem.
    I can'not send mail to for example hotmail.com from Messenger express and outlook express.
    I can send from outlook express where i activate AUTH.
    I check mappings file and i see allright.
    The local network is enabled, and the localhost too.
    I also check all the posts in the forum and i didn't find the answer.
    My mappings file looks like:
    ! MTA mappings file
    ! for access control and other table lookups
    PORT_ACCESS
    *|*|*|*|* $C$|INTERNAL_IP;$3|$Y$E
    * $YEXTERNAL
    INTERNAL_IP
    $(10.11.0.0/16) $Y
    $(10.31.0.0/24) $Y
    $(200.68.91.33/32) $Y
    127.0.0.1 $Y
    * $N
    ORIG_SEND_ACCESS
    tcp_local|*|tcp_local|* $N$D30|Relaying$ not$ allowed
    tcp_*|*|native|* $N
    tcp_*|*|hold|* $N
    tcp_*|*|pipe|* $N
    tcp_*|*|ims-ms|* $N
    ! Block "external" submissions of explicitly source-routed "internal" addresses
    tcp_local|*|tcp_intranet|@*:*.* $N$D30|Explicit$ routing$ not$ allowed
    tcp_local|*|tcp_intranet|*$%*@* $N$D30|Explicit$ routing$ not$ allowed
    tcp_local|*|tcp_intranet|*.*!*@* $N$D30|Explicit$ routing$ not$ allowed
    tcp_local|*|tcp_intranet|"*@*"@* $N$D30|Explicit$ routing$ not$ allowed
    Does anybody has answer for this problem?
    Thanks very much,
    Andres

    I also put imta.cnf:
    ! IMTA configuration file
    ! part I : rewrite rules
    ! Domain Rewrite Rules.
    ! Uncomment this line to use domain rewrite rules
    ! from the configuration file instead of the domain database.
    ! Please refer to the iMS documentation for details.
    !<IMTA_TABLE:domains.rules
    ! Rules to select local users
    $* $A$E$F$U%[email protected]
    acafipri.acasalud.com.ar $U%[email protected]
    acasalud.com.ar $U%[email protected]
    ! ims-ms
    .ims-ms-daemon $U%[email protected]
    ! lmtp
    !.lmtp $U%[email protected]
    ! native
    .native-daemon $U%[email protected]
    ! pipe
    .pipe-daemon $U%[email protected]
    ! tcp_local
    ! Rules for top level internet domains
    <IMTA_TABLE:internet.rules
    ! tcp_intranet
    ! Do mapping lookup for internal IP addresses
    [] $E$R${INTERNAL_IP,$L}$U%[$L]@tcp_intranet-daemon
    .acasalud.com.ar $U%[email protected]_intranet-daemon
    * $U%$&0.acasalud.com.ar
    ! reprocess
    reprocess $U%[email protected]
    reprocess.acafipri.acasalud.com.ar $U%[email protected]
    ss-daemon
    ! process
    process $U%[email protected]
    process.acafipri.acasalud.com.ar $U%[email protected]
    mon
    ! defragment
    defragment $U%[email protected]
    defragment.acafipri.acasalud.com.ar $U%[email protected]
    gment-daemon
    ! conversion
    conversion $U%[email protected]
    conversion.acafipri.acasalud.com.ar $U%[email protected]
    rsion-daemon
    ! bitbucket
    bitbucket $U%[email protected]
    bitbucket.acafipri.acasalud.com.ar $U%[email protected]
    et-daemon
    ! deleted
    deleted-daemon $U%[email protected]
    .deleted-daemon $U%[email protected]
    ! inactive
    inactive-daemon $U%[email protected]
    .inactive-daemon $U%[email protected]
    ! hold
    hold-daemon $U%[email protected]
    .hold-daemon $U%[email protected]
    !tcp_scanner
    [] $E$R${tcp_scanner,$L}$U%[$L]@tcp_scanner-daemon
    ! part II : channel blocks
    defaults notices 1 2 3 copywarnpost copysendpost postheadonly noswitchchannel im
    mnonurgent maxjobs 7 defaulthost acasalud.com.ar acasalud.com.ar
    ! delivery channel to local /var/mail store
    l subdirs 20 viaaliasrequired maxjobs 7 pool LOCAL_POOL
    acafipri.acasalud.com.ar
    ! ims-ms
    ims-ms defragment subdirs 20 notices 1 7 14 21 28 backoff "pt5m" "pt10m" "pt30m"
    "pt1h" "pt2h" "pt4h" maxjobs 2 pool IMS_POOL fileinto [email protected]$D destinationbrigh
    tmailoptin spam
    ims-ms-daemon
    ! native
    native defragment subdirs 20 maxjobs 1
    native-daemon
    ! pipe
    pipe single defragment subdirs 20
    pipe-daemon
    ! tcp_local
    tcp_local smtp mx single_sys identtcpnumeric subdirs 20 dequeue_removeroute maxj
    obs 7 pool SMTP_POOL maytlsserver maysaslserver allowswitchchannel saslswitchcha
    nnel tcp_auth missingrecipientpolicy 4 aliasdetourhost tcp_scanner-daemon
    tcp-daemon
    ! tcp_scanner
    tcp_scanner smtp single_sys subdirs 5 notices 1 backoff "pt2h" "pt4h" "pt8h" deq
    ueue_removeroute maxjobs 7 pool SMTP_POOL daemon [127.0.0.1] port 10024
    tcp_scanner-daemon
    ! tcp_intranet
    tcp_intranet smtp mx single_sys subdirs 20 dequeue_removeroute maxjobs 7 pool SM
    TP_POOL maytlsserver maysaslserver allowswitchchannel saslswitchchannel tcp_auth
    missingrecipientpolicy 4 aliasdetourhost tcp_scanner-daemon
    tcp_intranet-daemon
    ! tcp_submit
    tcp_submit submit smtp mx single_sys mustsaslserver maytlsserver missingrecipien
    tpolicy 4 aliasdetourhost tcp_scanner
    tcp_submit-daemon
    ! tcp_auth
    tcp_auth smtp mx single_sys mustsaslserver missingrecipientpolicy 4
    tcp_auth-daemon
    ! tcp_tas
    tcp_tas smtp mx single_sys allowswitchchannel mustsaslserver maytlsserver delive
    ryflags 2
    tcp_tas-daemon
    ! tcp_lmtpss (LMTP server - store)
    !tcp_lmtpss lmtp subdirs 20
    !tcp_lmtpss-daemon
    ! tcp_lmtpsn (LMTP server - native)
    !tcp_lmtpsn lmtp subdirs 20
    !tcp_lmtpsn-daemon
    ! tcp_lmtpcs (LMTP client - store)
    !tcp_lmtpcs defragment lmtp port 225 nomx single_sys subdirs 20 maxjobs 7 pool S
    MTP_POOL dequeue_removeroute
    !lmtpcs-daemon
    ! tcp_lmtpcn (LMTP client - native)
    !tcp_lmtpcn defragment lmtp port 226 nomx single_sys subdirs 20 maxjobs 7 pool S
    MTP_POOL dequeue_removeroute
    !lmtpcn-daemon
    ! reprocess
    reprocess
    reprocess-daemon
    ! process
    process
    process-daemon
    ! defragment
    defragment
    defragment-daemon
    ! conversion
    conversion
    conversion-daemon
    ! bitbucket
    bitbucket
    bitbucket-daemon
    ! deleted
    deleted
    deleted-daemon
    ! inactive
    inactive
    inactive-daemon
    ! hold
    hold slave
    hold-daemon

  • [Solved][VIM] E484: Can't open file syntax.vim

    Hi all,
    I've installed Archlinux few days ago on my netbook and yesterday i decided to configure Vim using plugins.
    During plugins configuration, i messed up and i decided to revome all Vim files in my ~ folder in order to restart configuration.
    However, since I've executed the `rm -R .vim .vimrc .viminfo` command, I can't re-activate Vim's syntax coloration using `syntax on` into my .vimrc file nor into Vim directly.
    Here is the error message when I start Vim :
    Error detected while processing /home/romain/.vimrc:
    line 1:
    E484: Can't open file /home/romain/.vim/syntax/syntax.vim
    Press ENTER or type command to continue
    I've found this topic on BBS which seems to be the same problem as me but reinstalling vim or vi doesn't solve this problem.
    I've tried to copy this syntax.vim file from /usr/share/vim/vim73/syntax/syntax.vim but it doesn't solve the problem and I want a clean solution without hacking my ~ folder ; moreover, this bug also appears being root while I haven't configured vim with the root account so it may be a problem into Vim's installation folders or something.
    Thanks for your help and sorry I my english contains mistakes,
    MicroJoe.
    Last edited by MicroJoe (2012-06-14 16:16:45)

    This is the output :
    VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jun 7 2012 00:41:40)
    Rustines incluses : 1-547
    Compilé par ArchLinux
    Grosse version sans interface graphique.
    Fonctionnalités incluses (+) ou non (-) :
    +arabic +autocmd -balloon_eval -browse ++builtin_terms +byte_offset +cindent
    -clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
    +conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con +diff +digraphs
    -dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path
    +find_in_path +float +folding -footer +fork() +gettext -hangul_input +iconv
    +insert_expand +jumplist +keymap +langmap +libcall +linebreak +lispindent
    +listcmds +localmap -lua +menu +mksession +modify_fname +mouse -mouseshape
    +mouse_dec +mouse_gpm -mouse_jsbterm +mouse_netterm -mouse_sysmouse
    +mouse_xterm +mouse_urxvt +multi_byte +multi_lang -mzscheme -netbeans_intg
    +path_extra +perl +persistent_undo +postscript +printer -profile -python
    -python3 +quickfix +reltime +rightleft -ruby +scrollbind +signs +smartindent
    -sniff +startuptime +statusline -sun_workshop +syntax +tag_binary
    +tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects +title
    -toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo
    +vreplace +wildignore +wildmenu +windows +writebackup -X11 -xfontset -xim -xsmp
    -xterm_clipboard -xterm_save
    fichier vimrc système : "/etc/vimrc"
    fichier vimrc utilisateur : "$HOME/.vimrc"
    fichier exrc utilisateur : "$HOME/.exrc"
    $VIM par défaut : "/usr/share/vim"
    Compilation : gcc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -march=i686 -mtune=generic -pipe -fstack-protector --param=ssp-buffer-size=4 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
    Édition de liens : gcc -Wl,-E -Wl,-rpath,/usr/lib/perl5/core_perl/CORE -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu -L/usr/local/lib -Wl,--as-needed -o vim -lm -lncurses -lacl -lattr -lgpm -ldl -Wl,-E -Wl,-rpath,/usr/lib/perl5/core_perl/CORE -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu -fstack-protector -L/usr/local/lib -L/usr/lib/perl5/core_perl/CORE -lperl -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    (I've noticed that some part were in French but I hope that it'll not be a problem).

  • T-SQL Code to backup database with multiple files - Syntax error

    Hello,
    I'm trying to backup a database into multiple files but I'm getting a syntax error.
    Here is the code:
    declare @DBName varchar(100)
    declare @DBFileName varchar(256)
    declare @FolderName varchar(256)
    declare @Path varchar(100)
    set @Path = '\\Backup-Server\Test\'
    set @DBName = 'DayNite'
    set @DBFileName = 'DayNite-Full' + '-' + (SELECT CONVERT(char(10), GetDate(),110)) + '-' + 'P'
    set @FolderName =(SELECT CONVERT(char(10), GetDate(),110))
    set @Path = @Path + @FolderName + '\'
    EXEC master.dbo.xp_create_subdir @Path
    --Calculate broken files for BACKUP DATBASE Function
    /*declare @dbsize int
    set @dbsize = (SELECT ((size*8)/1024)/1000 as SizeGB FROM sys.database_files WHERE file_id = '1')
    set @dbsize = @dbsize / 4
    print @dbsize*/
    EXEC
    BACKUP DATABASE [test] TO
    DISK = @Path + @DBFileName + '1.bak',
    DISK = @Path + @DBFileName + '2.bak',
    DISK = @Path + @DBFileName + '3.bak',
    DISK = @Path + @DBFileName + '4.bak',
    DISK = @Path + @DBFileName + '5.bak',
    DISK = @Path + @DBFileName + '6.bak',
    DISK = @Path + @DBFileName + '7.bak',
    DISK = @Path + @DBFileName + '8.bak',
    DISK = @Path + @DBFileName + '9.bak',
    DISK = @Path + @DBFileName + '10.bak',
    DISK = @Path + @DBFileName + '11.bak',
    DISK = @Path + @DBFileName + '12.bak',
    DISK = @Path + @DBFileName + '13.bak'
    WITH INIT , NOUNLOAD , NAME = 'DayNite Full Backup', NOSKIP , NOFORMAT

    Made some slight modifications to your script and it should work(worked when tested).. if you wnat more complete solution -- google  -OLA Hallengren backups  -- you should get some good scripts..
    declare @DBName varchar(100)
    declare @DBFileName varchar(256)
    declare @FolderName varchar(256)
    declare @Path varchar(100)
    set @Path = '\\Backup-Server\Test\'
    set @DBName = 'DayNite'
    set @DBFileName = 'DayNite-Full' +''+ '-' +''+ (SELECT CONVERT(char(10), GetDate(),110)) +''+ '-' +''+ 'P'
    set @FolderName =(SELECT CONVERT(char(10), GetDate(),110))
    set @Path = @Path +''+ @FolderName +''+ '\'
    EXEC master.dbo.xp_create_subdir @Path
    --Calculate broken files for BACKUP DATBASE Function
    /*declare @dbsize int
    set @dbsize = (SELECT ((size*8)/1024)/1000 as SizeGB FROM sys.database_files WHERE file_id = '1')
    set @dbsize = @dbsize / 4
    print @dbsize*/
    select @Path,@DbFileName
    declare @SQL nvarchar(2000)
    Set @SQL ='Backup DATABASE [DAYNITE] TO DISK = '''[email protected] +''+ @DBFileName +''+ '1.bak'',
    DISK = '''[email protected] +''+ @DBFileName +''+ '2.bak'',
    DISK = '''[email protected] +''+ @DBFileName +''+ '3.bak'',
    DISK = '''[email protected] +''+ @DBFileName +''+ '4.bak'',
    DISK = '''[email protected] +''+ @DBFileName +''+ '5.bak'',
    DISK = '''[email protected] +''+ @DBFileName +''+ '6.bak'',
    DISK = '''[email protected] +''+ @DBFileName +''+ '7.bak'',
    DISK = '''[email protected] +''+ @DBFileName +''+ '8.bak'',
    DISK = '''[email protected] +''+ @DBFileName +''+ '9.bak'',
    DISK = '''[email protected] +''+ @DBFileName +''+ '10.bak'',
    DISK = '''[email protected] +''+ @DBFileName +''+ '11.bak'',
    DISK = '''[email protected] +''+ @DBFileName +''+ '12.bak'',
    DISK = '''[email protected] +''+ @DBFileName +''+ '13.bak''
    WITH INIT , NOUNLOAD , NAME = ''DayNite Full Backup'', NOSKIP , NOFORMAT '
    print @SQL
    exec (@SQL)
    Hope it Helps!!

  • DBCA Template (.dbt) file SYNTAX?

    Hi!
    I am looking to customize a DBCA template file (.dbt) and have searched the 10G documentation and MetaLink with out success on how to do this. I am looking for the syntax / content of these files. Some examples would be great! I am especially interested in setting up my own variables for file locations, etc.
    Thanks in advance!
    Dave Venus

    Hi!
    Thanks for your help. Do you have a specific manual that would help? I can find descriptions of the templates that Oracle provides but nothing on the actual XML entries themselves and the values that can be entered, etc.
    I have looked at some information on response files but have yet to see how they are used to generate a template file.
    Thanks again for your time and help!
    Dave Venus

  • SP601 ucf file syntax error

    Hi,
    I am new to using Spartan 6 or the ISE environment in general.  I'm trying to implement a simple VHDL design on my SP601 evaluation kit and included the SP601_RevC_annotated_master_ucf_8-28-09 file as the constraint file.  However, during the "transflate" phase, I get error messages for every line of the ucf file that the previous line was not terminated in a semicolon 
    I don't see what the problem is....for example, here are the first block of lines, each of which is causing a syntax error.
    NET "DDR2_A0" LOC = "J7"; | IOSTANDARD = SSTL18_II ; ## M8 on U2
    NET "DDR2_A1" LOC = "J6"; | IOSTANDARD = SSTL18_II ; ## M3 on U2
    NET "DDR2_A2" LOC = "H5"; | IOSTANDARD = SSTL18_II ; ## M7 on U2
    NET "DDR2_A3" LOC = "L7"; | IOSTANDARD = SSTL18_II ; ## N2 on U2
    NET "DDR2_A4" LOC = "F3"; | IOSTANDARD = SSTL18_II ; ## N8 on U2
    NET "DDR2_A5" LOC = "H4"; | IOSTANDARD = SSTL18_II ; ## N3 on U2
    NET "DDR2_A6" LOC = "H3"; | IOSTANDARD = SSTL18_II ; ## N7 on U2
    NET "DDR2_A7" LOC = "H6"; | IOSTANDARD = SSTL18_II ; ## P2 on U2
    NET "DDR2_A8" LOC = "D2"; | IOSTANDARD = SSTL18_II ; ## P8 on U2
    NET "DDR2_A9" LOC = "D1"; | IOSTANDARD = SSTL18_II ; ## P3 on U2
    NET "DDR2_A10" LOC = "F4"; | IOSTANDARD = SSTL18_II ; ## M2 on U2
    NET "DDR2_A11" LOC = "D3"; | IOSTANDARD = SSTL18_II ; ## P7 on U2
    NET "DDR2_A12" LOC = "G6"; | IOSTANDARD = SSTL18_II ; ## R2 on U2
    NET "DDR2_BA0" LOC = "F2"; | IOSTANDARD = SSTL18_II ; ## L2 on U2
    NET "DDR2_BA1" LOC = "F1"; | IOSTANDARD = SSTL18_II ; ## L3 on U2
    NET "DDR2_BA2" LOC = "E1"; | IOSTANDARD = SSTL18_II ; ## L1 on U2
    Again, the ucf file is directly copied from the download on the xilinx website.  Any thoughts?

     remove the semicolon then it should work
    NET "DDR2_A0" LOC = "J7" | IOSTANDARD = SSTL18_II ; ## M8 on U2

  • Labview ini file syntax

    Hi
    I have a ini file built into an application as a support file. When I did some changes on ini file, some change was reflected in executable file but some not. I suspect the syntax in ini file are not right so aren't recognized.
    Besides, how ini file works? when I change the ini file, do I have to re-execute the application in order to getting the reflection in application? Or if the configuration is changed via the menu Tools->option in application, will they rewrite the ini file automatically? Do I have to stop the application in order to reading a changed ini file?
     Where can I find a documentation about labview ini file as well as its syntax?
    Thanks.

    An .ini file is a standard file and is not something that is special to LabVIEW. LabVIEW itself uses an .ini file to store some application settings that you change via the Tools->Options menu. It is not wise to change this file yourself manually. You can create your own .ini files for your application. You can use the VIs in the Configration File VIs palette to read/write .ini files. This palette is a sub-palette from the File I/O palette.
    As for its format, it's made up of sections and keys like this:
    [Section1]
    keyname=value
    keyname=value
    [Section2]
    keyname=value
    ;this is a comment
    If the value you're trying to save is a string you should use quotes.
    What you store in the .ini file is up to you and how you use it is also up to you. You can access the keys on an as-needed basis, or you can read the keys in at the beginning of your program, store them someplace like a global variable and access them as needed. It's kind of dependent on the size and architecture of your application.

Maybe you are looking for

  • When iPod is connected to iTunes, a lock appears on iTunes

    After syncing my music to my new iPod 5th Generation, the music on the iPod is greyed out and no action can be taken on it. Additionally, there is a symbol of a lock on the bottom of itunes where the used and free space is noted. I think this lock is

  • Windows 8.1 GPO's on Windows Server 2008 R2

    I have a Windows Server 2008 R2 standard as the domain controller. and we have added several windows 8.1 computers to the domain. there are several settings, like lock screen image, that we want to set for all the windows 8.1 computers, but that sett

  • Crashes Increasing

    I use OS 10.3.9 on an iBook G4. In the past two weeks I have had an increasing number of crashes. I may not be using the correct term programs keep quitting unexpectedly. They have occurred while not doing anything like Version Tracker today which la

  • Using CS6 on another computer

    My computer that had CS6 and Light Room on it crashed. I have the disc for Lightroom but not CS6. How do I put CS6 on another computer?

  • Mail application shutting down after I open it.

    Hi. I bought a new iPhone4 and synced it with my old iTunes iPhone 3 settings and programs. This made the internet connection slow and when I open the mail application it downloads all the latest mails and then automatically shuts down. I have tried