note 103873 added to function.mail

From: Date: Sun, 08 May 2011 02:02:31 +0000
Subject: note 103873 added to function.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-179535@lists.php.net to get a copy of this message
If you are having problems changing the Sender and Return-Path headers, make sure that you are editing the right configuration file. On my CentOS 5.6: [root@server mail]# ll /usr/sbin/sendmail lrwxrwxrwx 1 root root 21 Oct 26 2009 /usr/sbin/sendmail -> /etc/alternatives/mta [root@server mail]# ll /etc/alternatives/mta lrwxrwxrwx 1 root root 23 Apr 9 07:48 /etc/alternatives/mta -> /usr/sbin/sendmail.exim [root@server mail]# ll /usr/sbin/sendmail.exim lrwxrwxrwx 1 root root 4 Apr 9 07:45 /usr/sbin/sendmail.exim -> exim I spent some time trying to figure out why my changes to the sendmail.mc file were being ignored. Naturally, Exim configuration is different than Sendmail. You need to edit the /etc/exim/exim.conf file instead: remote_smtp: driver = smtp return_path = bounce@domain.com headers_rewrite = apache@* info@domain.com s ^ Don't forget the "s" at the end. See this page for more information: http://www.exim.org/exim-html-2.00/doc/html/spec_32.html#SEC669 If you are OK with displaying the apache user name (ie "Sender: apache@subdomain.domain.com") in the email header, then just update the qualify_domain configuration option in the same file. qualify_domain = domain.com This will fix the domain only (ie "Sender: apache@domain.com"). ---- Server IP: 192.41.42.26 Probable Submitter: 76.93.159.246 ---- Manual Page -- http://www.php.net/manual/en/function.mail.php Edit -- https://master.php.net/note/edit/103873 Del: integrated -- https://master.php.net/note/delete/103873/integrated Del: useless -- https://master.php.net/note/delete/103873/useless Del: bad code -- https://master.php.net/note/delete/103873/bad+code Del: spam -- https://master.php.net/note/delete/103873/spam Del: non-english -- https://master.php.net/note/delete/103873/non-english Del: in docs -- https://master.php.net/note/delete/103873/in+docs Del: other reasons-- https://master.php.net/note/delete/103873 Reject -- https://master.php.net/note/reject/103873 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#179535) next »