Form emails sent using the cPanel user ID

kumarjjj

Registered
Jul 17, 2017
3
0
1
india
cPanel Access Level
Root Administrator
hi,

emails ids has been created automatically as [email protected],
[email protected] and emails are send to the emails ids that are specified in the contact forms and the register for newletters in everydomain.

suggest an way to stop this emails , if there is an script in the server that creates these email ids please let me know how can i find these scipt and stop from being sending these emails.

thanks
 

rpvw

Well-Known Member
Jul 18, 2013
1,101
466
113
UK
cPanel Access Level
Root Administrator
Assuming your mail forms are using the standard mail() function of PHP to pass the mail to the sendmail binary for delivery - you can use the mail.force_extra_parameters to force the envelope from address. This can be applied in a custom php.ini for the account that runs the mail form, or as a simple addition of the -f <[email protected]> as the 5th parameter of the mail() function.

If you are running cloudlinux alt-php you can set the -f paramater in cPanel in the domains 'Select PHP Version' >> PHP Options >> mail.force_extra_parameters value.