[SOLVED] Spam Alerts every 3 hours?

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

  1. killmasta93

    killmasta93 Member

    Joined:
    Aug 13, 2017
    Messages:
    186
    Likes Received:
    4
    Hi,
    I was wondering if someone could shed some light. Currently was looking though the forums and saw someone else having the same issue. I saw that they did a cron job but for some odd reason im getting and error

    Code:
    03 13 * * * root /usr/bin/pmgqm send
    
    and i get this
    Code:
    bin/sh: 1: root: not found
    Thank you
     
  2. dcsapak

    dcsapak Proxmox Staff Member
    Staff Member

    Joined:
    Feb 1, 2016
    Messages:
    2,406
    Likes Received:
    213
    where did you put this?
    it tries to execute 'root' so just omit that column
     
    killmasta93 likes this.
  3. William Edwards

    William Edwards New Member

    Joined:
    May 20, 2017
    Messages:
    17
    Likes Received:
    2
    `root` is not a (native) command. Use `sudo` instead if you really need to run it as root. Then, make sure the cron user may execute `sudo` without being asked for a password.
     
    #3 William Edwards, Jun 11, 2018
    Last edited: Jun 11, 2018
  4. killmasta93

    killmasta93 Member

    Joined:
    Aug 13, 2017
    Messages:
    186
    Likes Received:
    4
    Thanks for the reply, that did the trick @dcsapak took out root, i guess im used to ubuntu servers always put the root there.

    Thanks again
     
  5. William Edwards

    William Edwards New Member

    Joined:
    May 20, 2017
    Messages:
    17
    Likes Received:
    2
    `root` is not a command on Ubuntu either AFAIK.
     
    killmasta93 likes this.
  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