On 2015-07-17, Giuliano David <g.david@???> wrote:
> Hi everbody.
> Within Exim I tried using "trusted_users = root" in main configuration,
> but the effect is not what I need as I read in chapter 14
> (http://www.exim.org/exim-html-current/doc/html/spec_html/ch-main_configuration.html)
> and in chapter 5.2 of Exim documentation.
on *nix PHP's mail() function sends email via local
submission ( /var/lib/sendmail )
> Can anyone point me in the right direction to achieve the same with exim4?
Exim's default config is to accept all local senders, but that's
easily fixed.
# in the main section:
acl_not_smtp = acl_local
# in the ACL section:
# order of ACLs is not significant, just insert this at the head of
# that section.
acl_local:
accept
authenticated = root:exim
# the list here should include the username exim runs under, else
# bounce messages won't be generated successfully, and failed emails
@ will be retried indefinately..
deny
# that's all the configuration needed/
if the rogue PHP is instead opening a socket to localhost:smtp or localhost:submission
do also as suggested previously by others.
--
umop apisdn