Skip to main content

How to add PHP mail script path into the email headers

Comments

9 comments

  • 24x7server
    Hello, Try to install php modules Mailheaders on your server. You will install it with the easyapche.
    0
  • postcd
    ]Try to install php modules Mailheaders on your server. You will install it with the easyapche.

    Thx, i selected exactly this package to be installed yesterday, but it throw some message like that it is incompatible or something (was just a moment this message appeared) then easy apache rebuild happend. Now i see it unticked in EasyApache I see i have ticked option "Save my profile with appropriate PHP 5 options set so that it is compatible with cpphp" and under it is: "Enables: CurlSSL FTP GD Gettext Iconv Imap Mbregex Mbstring Mysql Mysql of the system PGsql Sockets System Timezone Zlib Disables: MailHeaders" so kindly what should i do there please?
    0
  • cPanelMichael
    Hello :) You can browse to the "Mail" tab in "WHM Home " Service Configuration " Exim Configuration Manager" and enable the following options: "EXPERIMENTAL: Rewrite From: header to match actual sender" "Query Apache server status to determine the sender of email sent from processes running as nobody" Thank you.
    0
  • postcd
    I see, i enabled that function and restarted exim but only line in sent email headers that is new is: "X-From-Rewrite: unmodified, already matched" but it do not tells me path to sending script, i only knows username from the: "X-Get-Message-Sender-Via: myhostname: authenticated_id: [COLOR="#FF0000">cpaneluser/primary_hostname/system user"
    0
  • cPanelMichael
    You can't have the full MailHeaders module if you enable "Save my profile with appropriate PHP 5 options set so that it is compatible with cpphp". Thus, one alternative is to search the account of the username referenced for scripts with the ability to send out email to determine the culprit. Thank you.
    0
  • postcd
    thanks, i wanted to enable "MailHeaders" in easy apache, but that option "Save my profile with appropriate PHP 5 options set ..." disables that. I want to ask if i should untick that "Save my profile ..." option in easyapache to prevent disabling that, what can be consequencesm is it bad idea? thank you
    0
  • cPanelMichael
    Hello, Per the option: This option will make the following changes to your profile prior to the build: ? ? ? ? ? ? ? ? ? ? ? ?Enables: ? ? ? ? ? ? CurlSSL ? ? ? ? ? ? FTP ? ? ? ? ? ? GD ? ? ? ? ? ? Gettext ? ? ? ? ? ? Iconv ? ? ? ? ? ? Imap ? ? ? ? ? ? Mbregex ? ? ? ? ? ? Mbstring ? ? ? ? ? ? Mysql ? ? ? ? ? ? PGsql ? ? ? ? ? ? Sockets ? ? ? ? ? ? System Timezone ? ? ? ? ? ? Zlib ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Disables: ? ? ? ? ? ? MailHeaders ? ? ? ? ? ? Mysql of the system ? ? ? ? ? ? ? ? ? ? ? ? Are you sure you want to do this?
    It's not enabled by default, so unless you specifically require compatibility with cpphp (e.g. for custom plugins) then you can disable the option. Thank you.
    0
  • postcd
    Its offtopic, can you please link me to cpphp details, im not sure what it is and if i may need it in future. Really not sure if i can afford to untick that option in EasyApapche.
    0
  • cPanelMichael
    Its offtopic, can you please link me to cpphp details, im not sure what it is and if i may need it in future. Really not sure if i can afford to untick that option in EasyApapche.

    It's simply the internal PHP that cPanel uses. It does not relate to the PHP version used by your websites in conjunction with Apache. Documentation on it is available at: Thank you.
    0

Please sign in to leave a comment.