<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>DIYMacServer &#187; Topic: Problem with sending mail from PHP</title>
<link>http://diymacserver.com/forum/</link>
<description>DIYMacServer &#187; Topic: Problem with sending mail from PHP</description>
<language>en</language>
<pubDate>Thu, 09 Sep 2010 06:30:18 +0000</pubDate>

<item>
<title>Richard on "Problem with sending mail from PHP"</title>
<link>http://diymacserver.com/forum/topic/problem-with-sending-mail-from-php#post-238</link>
<pubDate>Fri, 01 Dec 2006 14:52:37 +0000</pubDate>
<dc:creator>Richard</dc:creator>
<guid isPermaLink="false">238@http://diymacserver.com/forum/</guid>
<description>Do you mean you receive emails from your local postfix server with these error messages?&#60;br /&#62;
&#60;br /&#62;
I guess someone else is sending spam to these fake addresses.&#60;br /&#62;
&#60;br /&#62;
By the way I've looked at your server and tested it with abuse.net tools (might explain the strange lines in your logfile) and you are absolutely not an open relay !!!  X-D</description>
</item>
<item>
<title>Michael on "Problem with sending mail from PHP"</title>
<link>http://diymacserver.com/forum/topic/problem-with-sending-mail-from-php#post-237</link>
<pubDate>Fri, 01 Dec 2006 14:35:12 +0000</pubDate>
<dc:creator>Michael</dc:creator>
<guid isPermaLink="false">237@http://diymacserver.com/forum/</guid>
<description>So, every few days I get a chunk of about 20 of these at a time from different source IPs to different non-existant end-users.  My guess is that this is from Postfix, telling me that it got a bounce when it got errors from the bounce message it sent.  &#60;br /&#62;
&#60;br /&#62;
My concern here is security, of course.  I have tested to make sure I'm not configured as an open relay, but I want to make sure this is not telling me something I should be acting upon.  &#60;br /&#62;
&#60;br /&#62;
&#60;blockquote&#62;Return-Path: &#38;lt;double-bounce@mail.whiterose.org&#38;gt;&#60;br /&#62;
X-Original-To: postmaster&#60;br /&#62;
Delivered-To: &#60;a href=&#34;mailto:postmaster@whiterose.org&#34;&#62;postmaster@whiterose.org&#60;/a&#62;&#60;br /&#62;
Received: by mail.whiterose.org (Postfix)&#60;br /&#62;
	id F2DA2696D6; Fri,  1 Dec 2006 08:26:53 -0500 (EST)&#60;br /&#62;
Date: Fri,  1 Dec 2006 08:26:53 -0500 (EST)&#60;br /&#62;
From: &#60;a href=&#34;mailto:MAILER-DAEMON@mail.whiterose.org&#34;&#62;MAILER-DAEMON@mail.whiterose.org&#60;/a&#62; (Mail Delivery System)&#60;br /&#62;
To: &#60;a href=&#34;mailto:postmaster@whiterose.org&#34;&#62;postmaster@whiterose.org&#60;/a&#62; (Postmaster)&#60;br /&#62;
Subject: Postfix SMTP server: errors from unknown[210.177.84.15]&#60;br /&#62;
Message-Id: &#38;lt;20061201132653.F2DA2696D6@mail.whiterose.org&#38;gt;&#60;br /&#62;
&#60;br /&#62;
Transcript of session follows.&#60;br /&#62;
&#60;br /&#62;
 Out: 220 mail.whiterose.org ESMTP Postfix&#60;br /&#62;
 In:  EHLO mail.fx.hk&#60;br /&#62;
 Out: 250-mail.whiterose.org&#60;br /&#62;
 Out: 250-PIPELINING&#60;br /&#62;
 Out: 250-SIZE 10240000&#60;br /&#62;
 Out: 250-ETRN&#60;br /&#62;
 Out: 250-STARTTLS&#60;br /&#62;
 Out: 250-AUTH PLAIN LOGIN&#60;br /&#62;
 Out: 250-AUTH=PLAIN LOGIN&#60;br /&#62;
 Out: 250-ENHANCEDSTATUSCODES&#60;br /&#62;
 Out: 250-8BITMIME&#60;br /&#62;
 Out: 250 DSN&#60;br /&#62;
 In:  MAIL FROM:&#38;lt;&#38;gt; SIZE=41809&#60;br /&#62;
 Out: 250 2.1.0 Ok&#60;br /&#62;
 In:  RCPT TO:&#38;lt;Hickman4Norriscotyledon@whiterose.org&#38;gt;&#60;br /&#62;
 Out: 451 4.3.0 &#38;lt;Hickman4Norriscotyledon@whiterose.org&#38;gt;: Temporary lookup&#60;br /&#62;
     failure&#60;br /&#62;
 In:  RSET&#60;br /&#62;
 Out: 250 2.0.0 Ok&#60;br /&#62;
 In:  QUIT&#60;br /&#62;
 Out: 221 2.0.0 Bye&#60;br /&#62;
