The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Failed to find user "system" from expanded string "${lookup{$domain}lsearch*

Discussion in 'E-mail Discussions' started by ProvidaGroup, Apr 15, 2010.

  1. ProvidaGroup

    ProvidaGroup Registered

    Joined:
    Apr 15, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hello, I hope someone can help me, since yesterday all internal emails have been getting stuck in the mail queue (e.g. logwatch reports, cron jobs) however any external emails get through just fine.

    When clicking 'deliver now' I get the following errror mesage
    Can anyone help me with this, I'm sure it will be something simple, but there seems to be nothing on Google
     
  2. hostsale

    hostsale Member

    Joined:
    Jan 31, 2008
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    I am getting the same error on a domain. Did you find a resolution?
     
  3. hostsale

    hostsale Member

    Joined:
    Jan 31, 2008
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Found the problem, edit your /etc/userdomains - find the domain in question.

    The correct entry for this domain is:

    your_domain.com: youruser

    Incorrect:

    your_domain.com: system

    In my case it was in userdomains 2x - check to make sure it is already in there before adding it again.
     
  4. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Use grep

    Something that might help would be to use grep to find all instances of "system" in the files in /var/cpanel/users. There should be no instances of it. The following command will show if there are, and which file(s) contain it:

    Code:
    # grep system /var/cpanel/users/*
    If there are any instances of "system", edit the file and substitute the correct cPanel username for "system." The username will be the same as the filename. After editing any file in /var/cpanel/users, be sure to run the following command:

    Code:
    # /scripts/updateuserdomains
     
  5. hostsale

    hostsale Member

    Joined:
    Jan 31, 2008
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    True enough, but all of the files have the word 'system' in them because of the following note in each file:

    cPanel -- If you edit this file directly you must run /scripts/updateuserdomains afterwards to rebuild the system caches
     
  6. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    A more refined grep command would be the following:

    Code:
    # grep ": system" /var/cpanel/users/*
    This would find all instances of "system" after a colon and a space, which is more specific than the original command I mentioned. I apologize for the oversight.
     
  7. zosorock

    zosorock Member

    Joined:
    Sep 12, 2006
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Please see below for excerpt from my exim_mainlog (replaced username and domain).

    I am getting the same errors when I try to run a PHP script that sends email to localdomains... but the problem is, I checked /etc/userdomains and none of the domains has system as the user. Any clue on what else can it be?

    Thanks in advance!

     
Loading...

Share This Page