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.

/etc/trustedmailhosts

Discussion in 'E-mail Discussions' started by mtindor, Nov 1, 2007.

  1. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,279
    Likes Received:
    36
    Trophy Points:
    48
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    I see the existence of this file in the latest Release version.

    I see what the changelog says it does, but I don't see where exim or spamassassin is calling/checking that file for IPs. Where is that file referenced within exim or spamassassin?

    Mike
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    It's an ACL, you need to enable this in the Exim Configuration Editor "Trusted Mail Host Whitelist (/etc/trustedmailhosts) -- bypass spam checks"
     
  3. yapluka

    yapluka Well-Known Member

    Joined:
    Dec 24, 2003
    Messages:
    301
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    France
    cPanel Access Level:
    Root Administrator
    What is the format that should be used there ? IP ? FQDN ? Wildcards allowed ?

    Thanks !
     
  4. rpmws

    rpmws Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    1,824
    Likes Received:
    5
    Trophy Points:
    38
    Location:
    back woods of NC, USA
    this may be what I was asking nick for a few weeks ago. I plan to use it to put all my shared boxes IPs in. I have clients that send mail back and forth as well as forward back and forth between servers to multiple domains. Using this will lighten the load on the machines when they exchange emails.

    some thing else it will also do is allow certian registrars that send expiration notices out for domain owners to make sure they get their notices. Many of those systems are tagged by spamassassin and the RBLs. I look forward to using this feature. Great THANKS to cPanel again for taking my call and again thanks for putting our ideas and needs and interests on the top of the list. cPanel is always keeping it's users in mind. big thanks!!!
     
  5. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,279
    Likes Received:
    36
    Trophy Points:
    48
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    Ahh, I would never see that in there because... as soon as I edit the exim config editor for things like the dictionary attack ACL and a few HELO checks, I don't get to see the normal stuff that everyone else sees in exim configuration editor. Even though the things I add all work fine, it obviously can't parse the files and make sense out of all of the ACLS once I add a few - so it doesn't show me those things. So typically I have to:

    1. revert everything to default config
    2. set up those settings like that which i want
    3. then add my ACLs lastly.. knowing I won't ever be able to do #2 again until I do #1.

    Mike
     
  6. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    So the Exim Editor in WHM seems to choke on your custom edits? Can you provide examples so perhaps we can improve the parsing?
     
  7. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,279
    Likes Received:
    36
    Trophy Points:
    48
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    Yes. I originally had a description of how to reproduce the problem, but it was off topic. I can open a ticket, or a bugzilla report if you want. You can have access to see for yourself what it looks like now (after I added the ACLs), or you can have access to a box that you then revert back to default configs and apply the ACL and HELO checks to yourself so that you can see the problem reproduced.

    The bugzilla report is http://bugzilla.cpanel.net/show_bug.cgi?id=6073 . However, you probably need to know exactly what I added in order to reproduce the problem.

    Mike
     
    #7 mtindor, Nov 5, 2007
    Last edited: Nov 5, 2007
  8. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Thanks for going the extra step with the bug report. Your original response was emailed to me before your edit, there should be enough info there to re-create and determine what is happening. I have a few ideas after perusing the additions. If a ticket is necessary, I'll let you know.

    Thanks again.
     
  9. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,279
    Likes Received:
    36
    Trophy Points:
    48
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    Ok sounds good. Thanks :)

    Mike
     
  10. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    I tracked down that thread to verify, but produced the same results. The HELO-based ACLs are producing configuration errors:

    Code:
    007-11-05 19:20:02 Exim configuration error in line 254 of /etc/exim.conf.buildtest:
      missing or malformed ACL name
    
    The line it mentions is where it matches the HELO to an IP Address. The config test also choked on the empty HELO test. I'll have to play around with it a bit more later.

    Testing on 11.15.0-C17853
    Exim 4.68-1_cpanel_Maildir
     
  11. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,279
    Likes Received:
    36
    Trophy Points:
    48
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    Thanks Kenneth, I appreciate it!

    Mike
     
  12. jamesbond

    jamesbond Well-Known Member

    Joined:
    Oct 9, 2002
    Messages:
    738
    Likes Received:
    1
    Trophy Points:
    18
    Does this work for 'sender verify' and callout checks as well?
     
Loading...

Share This Page