Spam send via mail() function

AdamMir

Registered
May 22, 2017
3
0
1
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?
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
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.
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
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.