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!

Form emails sent using the cPanel user ID

Discussion in 'E-mail Discussion' started by kumarjjj, Jul 17, 2017.

  1. kumarjjj

    kumarjjj Registered

    Joined:
    Jul 17, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    india
    cPanel Access Level:
    Root Administrator
    hi,

    emails ids has been created automatically as accountname1@myserverhostname,
    accountname2@myserverhostname 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
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,309
    Likes Received:
    393
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. kumarjjj

    kumarjjj Registered

    Joined:
    Jul 17, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    india
    cPanel Access Level:
    Root Administrator
    hi,
    all the mails ids are created with the account name with my serverhostname, i think its generated from the server.

    am confused how to stop these emails being genarated,plz suggest.
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,309
    Likes Received:
    393
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Your contact form is not authenticating as a user so email is being sent from the cPanel account's ID. You'll need to configure your contact form to use an actual email account.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    718
    Likes Received:
    122
    Trophy Points:
    168
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    Are using a standard HTML form or are you using some kind of CMS?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. kumarjjj

    kumarjjj Registered

    Joined:
    Jul 17, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    india
    cPanel Access Level:
    Root Administrator
    the emails are send to the mail ids that are present in the sendmail.php
     
  7. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    721
    Likes Received:
    245
    Trophy Points:
    93
    Location:
    Spain
    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@eddress.tld> 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.
     
    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