note 98378 added to function.mail

From: Date: Fri, 11 Jun 2010 13:44:54 +0000
Subject: note 98378 added to function.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-170055@lists.php.net to get a copy of this message
After trying to get mailsending to work on the 4 servers i put a new php on (5.3.2 at this time) and pulling hairs for hours, i gave up and installed Exim. Worked like a charm. This is the receipe i used: wget ftp://mirror.your mirror look it up on exim dot org /exim/ftp/exim/exim4/exim-4.72.tar.gz tar xzf exim-4.72.tar.gz cd exim-4.72 cp src/EDITME Local/Makefile cp exim_monitor/EDITME Local/eximon.conf adduser exim vi Local/Makefile find and replace EXIM_USER= to EXIM_USER=ref:exim find and replace EXIM_MONITOR=eximon.bin to #EXIM_MONITOR=eximon.bin (to disable it) find and replace HAVE_ICONV=yes to HAVE_ICONV=no (not needed for me) make make install cd /etc/alternatives rm -f mta ln -s /usr/exim/bin/exim /etc/alternatives/mta rm -f mta-sendmail ln -s /usr/exim/bin/exim /etc/alternatives/mta-sendmail ln -s /usr/exim/bin/exim /usr/sbin/exim rm -f /usr/sbin/sendmail ln -s /usr/exim/bin/exim /usr/sbin/sendmail ln -s /usr/exim/configure /etc/exim.conf now test if mail lookups resolve exim -bt yourname@yourdomain.int now test if mail sending works exim -v yourname@yourdomain.int From: Servername@yourdomain.int To: yourname@yourdomain.int Subject: test test ^D should send email, though it might get blackholed. (or not, in my case!) For me that did the trick (in minutes!) ---- Server IP: 91.199.167.223 Probable Submitter: 80.101.124.67 ---- Manual Page -- http://www.php.net/manual/en/function.mail.php Edit -- https://master.php.net/note/edit/98378 Del: integrated -- https://master.php.net/note/delete/98378/integrated Del: useless -- https://master.php.net/note/delete/98378/useless Del: bad code -- https://master.php.net/note/delete/98378/bad+code Del: spam -- https://master.php.net/note/delete/98378/spam Del: non-english -- https://master.php.net/note/delete/98378/non-english Del: in docs -- https://master.php.net/note/delete/98378/in+docs Del: other reasons-- https://master.php.net/note/delete/98378 Reject -- https://master.php.net/note/reject/98378 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#170055) next »