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.

Exim fails with "group mail was not found".

Discussion in 'E-mail Discussions' started by ispro, Dec 3, 2004.

  1. ispro

    ispro Well-Known Member

    Joined:
    Apr 8, 2004
    Messages:
    628
    Likes Received:
    1
    Trophy Points:
    18
    Exim keeps failing with these errors:

    Exim configuration error in line 519 of /etc/exim.conf:
    group mail was not found

    Exim configuration error in line 558 of /etc/exim.conf:
    group mail was not found

    Temporary solution is to use "group = GID" where GID is group id of mail or mailman.
    I'm totally confused - as it is first server with such a problem.

    It is a brand new one with RHE3.

    Chmod/chown looks on /var/spool/mail looks normal...

    If someone knows the resolution?
     
  2. brentp

    brentp Well-Known Member

    Joined:
    Mar 11, 2004
    Messages:
    324
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Ayr, North Queensland, Australia
    Add Mail

    try 'groupadd mail' and it might then work, the user might exist but the group probably doesnt :) (had a similar problem with apache recently).

    Regards,
    Brent
     
  3. ispro

    ispro Well-Known Member

    Joined:
    Apr 8, 2004
    Messages:
    628
    Likes Received:
    1
    Trophy Points:
    18
    Thank you for trying to help...
    But groups mail & mailman are exists. They have GID 12 & 32002 accordinly.
    When I'm using GIDs instead of group names - it works.

    However I was insisted to do chattr +i /etc/exim.conf to prevent cPanel updating configs.
    It is not a good solution, you know...

    Anyone else? :confused:
     
  4. ispro

    ispro Well-Known Member

    Joined:
    Apr 8, 2004
    Messages:
    628
    Likes Received:
    1
    Trophy Points:
    18
    bump!

    Gurus, take a look at the message, please!
     
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    A few things:

    1. Setting the immutable flag on exim.conf won't work as cPanel removes it before updating the config file.

    2. If you want to change the config you should use WHM > Exim Configuration Editor

    3. Can you paste the sections where lines 519 and 558 occur in your exim.conf (i.e. a few lines either side).

    4. Have you tried the following:

    /scripts/exim4 --latest
     
  6. ispro

    ispro Well-Known Member

    Joined:
    Apr 8, 2004
    Messages:
    628
    Likes Received:
    1
    Trophy Points:
    18
    1. Bad... Does this means we can't have our own Exim modifications? You know, some of them cannot be changed via WHM.

    2. Unfortunately, it is not a case. I have no idea how to change non-global variables, like
    virtual_aliases:
    ........
    group = mail
    ........

    3. At the bottom.... "group = 12" was originally "group = mail", this is the problem I have.

    4. Of course, I have did. No luck. Forcing update cPanel, SpamAssassin (just in case something wrong with them) not helps as well...

    Any more suggestions?


    ========== Starting from line 500 till line 561 =============
    central_user_filter:
    driver = redirect
    allow_filter
    check_local_user
    domains = ! lsearch;/etc/userdomains
    condition = "${perl{hasfilterfile}{$local_part}}"
    file = "${perl{getfilterfile}{$local_part}}"
    file_transport = address_file
    pipe_transport = virtual_address_pipe
    reply_transport = address_reply
    retry_use_local_part
    no_verify

    virtual_aliases_nostar:
    driver = redirect
    allow_defer
    allow_fail
    data = ${if exists{/etc/valiases/$domain}{${lookup{$local_part@$domain}lsearch{/etc/valiases/$domain}}}}
    file_transport = address_file
    group = 12
    pipe_transport = virtual_address_pipe
    retry_use_local_part
    domains = lsearch;/etc/localdomains
    unseen

    virtual_user_spam:
    driver = accept
    condition = "${perl{check_deliver_spam}{$domain}{$local_part}}"
    headers_remove="x-spam-exim"
    domains = lsearch;/etc/userdomains
    retry_use_local_part
    transport = virtual_userdelivery_spam

    virtual_user:
    driver = accept
    condition = "${perl{check_deliver}{$domain}{$local_part}}"
    headers_remove="x-spam-exim"
    domains = lsearch;/etc/userdomains
    retry_use_local_part
    transport = virtual_userdelivery


    has_alias_but_no_mailbox_discarded_to_prevent_loop:
    driver = redirect
    condition = "${perl{checkvalias}{$domain}{$local_part}}"
    domains = lsearch;/etc/localdomains
    data="#Exim Filter\nseen finish"
    group = "${lookup{$domain}lsearch* {/etc/userdomains}{$value}}"
    user = "${lookup{$domain}lsearch* {/etc/userdomains}{$value}}"
    allow_filter
    disable_logging = true

    virtual_aliases:
    driver = redirect
    allow_defer
    allow_fail
    data = ${if exists{/etc/valiases/$domain}{${lookup{*}lsearch{/etc/valiases/$domain}}}}
    file_transport = address_file
    group = 12
    pipe_transport = virtual_address_pipe
    domains = lsearch;/etc/localdomains
    retry_use_local_part
     
  7. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    How odd.

    1. Yes, that's what it means. Yes, I do know that.

    2. Basically, you can't with the cPanel setup without having to check your configuration after a upcp run (usually an upgrade run)

    If you grep /etc/group and /etc/gshadow, is this what you see, and no more:

    grep mail /etc/group
    mail:x:12:mail
    mailnull:x:47:
    mailman:x:503:mailman
    mailtrap:x:504:

    grep mail /etc/gshadow
    mail:::mail
    mailnull:x::
    mailtrap:!::
     
  8. ispro

    ispro Well-Known Member

    Joined:
    Apr 8, 2004
    Messages:
    628
    Likes Received:
    1
    Trophy Points:
    18
    Yeah... as was said before - nothing wrong with passwd/shadow files.

    However Exim not works with group names.
     
  9. K_aneda

    K_aneda Well-Known Member

    Joined:
    Feb 29, 2004
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Sydney, Australia
    Make sure that /etc/group is world-readable, same with /etc/passwd. But not world-writeable.
     
  10. ispro

    ispro Well-Known Member

    Joined:
    Apr 8, 2004
    Messages:
    628
    Likes Received:
    1
    Trophy Points:
    18
    Your post helps me a little...

    For a strange reason /etc/group got 600 instead of 644 when Exim rebuilds. Looks like it happens after /scripts/upcp - we have created /scripts/postupcp that chmod 644 on /etc/group and it helped.

    However do not know what the process chmod it back to 600 after upcp...
     
Loading...

Share This Page