[SOLVED] location of Virus Emails?

Discussion in 'Mail Gateway: Installation and configuration' started by killmasta93, Jun 5, 2018.

  1. killmasta93

    killmasta93 Member

    Joined:
    Aug 13, 2017
    Messages:
    208
    Likes Received:
    5
    Hi,
    I was wondering if someone could shed some light on the location of the emails that have the attachment of the virus? Sometimes its a false alert and wanted to check the attachment myself

    Thank you
     
  2. Jesco C.

    Jesco C. New Member
    Proxmox VE Subscriber

    Joined:
    May 30, 2018
    Messages:
    4
    Likes Received:
    1
    I think you're looking for this directory: /var/spool/pmg
    The quarantined spam and virus mails will getting saved there as normal mail files. If you're running a cluster, look into the cluster directory and find your spam and virus folders there.
     
  3. killmasta93

    killmasta93 Member

    Joined:
    Aug 13, 2017
    Messages:
    208
    Likes Received:
    5
    Thanks for the reply, i checked but i see the folders but its empty. How long does it store? as on the WebGUI i still see the email
     
  4. tom

    tom Proxmox Staff Member
    Staff Member

    Joined:
    Aug 29, 2006
    Messages:
    13,033
    Likes Received:
    333
    What do you get with:

    > ls -al /var/spool/pmg/

    and:

    > du -sh /var/spool/pmg/
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. killmasta93

    killmasta93 Member

    Joined:
    Aug 13, 2017
    Messages:
    208
    Likes Received:
    5
    Thanks for the reply this is what im getting

    Code:
    root@pmg:~# ls -al /var/spool/pmg/
    total 20
    drwxr-xr-x   5 root root 4096 May 26 15:24 .
    drwxr-xr-x   6 root root 4096 May 26 15:24 ..
    drwxr-xr-x   2 root root 4096 Jun  5 08:20 active
    drwxr-xr-x 168 root root 4096 Jun  4 19:23 spam
    drwxr-xr-x   5 root root 4096 May 28 21:30 virus
    root@pmg:~# du -sh /var/spool/pmg/
    47M     /var/spool/pmg/
    and when i check inside the folders
    Code:
    root@pmg:~# ls -al /var/spool/pmg/virus/
    total 20
    drwxr-xr-x 5 root root 4096 May 28 21:30 .
    drwxr-xr-x 5 root root 4096 May 26 15:24 ..
    drwxr-xr-x 2 root root 4096 Jun  3 00:05 31
    drwxr-xr-x 2 root root 4096 Jun  5 00:05 74
    drwxr-xr-x 2 root root 4096 Jun  3 00:05 BB
    
    there is nothing inside each folder

    Code:
    root@pmg:~# ls -l /var/spool/pmg/virus/31/
    total 0
    
    Thank you
     
  6. killmasta93

    killmasta93 Member

    Joined:
    Aug 13, 2017
    Messages:
    208
    Likes Received:
    5
  7. killmasta93

    killmasta93 Member

    Joined:
    Aug 13, 2017
    Messages:
    208
    Likes Received:
    5
    Update: i had to rename the file .eml then open it with outlook and works
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice