To relocate mail.log, mail.log_current file to specific folder

Hi
We have configured CommSuite 6 in single host. The output of “imsimta version”:
Sun Java(tm) System Messaging Server 7.0-0.04 32bit (built Jun 20 2008)
libimta.so 7.0-0.04 32bit (built 01:01:00, Jun 20 2008)
Using /opt/sun/comms/messaging/config/imta.cnf
SunOS mail 5.10 Generic_120012-14 i86pc i386 i86pc
Output of imta_tailor file:
IMTA_USER=mailsrv
IMTA_USER_USERNAME=nobody
IMTA_WORLD_GROUP=mail
IMTA_LOG=/logs/messaging/imta
IMTA_PRIMARY_LOG=/logs/messaging/imta/mail.log_current
IMTA_SECONDARY_LOG=/logs/messaging/imta/mail.log_yesterday
IMTA_TERTIARY_LOG=/logs/messaging/imta/mail.log
We need to relocate mail.log, mail.log_current, mail.log_yesterday file to specific folder.
After above setting we cannot be able to relocate above file.
Pl. help us.
Thanks
P.K.

world.group wrote:
We have configured CommSuite 6 in single host. The output of “imsimta version”:Please note that CommSuite 6 update 1 is now available and it is advisable that you upgrade using the "commpkg upgrade" command.
IMTA_LOG=/logs/messaging/imta
IMTA_PRIMARY_LOG=/logs/messaging/imta/mail.log_current
IMTA_SECONDARY_LOG=/logs/messaging/imta/mail.log_yesterday
IMTA_TERTIARY_LOG=/logs/messaging/imta/mail.logThese parameters are now ignored as per the Messaging Server 7.0 release notes:
http://wikis.sun.com/display/CommSuite6/Messaging+Server+7.0+Release+Notes#MessagingServer7.0ReleaseNotes-Ignoredimtatailorsettings
We need to relocate mail.log, mail.log_current, mail.log_yesterday file to specific folder. You can relocate the MTA log directory through the use of symlinks.
Regards,
Shane.

