meta data for this page
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
linux:issues [2019/08/22 08:26] – created niziak | linux:exim:issues [2019/08/22 08:45] – niziak | ||
---|---|---|---|
Line 11: | Line 11: | ||
<file php mailtest.php> | <file php mailtest.php> | ||
<?php | <?php | ||
- | $email = "w.nizinski@grinn-global.com"; | + | $email = "user@domain.com"; |
$subject = "test z phpa"; | $subject = "test z phpa"; | ||
$message = "lorem ipsum"; | $message = "lorem ipsum"; | ||
Line 18: | Line 18: | ||
print ($mail); | print ($mail); | ||
?> | ?> | ||
- | |||
</ | </ | ||
+ | |||
+ | Reason: | ||
+ | |||
+ | **Apache Module MPM ITK** | ||
+ | The MPM ITK Apache module implements restrictions on the use of the setuid() function and the setgid() function. As a result, scripts that depend on these functions may encounter problems. This includes scripts that use the mail() function, the shell_exec function, or the sudo command. | ||
+ | |||
+ | You can resolve these restrictions with one of the following methods: | ||
+ | |||
+ | * Do not use the MPM ITK Apache module. | ||
+ | * Update your script to no longer require escalated privileges. | ||
+ | * Turn off the security and allow users to execute scripts as the root user. You can allow users with a UID or GID between 0 and 4294496296 | ||
+ | < | ||
+ | < | ||
+ | LimitUIDRange 0 4294496296 | ||
+ | LimitGIDRange 0 4294496296 | ||
+ | </ | ||
+ | </ | ||
+ | | ||
+ | **Warning: | ||
+ | |||
+ | To work around it, you would have to change your php or php-apps to | ||
+ | send mails via SMTP to localhost instead of invoking / | ||
+ | directly. I can't give any advice on how to do that, though. Or maybe | ||
+ | there is some way to install some minimal MTA like ssmtp or nullmailer | ||
+ | as / | ||
+ | how easy it is to install those parallel to exim, though. Maybe it | ||
+ | could work by diverting exim's / | ||
+ |