[SOLVED] Disable users to have access quarantine

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

  1. killmasta93

    killmasta93 Member

    Joined:
    Aug 13, 2017
    Messages:
    194
    Likes Received:
    4
    Hi,
    I was wondering if someone could shed some light, as i have proxmox email gateway working, currently only want to users to get the spam daily reports but rather the users do it, i would tell the user to alert me so i can check it before putting it in the inbox. I want to disable so the user does not do it by himself. I went to the option to choose only LDAP but when the users click on the hyper Link it automatics opens. I disabled the ticket and also i dont have LDAP configured. So in theory it should not open without username and password.

    Thank you
     
  2. dietmar

    dietmar Proxmox Staff Member
    Staff Member

    Joined:
    Apr 28, 2005
    Messages:
    16,168
    Likes Received:
    268
    I guess you need to customize the spam report template, and remove all links to the GUI including tickets.
     
  3. killmasta93

    killmasta93 Member

    Joined:
    Aug 13, 2017
    Messages:
    194
    Likes Received:
    4
    Thanks for the reply, does the spam report template located in the FTP files of proxmox or in postgre?
     
  4. fluxX04

    fluxX04 New Member

    Joined:
    Mar 14, 2018
    Messages:
    10
    Likes Received:
    2
    Hi,

    it's located on the server.

    Copy an existing template to "spamreport-custom.tt" and make your changes.
    Code:
    cp /var/lib/pmg/templates/spamreport-verbose.tt /var/lib/pmg/templates/spamreport-custom.tt
    To activate the template select "Report Style: Custom" under "Configuration -> Spam Detector -> Quartantine"

    Greetz
     
  5. killmasta93

    killmasta93 Member

    Joined:
    Aug 13, 2017
    Messages:
    194
    Likes Received:
    4
    Thanks for the reply, as i was looking at the verbose.tt i would cut this part?

    Code:
    <td><a style='cursor:pointer;' href='[% item.href | url %]'><b>[% item.subject %]</b></a></td>
          <td align=right nowrap>
            <div style='font-size:xx-small;'>
              <a href='[% item.href | url %]&action=whitelist'>Whitelist</a>&nbsp;
              <a href='[% item.href | url %]&action=blacklist'>Blacklist</a>&nbsp;
              <a href='[% item.href | url %]&action=deliver'>Deliver</a>&nbsp;
              <a href='[% item.href | url %]&action=delete'>Delete</a>
            </div>
          </td>
        </tr>
        <tr><td colspan=2><hr></td></tr>
    
     
  6. fluxX04

    fluxX04 New Member

    Joined:
    Mar 14, 2018
    Messages:
    10
    Likes Received:
    2
    Hi,

    yeah. You can test the report by executing the command (only if there are items in the quarantine):
    Code:
    pmgqm send --receiver name@domain.com
    Greetz
     
    killmasta93 likes this.
  7. killmasta93

    killmasta93 Member

    Joined:
    Aug 13, 2017
    Messages:
    194
    Likes Received:
    4
    Thank you so much worked perfect.
     
  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