Similar Messages

  • How to create file in specific folder...

    Hi developers,
    I am new to java. I would like to create file in some folder. But i am fail to create it. Can any body help me please..
    This is my code. It creates folder well...But file doesn't create.
    import java.io.*;
    public class file1
         public static void main(String ar[])
              File f = new File("c:\\ram");
              f.mkdirs();
              String pat = f.getAbsolutePath();
              File ffs = new File("c:\\ram.txt");
              System.out.println(pat);
    }With Regards
    sure...:)-

    Also, it's not clear where you want the file.
    You're making a directory C :\ram, but then you're talking about a file ram.txt that's right in C:
    Also, you can use / instead of doubling up the \ and it wil get converted properly.
    If I wanted to create a file C:\ram\ram.txt I'd do this:
    File parentDir = new File("C:/ram");
    File file = new File(parentDir, "ram.txt");
    parentDir.mkdirs();
    file.createNewFile();

  • Query Count files under Specific folder in Sccm?

    Hello!
    I try to create a Query in sccm. There I want to count files under a specific folder. If folder on the client have less than 35 files, show the name of that computer. How should I begin to create that Query? Should I use criteria Software files Count?
    Greetings
    Emil

    I think for this task you will find it easier to create a report instead. Queries are based on WQL which has some limitations.
    Kent Agerlund | My blogs: blog.coretech.dk/kea and
    SCUG.dk/ | Twitter:
    @Agerlund | Linkedin: Kent Agerlund |
    Mastering ConfigMgr 2012 The Fundamentals

  • Robocopy Log Shows All Files Copied but Folder Properties Different on Source and Target

    Hi,
    I'm replacing an old 2003 R2 server with a 2012 R2 server and moving data to it. I used robocopy to migrate data. No users are currently accessing the source so there are no open files by users.
    The source folder is:
    27.9 GB with 194,490 files and 14,273 folders.
    Robocopy copied the data and reported no errors but the destination folder only has:
    24.6 GB with 181,487 files and 14,167 folders.
    I ran robocopy twice more. Each time, the log shows that it skipped 14,273 directories and 194490 files.
    So robocopy believes the source and destination directories are in synch. But the properties of the directory show me different numbers. Any ideas? I need to move a few more TB of data and be confident that everything copied.
    Here's the command I'm running:
    robocopy \\server-old\d$\data \\server-new\d$\data /E /COPYALL /DCOPY:T /R:5 /W:3 /TEE /V /LOG:D:\Logs\log1.log
    Thanks,
    Greg

    Hi,
    Thanks for your post.
    As far as i know, system Volume Info and Recycler are NOT transferred when you use robocopy to transfer all the files/folders from one drive to another.
    And Robocopy has switch "/MIR" which you can use to Mirror a complete directory tree if required.
    https://technet.microsoft.com/en-us/library/cc733145.aspx?f=255&MSPPError=-2147217396
    Regards.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Downloading file in specific folder not possible

    When I use the standard Settings in FF901 (Win7 64bit home premium) under "General" downloading files to the standard folder c:\user\username\downloads - there is no problem. When I choose "ask every time where to download" the downlaod box closes, I can' t choose a download folder and the file ends up in c:\user\username\appdata\local\temp as e.g. AXiXgx4C.exe.part". I checked this file,it's fully downloaded and after deleting "part" it works. I tried suggestions like "disable virus scanning in Firefox preferences" and disabling the virus protection of NOD but it didn't help. Only help was restarting Win7, but then after a while I ran into to the same problem again.
    What to do?

    Thank you for your reply. I searched in different forums and obviously this problem is known among firefox users. A simple but effective solution was to deinstall Firefox completely and also delete the profiles folder and profiles.ini. I also deleted temp files and remaining mozilla folders.
    Now after a clean reinstall everything works again.

  • Read info about files in specific folder into internal table

    Hi Experts
    I need to have last modified date and filename information read into an internal table. I need to read in the information of all files in a specific (UNIX) folder (I do not know the name of the single files).
    I really hope someone can help.
    Thanks a lot
    Kind regards,
    Torben

    Hi Guys
    Thanks a lot for you input.
    I managed to get my program to works as follows:
    REPORT  ZDELETE_ARCHIVING_FILES.
    *Step 1: Get the list of files in the directory into internal table :
    DATA: DLIST    LIKE EPSFILI OCCURS 0 WITH HEADER LINE,
          DPATH    LIKE EPSF-EPSDIRNAM,
          MDATE    LIKE SY-DATUM,
          MTIME    LIKE SY-UZEIT.
    DATA: BEGIN OF FATTR OCCURS 0,
              FILE_NAME  LIKE EPSF-EPSFILNAM,
              FILE_SIZE  LIKE EPSF-EPSFILSIZ,
              FILE_OWNER LIKE EPSF-EPSFILOWN,
              FILE_MODE  LIKE EPSF-EPSFILMOD,
              FILE_TYPE  LIKE EPSF-EPSFILTYP,
              FILE_MTIME(12),
          END OF FATTR.
    DATA: P_PATH(50) TYPE C.
    CONCATENATE '/ARCHIVE/' sy-sysid '/archive' INTO P_PATH.
    *        WRITE: / P_PATH.
    DPATH = P_PATH.
    *Get files in folder - read into internal table DLIST
    *if filenames are longer than 40 characters
    *then use FM SUBST_GET_FILE_LIST.
    CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'
         EXPORTING
              DIR_NAME               = DPATH
         TABLES
              DIR_LIST               = DLIST
         EXCEPTIONS
              INVALID_EPS_SUBDIR     = 1
              SAPGPARAM_FAILED       = 2
              BUILD_DIRECTORY_FAILED = 3
              NO_AUTHORIZATION       = 4
              READ_DIRECTORY_FAILED  = 5
              TOO_MANY_READ_ERRORS   = 6
              EMPTY_DIRECTORY_LIST   = 7
              OTHERS                 = 8.
    IF SY-SUBRC EQ 0.
    *Step 2: Read the file attributes into an internal table
    *Read info about the files (attributes) into the internal table FATTR
    *as we need info about the last time it was changed (MTIME)
      LOOP AT DLIST.
        CALL FUNCTION 'EPS_GET_FILE_ATTRIBUTES'
             EXPORTING
                  FILE_NAME              = DLIST-NAME
                  DIR_NAME               = DPATH
             IMPORTING
                  FILE_SIZE              = FATTR-FILE_SIZE
                  FILE_OWNER             = FATTR-FILE_OWNER
                  FILE_MODE              = FATTR-FILE_MODE
                  FILE_TYPE              = FATTR-FILE_TYPE
                  FILE_MTIME             = FATTR-FILE_MTIME
             EXCEPTIONS
                  READ_DIRECTORY_FAILED  = 1
                  READ_ATTRIBUTES_FAILED = 2
                  OTHERS                 = 3.
        IF SY-SUBRC EQ 0.
          FATTR-FILE_NAME = DLIST-NAME.
          APPEND FATTR.
        ENDIF.
      ENDLOOP.
      SORT FATTR BY FILE_NAME.
      DATA: time(10), date LIKE sy-datum.
      DATA: months TYPE i.
      DATA: e_file TYPE string.
      LOOP AT FATTR.
      CLEAR: time, months, e_file.
        IF FATTR-FILE_NAME(10) = 'archive_BW'.
    *Convert the unix time into readable time
          PERFORM p6_to_date_time_tz(rstr0400) USING FATTR-FILE_MTIME
                                                     time
                                                     date.
    *Calculate the number of months between date (MTIME) and current day
    *ex 31.03.2009 - 01.04.2009 = 1 month
    *ex 01.02.2009 - 01.04.2009 = 2 month
        CALL FUNCTION 'MONTHS_BETWEEN_TWO_DATES'
          EXPORTING
            i_datum_von = date
            i_datum_bis = sy-datum
          IMPORTING
            e_monate = months.
            CONCATENATE DPATH '/' FATTR-FILE_NAME INTO e_file.
    *        WRITE: / FATTR-FILE_NAME,
    *                 FATTR-FILE_SIZE,
    *                 date,
    *                 time,
    *                 sy-datum,
    *                 months,
    *                 e_file.
    *Step 3: Delete files where months > 1
          IF months > 1.
            OPEN dataset e_file for output in text mode encoding default.
            DELETE dataset e_file.
            CLOSE dataset e_file.
          ENDIF. "months > 1
        ENDIF.
      ENDLOOP.
    ENDIF.

  • How to make the Installer place support files in specific folder

    Hi,
    I'm trying to use the LabVIEW2009 installer for the first time. I haven't used any earlier ones, so my understanding is limited. I have created a project and an executable and wish to direct the installer to place some groups of files in a number of directories other than the one in which the executable goes. On the Source Files page I can see a number of Folder descriptions in square brackets. I don't understand how to use these. Are they to be set up to point to specific directories? If so how?
    So far I have managed to create an installer which puts all the support files from the project in a single directory. My attempts to select a subset of files within the Project View window and place them in a separate directory were not allowed since they are treated as an indivisible group. Basically i don't know enough about the installer and my searches for information have only yielded very basic information.
    If anyone can help by supplying or pointing to more detailed information I'd be most grateful.
    Thanks
    George
    Solved!
    Go to Solution.

    Hi George
    This is from the LV help:
    Destination View—Specifies the location and directory structure of the files when they are installed. Select an item from the Project View tree and click the arrow button or drag the file to the Destination View tree to include it in the installer directory structure. You can drag multiple files at the same time. Click the buttons below the Destination View tree to add, remove, and rename folders in the directory. You also can right-click the folders and select a command from the shortcut menu.
    The folders in the Destination View directory that do not have an LV prefix correspond to Microsoft Installer (MSI) properties that install files in the following locations.
    [CommonAppDataFolder]—Files you include in this folder install to the Application Data folder.
    [CommonFilesFolder]—Files you include in this folder install to the Common Files folder.
    [DesktopFolder]—Files you include in this folder install to the Windows desktop of the current Windows user.
    [LVxxRTEDIR]—Where xx is the LabVIEW version currently in use. Files you include in this folder install to the folder of the Run-Time Engine for the LabVIEW version currently in use.
    [LVDIR]—Files you include in this folder install to the folder of the LabVIEW version currently in use.
    You can find a full list of the MSI properties here. Scroll down to "System Folder Properties"
    Best Regards
    David

  • How to read a file on specific  Directory

    How to read a specific file on specific folder ,
    For ex , in D: contain lot of directory ,
    Let as assume �program �- Directory.
    �xxx.txt�-file,
    How to read �xxx.txt� file from program Directory,
    Give me simple pgm ,

    pradeep.rajadurai wrote:
    How to read a specific file on specific folder ,
    For ex , in D: contain lot of directory ,
    Let as assume �program �- Directory.
    �xxx.txt�-file,
    How to read �xxx.txt� file from program Directory,
    Give me simple pgm ,
    Scanner scan = new Scanner(new File("D:/program/xxx.txt"));
    // your code here[http://java.sun.com/j2se/1.5.0/docs/api/java/util/Scanner.html]

  • Var/log/mail.log file empty

    My var/log/mail.log isn't logging anything, the file seems to empty since 4th March 2010 3:15 AM
    Have tried the below mentioned troubleshooting steps, but no luck though
    1. Stopped and restarted mail service
    2. Repaired disk permissions through disk utility application
    3. Repaired permissions through terminal diskutil
    4. Restarted daemons as suggested in this forum http://discussions.info.apple.com/thread.jspa?threadID=2088823&tstart=60
    5. Changed permissions as suggested on this forum http://forums.macosxhints.com/archive/index.php/t-13985.html
    Any help please!!!

    Change the archive log to 3 days. Make sure all three log levels are set to information. Restart mail and see if any thing appears in the logs.
    Also how are you viewing the logs - using SA or Console?
    Thanks,
    Henry

  • We want to send a mail with attachment pdf file.

    Hi!!!
    We want to send a mail with attachment pdf file.
    The PDF file this is in the server sap.

    Hi,
    Pls check web logs like
    /people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface
    Eddy
    PS.
    Put yourself on the SDN world map (http://sdn.idizaai.be/sdn_world/sdn_world.html) and earn 25 points.
    Spread the wor(l)d!

  • Errors in mail logs - Launchd

    My mail error log is full of these. It adds a new one every 10 seconds. Any idea how to stop it?
    Main log -
    Jul 1 03:07:09 mikeg com.apple.launchd[1] (org.postfix.master[23236]): Exited with exit code: 1
    Jul 1 03:07:09 mikeg com.apple.launchd[1] (org.postfix.master): Throttling respawn: Will start in 9 seconds
    Mail.log -
    Jul 1 03:09:58 mikeg postfix/master[23287]: fatal: chdir /private/var/spool/postfix: No such file or directory
    Jul 1 03:10:09 mikeg postfix/master[23290]: fatal: chdir /private/var/spool/postfix: No such file or directory
    Jul 1 03:10:19 mikeg postfix/master[23291]: fatal: chdir /private/var/spool/postfix: No such file or directory
    Jul 1 03:10:29 mikeg postfix/master[23294]: fatal: chdir /private/var/spool/postfix: No such file or directory

    Dan F wrote:
    I may have caused it at some point when i was messing with some different mailing packages for newsletter management.
    Here's the output -
    0 drwxr-xr-x 4 root wheel 136 Mar 7 09:39 .
    0 drwxr-xr-x 25 root wheel 850 Jan 12 12:14 ..
    0 drwxrwxrwx 2 nobody nobody 68 Mar 7 09:39 PDFMaker
    0 drwx--x--- 33 root _lp 1122 Jun 26 01:45 cups
    Yup, you're correct: You've done some messing-up somtime, somewhere!
    Now you need to figure out where you've left the launchd Daemon/Agent that causes the respawning of this doomed job. There are all over the place!
    Try this, but on your side. No need to post the full results here: It'll be too long.
    The 'ls -lrt' command sorts by last accessed time. So, you'll most likely to get the non-Apple ones listed last
    ls -lrt /System/Library/LaunchDaemons/
    ls -lrt /System/Library/LaunchAgents/
    ls -lrt /Library/LaunchDaemons/
    ls -lrt /Library/LaunchAgents/
    ls -lrt ~/Library/LaunchAgents/
    There is a bunch of plist (XML) files. One may spark in you some souvenir of what you've tried once and canceled.
    Remember that deleting an application from the /Application folder is NOT ENOUGH to uninstall a program!
    On good hint for you is to hit Command-I when a package installer runs. This will show you all the files that will be installed. Good thing to remember of those when you want to uninstall an application. There are some applications that take care of nicely uninstalling other applications ... removing launchd daemons/agents.
    Give a try first with
    ls -lrt /Library/LaunchAgents/
    My bet it's here.
    Good luck,
    Thierry

  • Exception.log and mail.log stopped logging (MX7)

    Hi all - we have been experiencing intermittent problems with our MX 7.02 server & checked the log files to help diagnose the problem.
    However both exception.log and mail.log appear to have stopped logging information in June 2010.
    The size of the logfiles is only 178K and 34K.
    Does anyone know why they've stopped & how to restart the logging?
    Many thanks
    cf_rog

    On CF7 as far as I know you need to restart the CF server. In CF9 you
    can selectively enable/disable logging for those files and thus
    attempt to restart logging.
    Mack

  • No mail logging after upgrade to 10.5.7

    Everything seems to be working normally, but no logging is taking place to /var/log/mail.log.
    If I edit amavisd.conf to turn off syslog logging and log to /var/log/amavis.log, it does go there.
    Nothing looks wrong in syslog.conf, etc.
    Any ideas?

    After a little additional research I've found the following...
    Upon opening a Terminal Window and entering /Applications/Mail.app/Contents/MacOS/Mail I'm provided with: cannot execute binary file
    Might this imply the upgrade to 10.5.7 corrupted the Mail.app executable? if yes, how do I revert to a previous version? Will TimeMachine help in this?

  • Blank Mail Logs - Postfix - PHP

    I need a really simple solution but all the instructions I've found so far involve setting up extra stuff I don't need. So I'm hoping someone can give me a quick bit of info.
    Basically I have a site that sends email notifications at times (using PHP mail() function).
    I have Postfix installed which I assume is handling the sending of these emails.
    But no logs are being made. All the /var/log/mail.log files are completely blank 0Kb files.
    I need them to log each email sent out by the server with a time. I enabled the php mail() logging function in php.ini but that doesn't include timestamping. So I need the fuller logs Postfix can do.
    But the instructions I've found all want to set up full blown email servers. I just want some timestamped logging.
    Can anyone help me out?

    In fact most of my log files seem to be empty. Any idea why??

  • Mail logs filling up disk space: why? ok to delete?

    Computer spec’s: 2GHz Mac Mini with 4GB of RAM and a 250GB flash storage. I am running OS 10.9.5 and Mail 7.3.
    Problem: My storage has been mysteriously filling up, with about 200 GB in “other” in “about this Mac.” I would delete files and then it would fill up again. Using WhatSize, I determined that Mail logs took up 107GB, with two files accounting for most of this (details below).
    Questions: Is it safe to delete Mail logs? Why are some so big? Why are dates so random? Can I prevent large mail logs in the future?
    In Library/Containers/com.apple.mail/Data/Library/Logs, here are the dates and size of the largest files named in format: [long stream of numbers and letters]=imap.gmail.com.txt
    July 15: 55.8 GB
    Sept 3: 47.17 GB
    Aug 6: 5.43 GB
    Aug 6 3.64 GB
    Then there are six files between 312GB and 867.2 GB and many others named in the above format and multiple files named in this format: [date]_GmailDelete.log dating back to May 21.
    Thank you for your help.

    Hi, I'm having a very similar trouble but I do not use Gmail. I have several mail accounts, essentially from 2 mail server providers (hosting and registrar companies), most accounts in IMAP but some still in POP.
    I'm on a PowerBook pro, retina 15 mid 2012, 2.7 Ghz Intel Core i7, with 750 Gb SSD disk", running OS X Yosemite 10.10.2
    Since one week I experience the same problem, disk space filling up without appearant reasons. In the Data/Library/Logs/Mail I have 541 files (!!), some of them very huge. I have deleted a 75 Gb file and another of 13Gb, but I still have files from more than 9Gb (ten file obver 1Gb).
    I have changed passwords in my accounts and even to access my hosting proividers. But no changes.
    Deleting the huge files in the Logs doesn't seem to affect Mails except the fact that I have to enter all POP / IMAP and SMTP passwords :-(
    In the logs, the hugest files are "2015-03-18_IMAPMailboxSyncEngine.log", 2mail.mydomainname-d44f367b-6650-4ddf-9cc6-4fe08822ab6c.txt", "2015-03-21_SocketStreamEvents.log", "137778C8-7690-48F3-877E-48D400322117-mail.mydomainename.txt", and I have plenty like that.
    The question is, where the problemn comes from ??
    When deleting the log files ... the problem is not solved because it continues to filling it with new logs, again ..
    Thank you for your assistance and help.

Maybe you are looking for

  • Unable to create archive. please help!

    hello everyone, i am trying to archive a project into a new folder using the media manager. the project bin contained many different sequences and was "saved as" many times in different names. when i reached the final version of the project i wanted

  • Creation of GL Master Records

    Dear Gurus, We are currently on R/3 3.1I and are in the process of doing an fresh installation of ECC 6.0. To upload the GL Master Records, I had planned to use LSMW, but how do we down load the data from R/3 3.1I for the upload into ECC 6.0 using LS

  • Error in executing few transaction in dialog user -referance user assigned

    hi, I created a referance user (testuser) and found it working for all t.code(eg.MM03) when it was working as dialog user. Now, i have created another user (testuser01) with testuser as referance user under Roles for functional team to work on it.not

  • UPPER() in external table definition

    Hi, Is it possible to apply the UPPER() function to character columns within an external table definition using the ORACLE_LOADER driver? I've tried myself and have looked through the documentation, and it seems like this is not possible ... just wan

  • Stopping A thread

    HI, I have written an application which starts two threads. Later on i want the two threads two stop using another method call. Actually i am starting the threads calling a bean from my JSP. Now i want to stop them using another method call from my J