&#60;/blockquote&#62;</description>
</item>
<item>
<title>RWWMATT on "Problem with sending mail from PHP"</title>
<link>http://diymacserver.com/forum/topic/problem-with-sending-mail-from-php#post-236</link>
<pubDate>Thu, 30 Nov 2006 08:46:44 +0000</pubDate>
<dc:creator>RWWMATT</dc:creator>
<guid isPermaLink="false">236@http://diymacserver.com/forum/</guid>
<description>I think for the time being it will work.  I simply symlinked that directory to the one it should be using.  I think at some point I will need to do some cleanup and start the process over again instead of trying to patch it up as I've done.  Thanks for all the help though, and great job on the article!</description>
</item>
<item>
<title>Richard on "Problem with sending mail from PHP"</title>
<link>http://diymacserver.com/forum/topic/problem-with-sending-mail-from-php#post-235</link>
<pubDate>Tue, 28 Nov 2006 06:26:34 +0000</pubDate>
<dc:creator>Richard</dc:creator>
<guid isPermaLink="false">235@http://diymacserver.com/forum/</guid>
<description>So you solved it or do we need to look further into this ?</description>
</item>
<item>
<title>RWWMATT on "Problem with sending mail from PHP"</title>
<link>http://diymacserver.com/forum/topic/problem-with-sending-mail-from-php#post-234</link>
<pubDate>Tue, 28 Nov 2006 05:44:04 +0000</pubDate>
<dc:creator>RWWMATT</dc:creator>
<guid isPermaLink="false">234@http://diymacserver.com/forum/</guid>
<description>Ok, I think I have figured out the problem.  It looks as though postdrop was using the wrong configuration files.  I had originally tried to build postfix prior to reading your articles, and apparently postdrop was using the original directory that was built.  I have tried to rebuild based on your instructions, but it doesn't seem to affect where postdrop is looking.</description>
</item>
<item>
<title>RWWMATT on "Problem with sending mail from PHP"</title>
<link>http://diymacserver.com/forum/topic/problem-with-sending-mail-from-php#post-233</link>
<pubDate>Mon, 27 Nov 2006 23:03:23 +0000</pubDate>
<dc:creator>RWWMATT</dc:creator>
<guid isPermaLink="false">233@http://diymacserver.com/forum/</guid>
<description>I ran 'sudo postfix set-permissions' and didn't receive any errors after the command, but I still receive the public/pickup error.  When running 'postconf -n' I receive the following:&#60;br /&#62;
&#60;br /&#62;
broken_sasl_auth_clients = yes&#60;br /&#62;
command_directory = /usr/sbin&#60;br /&#62;
config_directory = /etc/postfix&#60;br /&#62;
daemon_directory = /usr/libexec/postfix&#60;br /&#62;
debug_peer_level = 2&#60;br /&#62;
html_directory = no&#60;br /&#62;
mail_owner = postfix&#60;br /&#62;
mailbox_size_limit = 0&#60;br /&#62;
mailq_path = /usr/bin/mailq&#60;br /&#62;
manpage_directory = /usr/share/man&#60;br /&#62;
mydomain = nitrogenweb.com&#60;br /&#62;
myhostname = mac.nitrogenweb.com&#60;br /&#62;
newaliases_path = /usr/bin/newaliases&#60;br /&#62;
queue_directory = /private/var/spool/postfix&#60;br /&#62;
readme_directory = /usr/share/doc/postfix&#60;br /&#62;
sample_directory = /usr/share/doc/postfix/examples&#60;br /&#62;
sendmail_path = /usr/sbin/sendmail&#60;br /&#62;
setgid_group = postdrop&#60;br /&#62;
smtpd_helo_required = yes&#60;br /&#62;
smtpd_recipient_restrictions = reject_unauth_pipelining,        reject_non_fqdn_recipient,      reject_unknown_recipient_domain,        permit_mynetworks,      permit_sasl_authenticated,  reject_unauth_destination,      warn_if_reject, reject_non_fqdn_hostname,       reject_non_fqdn_sender, reject_invalid_hostname,        reject_rbl_client list.dsbl.org,   reject_rbl_client sbl-xbl.spamhaus.org,  check_client_access regexp:/etc/postfix/dspam_filter_access&#60;br /&#62;
smtpd_sasl_auth_enable = yes&#60;br /&#62;
smtpd_sasl_local_domain = $myhostname&#60;br /&#62;
smtpd_sasl_security_options = noanonymous&#60;br /&#62;
unknown_local_recipient_reject_code = 550&#60;br /&#62;
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf&#60;br /&#62;
virtual_gid_maps = static:27&#60;br /&#62;
virtual_mailbox_base = /usr/local/virtual/&#60;br /&#62;
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf&#60;br /&#62;
virtual_mailbox_limit = 51200000&#60;br /&#62;
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf&#60;br /&#62;
virtual_minimum_uid = 102&#60;br /&#62;
virtual_transport = maildrop&#60;br /&#62;
virtual_uid_maps = static:102&#60;br /&#62;
&#60;br /&#62;
Also, in regards to one of your earlier posts, my sendmail_path setting is 'sendmail -t -i'</description>
</item>
<item>
<title>Richard on "Problem with sending mail from PHP"</title>
<link>http://diymacserver.com/forum/topic/problem-with-sending-mail-from-php#post-232</link>
<pubDate>Mon, 27 Nov 2006 21:30:35 +0000</pubDate>
<dc:creator>Richard</dc:creator>
<guid isPermaLink="false">232@http://diymacserver.com/forum/</guid>
<description>Several remarks:&#60;br /&#62;
- I guess you are sure postfix is running!&#60;br /&#62;
- can you do a 'sudo postfix set-permissions' and check again&#60;br /&#62;
- can you post the output of the 'postconf -n' command</description>
</item>
<item>
<title>RWWMATT on "Problem with sending mail from PHP"</title>
<link>http://diymacserver.com/forum/topic/problem-with-sending-mail-from-php#post-231</link>
<pubDate>Mon, 27 Nov 2006 07:05:08 +0000</pubDate>
<dc:creator>RWWMATT</dc:creator>
<guid isPermaLink="false">231@http://diymacserver.com/forum/</guid>
<description>Yes, it has been working sending/receiving from my mail client.  I did Google this a while back when I had some time, but didn't really find any solutions.  About all I was able to do was create public/pickup folders with permissions of 777 (none of which seemed to have work from what I recall).  I was hoping maybe it wasn't seeing the file because it didn't have permissions to get to that directory, but no luck.&#60;br /&#62;
&#60;br /&#62;
Thanks for the update on the maildrop stuff, it worked out perfect!</description>
</item>
<item>
<title>Richard on "Problem with sending mail from PHP"</title>
<link>http://diymacserver.com/forum/topic/problem-with-sending-mail-from-php#post-230</link>
<pubDate>Mon, 27 Nov 2006 06:38:03 +0000</pubDate>
<dc:creator>Richard</dc:creator>
<guid isPermaLink="false">230@http://diymacserver.com/forum/</guid>
<description>I've been googling a bit and what I found on the error is that it's not related to PHP but to Postfix not being properly configured. Where you able to send and receive email with your setup using a normal mail client ?&#60;br /&#62;
&#60;br /&#62;
By the way, you're quick on the maildrop stuff, the maildroprc should be in /etc and not in /etc/postfix. Sorry about that. I changed the doc.</description>
</item>
<item>
<title>RWWMATT on "Problem with sending mail from PHP"</title>
<link>http://diymacserver.com/forum/topic/problem-with-sending-mail-from-php#post-229</link>
<pubDate>Mon, 27 Nov 2006 06:06:50 +0000</pubDate>
<dc:creator>RWWMATT</dc:creator>
<guid isPermaLink="false">229@http://diymacserver.com/forum/</guid>
<description>I'm using the standard mail() function.  It will give the same error in the logs when setting the from address in the headers string, as well as when there are no headers set.&#60;br /&#62;
&#60;br /&#62;
When running postfix check, I get the following message &#38;quot;postfix/postfix-script&#38;#058; warning: not owned by root: /etc/postfix/maildroprc&#38;quot;  I believe this would have something to do with the changes I made based on your &#38;quot;Setting up maildrop&#38;quot; documentation.&#60;br /&#62;
&#60;br /&#62;
Also, this problem has been occurring before I followed the instructions in the latest documentation.</description>
</item>
<item>
<title>Richard on "Problem with sending mail from PHP"</title>
<link>http://diymacserver.com/forum/topic/problem-with-sending-mail-from-php#post-228</link>
<pubDate>Sun, 26 Nov 2006 22:15:22 +0000</pubDate>
<dc:creator>Richard</dc:creator>
<guid isPermaLink="false">228@http://diymacserver.com/forum/</guid>
<description>What function are you using to send mail and what are the settings in php.ini for mail ?&#60;br /&#62;
&#60;br /&#62;
And could you run the command 'postfix check' to see if anything is wrong. The file /directory should be there if postfix is installed correctly.&#60;br /&#62;
&#60;br /&#62;
I'm assuming that you've installed postfix using our setup.</description>
</item>
<item>
<title>RWWMATT on "Problem with sending mail from PHP"</title>
<link>http://diymacserver.com/forum/topic/problem-with-sending-mail-from-php#post-227</link>
<pubDate>Sun, 26 Nov 2006 21:09:30 +0000</pubDate>
<dc:creator>RWWMATT</dc:creator>
<guid isPermaLink="false">227@http://diymacserver.com/forum/</guid>
<description>I have followed along with the tutorial to setup postfix, but I have run into one problem.  When trying to send mail from PHP, it will fail.  To be more specific, the mail function returns true (success), but the postfix log shows the error &#38;quot;postfix/postdrop[21229]: warning: unable to look up public/pickup: No such file or directory.&#60;br /&#62;
&#60;br /&#62;
If anyone could help me find the root of this, or find some way to verify where it is looking for public/pickup would be greatly appreciated.</description>
</item>

</channel>
</rss>
