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.

root & mailer-daemon mail rejected - may apply to all mailscanner users

Discussion in 'E-mail Discussions' started by nickp666, May 9, 2007.

  1. nickp666

    nickp666 Well-Known Member

    Joined:
    Jan 28, 2005
    Messages:
    770
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    /dev/null
    Basically what was happening was all mail from mailer-daemon@my.box.net and root@my.box.net was being rejected with:

    sender verify defer for <root@my.box.net>: require_files: error for /root/.spamassassinenable: Permission denied

    Turns out there were the exim checks for SA in the exim conf, sa_virtualuser directives, as we run mailscanner these are not used, yet seems to check them anyway, given the fact the config will be re-written on upgrade I figured it best to edit the config via WHM, however the lines in the config file didnt exist there (not even in the non-editable bit) so I needed to manually remove them to get things working again, however I am now concerned that they will re-appear when a newer exim RPM is available.

    Any advice greatly welcomed!
     
  2. hostww

    hostww Guest

    Maybe you forgot...?

    I dont' use mailscanner... but I do use SA v3.2

    You may want to make sure you have the below ACL's in your config...

    #!!# ACL that is used after the RCPT command
    check_recipient:
    # Exim 3 had no checking on -bs messages, so for compatibility
    # we accept if the source is local SMTP (i.e. not over TCP/IP).
    # We do this by testing for an empty sending host field.
    accept hosts = :

    # Accept bounces to lists even if callbacks or other checks would fail
    warn message = X-WhitelistedRCPT-nohdrfromcallback: Yes
    condition = \
    ${if and {{match{$local_part}{(.*)-bounces\+.*}} \
    {exists {/usr/local/cpanel/3rdparty/mailman/lists/${lc:$1}/config.pck}}} \
    {yes}{no}}

    accept condition = \
    ${if and {{match{$local_part}{(.*)-bounces\+.*}} \
    {exists {/usr/local/cpanel/3rdparty/mailman/lists/${lc:$1}/config.pck}}} \
    {yes}{no}}


    # Accept bounces to lists even if callbacks or other checks would fail
    warn message = X-WhitelistedRCPT-nohdrfromcallback: Yes
    condition = \
    ${if and {{match{$local_part}{(.*)-bounces\+.*}} \
    {exists {/usr/local/cpanel/3rdparty/mailman/lists/${lc:$1}_${lc:$domain}/config.pck}}} \
    {yes}{no}}

    accept condition = \
    ${if and {{match{$local_part}{(.*)-bounces\+.*}} \
    {exists {/usr/local/cpanel/3rdparty/mailman/lists/${lc:$1}_${lc:$domain}/config.pck}}} \
    {yes}{no}}

    #if it gets here it isn't mailman
     
  3. aeroweb

    aeroweb Well-Known Member

    Joined:
    Jun 4, 2004
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    We actually ran into it recently.
     
  4. mooony

    mooony Well-Known Member

    Joined:
    Nov 9, 2002
    Messages:
    82
    Likes Received:
    0
    Trophy Points:
    6
    I chmod the /root directory to 755 and now the problem is fixed and mail gets send.

    it seems spamd needs to be able to read the .spamassassinenable but it can't as the directory is 750.

    I hope this helps.

    Ronald
     
  5. mfpoulsen

    mfpoulsen Registered

    Joined:
    Nov 15, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hi Ronald,

    I am also using SA 3.20 - and your solution worked great for me. Thanks for posting it.
     
  6. jdstallings

    jdstallings Well-Known Member

    Joined:
    Jul 27, 2003
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    Thanks!! Worked here also.
     
Loading...

Share This Page