Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member Silent Ninja's Avatar
    Join Date
    Apr 2006
    Location
    Buenos Aires, Argentina
    Posts
    173

    Default Block e-mail forging

    I'm searching for a way to avoid exim sending e-mails as domains not hosted by me.

    As an example...

    1. An user using email@localdomain.com logs in via SMTP
    2. He should be able to send e-mails as email@localdomain.com, since that domain is on /etc/localdomains
    3. But he sends an e-mail editting the "from" address impersonating another.mail@yahoo.com
    4. yahoo.com obviously is not on /etc/localdomains, and thus I want that e-mail to be blocked

    Is there any way to do this with exim e-mail filtering ?

    This would really block a lot of outgoing spam, mostly phishing from hacked accounts.
    Silent Ninja
    "Practice Makes Perfect"

  2. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Block e-mail forging

    I believe the following should prevent spoofing in webmail. I am uncertain if this would work for emails sent by a remote client:

    Code:
    acl_check_data:
    deny
     authenticated	 = *
     condition = ${if or {{ !eqi{$authenticated_id} {$sender_address} }\
      { !eqi{$authenticated_id} {${address:$header_From:}} }\
     }\
     }
     message	 = Your FROM must be as the account you have authenticated with
    This would go into the box where it has begin acl directly about it (the second box in the WHM > Exim Configuration Editor > Advanced Editor). If you want to prevent not authenticating for scripts and force SMTP authentication for those scripts, you would need to revoke sendmail.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  3. #3
    Member Silent Ninja's Avatar
    Join Date
    Apr 2006
    Location
    Buenos Aires, Argentina
    Posts
    173

    Default Re: Block e-mail forging

    Damn, I forgot about the php-mailer...

    Could you do that avoiding the user "nobody"? (I'm using mod_php)
    Silent Ninja
    "Practice Makes Perfect"

  4. #4
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Block e-mail forging

    If the user nobody cannot send, then that is true you won't be able to use sendmail for scripts if you disable nobody from sending under mod_php (DSO).
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads & Tags
Similar threads

  1. need to block mail for user
    By ephrondiana in forum New User Questions
    Replies: 0
    Last Post: 07-16-2008, 11:47 PM
  2. I need help on forging
    By shann in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-20-2006, 11:42 AM
  3. Need help i want to block this from the mail
    By 5spider5 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-20-2004, 02:16 PM
  4. How to block mail domain
    By princo in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-10-2004, 03:47 AM
  5. Block Mail is not working...
    By prudhvik in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-16-2002, 12:15 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube