Answer the question
In order to leave comments, you need to log in
Why don't additional_parameters work when sent via Exim?
Good afternoon.
There is exim built from source to set up sending mail via Yandex tls.
Sending works fine, one problem is mail is always sent from the user www-data with which nginx is started and hostname of the machine.
Passing the 5th parameter "-f [email protected]" to the php mail function does not make any difference.
In the php-fpm settings, /usr/sbin/sendmail -t -i is specified as a symlink to Exim.
Either I assembled it without specifying any parameter or something is wrong in the config ... :) Che, no thoughts like Google, can the community help?
Answer the question
In order to leave comments, you need to log in
Found a solution on my own.
www.opennet.ru/base/net/exim_options.txt.html
> exim -f
sets the sender address. Normally, it can only be used by
trusted users, but the " untrusted_set_sender " directive can
allow untrusted users to use it.
If it is not clear what is the difference between the options, I will explain: a letter comes
from Vasya Pupkin.
Vasya Pupkin - this is the sender's name (option -F)
[email protected] - address (option -f)
Relative to trusted/untrusted users, if anyone is not in the know.
The root user and Exim's user (not necessarily the user
exim) are always trusted. The rest can be set in the config with
" trusted_users " and " trusted_groups " directives. If "-f" is not defined, or
is defined by an untrusted user, the sender is
[email protected] (defined by the
qualify_domain directive; if not defined, the server's hostname is used).
There is an exception to this limitation: an empty sender can
be specified by any user. An empty sender can be specified as an
empty string, or as a pair of angle brackets with nothing between them:
exim -f '<>' [email protected]
exim -f "" [email protected]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question