Computing at SLAC
Search SLAC

Retrieve Unix Attachment

If the file is from one SLAC user to another SLAC user then tell them to share the file with the Windows or Unix file system and to not use e-mail for this.  However, normally you will find the file is from an offsite user and you can get these files out for the SLAC person as long as it is for business purposes.

  1. Connect to Quarantine Database.  Login to the system (nospam2, nospam3, nospam5) identified in the attachment given to you by user or if not provided by the user, you can go to the Web Admin console on the CSM/DB server (https://mailgate02.slac.stanford.edu:18080).
     
  2. Become root;
     
  3. su - pmx6 to become the pmx6 user;
     
  4. Start the quarantine management with a parameter stating to get the last 20K messages (this is usually enough for the last day or two): pmx-qman --max-messages 150000
     
  5. Finding the Message.  After it has read the quarantine you will format a command to find the message(s) you are looking for. In this example we are finding all messages addressed to lepimpec@slac.stanford.edu. You will see suggestions for formatting your query if you enter ? after the quarantine has been read.


     
  6. Saving the Message to Disk.  Assuming the message you are looking for is seen after pressing the 'l' key (for list) then you will use the "save" command to save to disk. We usually take the default for name and location of file. We are in the "pmx6" user local home directory (/home/pmx6) and we overwrite ("w") any existing file.


    Type 'quit' to leave the PMX Quarantine Management software. You now have the original message sitting in the pmx6 home directory (/home/pmx6) and you need to open it to pull the attachment out.
     
  7. Copy Message to Unix Home Directory and Save Attachment
  8. You will be using Pine to open the message and save the attachment to disk.
  9. Copy the message to your own AFS home directory (e.g. cp pmx-qman.mbox ~rkau/mbox);
  10. Type 'exit' to leave the pmx6 user;
  11. Type 'exit' to leave the root user;
  12. Get into your unix home directory (e.g. cd ~rkau);
  13. Type 'Alpine' to open the alpine mail software;
  14. When Pine opens enter 'i' (for Index);
  15. Type '>' (to view message);
  16. Type '>' (to view attachments);
  17. Move cursor to highlight the attachment you want and press the 's' key (for Save) and hit return to take the same name;
  18. You can type 'q' (for Quit) and press Enter to exit Pine now.
  19. Copy to Windows for Virus Scan.  Use your favorite Secured file Transfer program (SecureFX, WinSCP, etc) on your Windows computer to copy the file to the Windows file system. It should be automatically virus scanned as it is placed on disk but it's always safer if the file(s) is manually scanned. 
  20. You can place the file(s) in the Windows network DropBox area (i.e. "V:\SCS\Desktop\Pickup\XXXXXX") or wherever is accessible to the user.  Notify the user it is now in file system for them. You should erase it after a few days or whenever they tell you they have retrieved a copy of it.

 


  Last Updated: 08/09/2016
  Send Us Feedback 
  Mail Admin Team