I don't wish to see the hostname in my emails "on behalf of"


Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"


Top Level » Email » Exim

I don't wish to see the hostname in my emails "on behalf of"Last Modified: Feb 17, 2012, 4:36 pm
Exim by default will not trust any sending Users on your system (doesn't apply to mail sent via smtp).  This means that any email sent as a User from a script will have the from address be set to user@server.hostname.com.  If you wish to allow your Users to set the From address, and not have exim rewrite it, you can do so by setting this option:

untrusted_set_sender = *
no_local_from_check

in the top section of your exim.conf.  This option is similar to the trusted_users option, except it doesn't give complete trust in the User.. it simply allows the User to set the sender as they desire.

Related exim documentation on this:
http://www.exim.org/exim-html-current/doc/html/spec_html/ch14.html



If you're using suPhp, this can only be overridden with the use of a per-user php.ini file.
In that User's php.ini file, add the following code:

[mail function]
sendmail_path = /usr/sbin/sendmail -t -i -f user@domain.com

 
Related Helpfiles
Setup a per-user php.ini to allow open_basedir with suPhp

2003 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST