Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Spam send via mail() function

Discussion in 'E-mail Discussion' started by AdamMir, Apr 10, 2019.

  1. AdamMir

    AdamMir Registered

    Joined:
    May 22, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Poland
    cPanel Access Level:
    Root Administrator
    Hi,

    Some time ago I think there was an option (please correct me if i'm wrong) in WHM somewhere, that would verify if mails (mostly send via mail() function) being send from local machine are being send from domain/mail account that is present there.

    Right now i can not find that option (except remote sender verification - with is not what i look for).

    I have review all of the tweak settings and exim configuration option. In net i did found some post, that people tend to write own code to make such verification and somehow merge it with cpanel exim.

    And now my questions:

    1. was that option available before? or i'm confusing it?
    2. If i do not want to block mail() function on server, how should i tackle sender verification?
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,476
    Likes Received:
    507
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hello,


    In WHM>>Service Configuration>>Exim Configuration Manager there are the following two options that can be used:

    Sender Verification Callouts
    Use callouts to verify the existence of email senders. Exim will connect to the mail exchanger for a given address to verify it exists before accepting mail from it.

    Sender Verification
    Verify that the domain's mail account actually exists at the origin.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. AdamMir

    AdamMir Registered

    Joined:
    May 22, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Poland
    cPanel Access Level:
    Root Administrator
    Yeah I know those options, but they are working for mails that are being send from remote server.
     
  4. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,476
    Likes Received:
    507
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @AdamMir

    Unfortunately if you're meaning mail that is sent through a script it is being authenticated with the cPanel user (since php is run as the user) so you wouldn't be able to restrict sending in that method.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice