The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Form emails sent using the cPanel user ID

Discussion in 'E-mail Discussions' 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:
    15,618
    Likes Received:
    296
    Trophy Points:
    433
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  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:
    15,618
    Likes Received:
    296
    Trophy Points:
    433
    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.
     
  5. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    588
    Likes Received:
    88
    Trophy Points:
    153
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    Are using a standard HTML form or are you using some kind of CMS?
     
  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:
    260
    Likes Received:
    76
    Trophy Points:
    28
    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.
     
Loading...

Share This Page