<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Reacties op: Setup Postfix to forward incoming email to PHP</title>
	<atom:link href="http://jeroensmeets.net/setup-postfix-to-forward-incoming-email-to-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://jeroensmeets.net/setup-postfix-to-forward-incoming-email-to-php/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=setup-postfix-to-forward-incoming-email-to-php</link>
	<description>technische dienst van &#039;t web</description>
	<lastBuildDate>Sun, 15 Apr 2012 09:32:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Door: Arnold</title>
		<link>http://jeroensmeets.net/setup-postfix-to-forward-incoming-email-to-php/#comment-8059</link>
		<dc:creator>Arnold</dc:creator>
		<pubDate>Sun, 15 Apr 2012 09:32:24 +0000</pubDate>
		<guid isPermaLink="false">http://jeroensmeets.net/?p=93#comment-8059</guid>
		<description>Great post. helped a lot.

one tip / suggestion.
look at the server hostname.
in mij case de hostname was &quot;server&quot;.
so the postfix aliasses lookd for incomming mail like: php_script@server.yourdomain.com

i had to create an forwarder (in mysql)
to redirect php_script@server.yourdomain.com -&gt; php_script@yourdomain.com</description>
		<content:encoded><![CDATA[<p>Great post. helped a lot.</p>
<p>one tip / suggestion.<br />
look at the server hostname.<br />
in mij case de hostname was &#8220;server&#8221;.<br />
so the postfix aliasses lookd for incomming mail like: <a href="mailto:php_script@server.yourdomain.com">php_script@server.yourdomain.com</a></p>
<p>i had to create an forwarder (in mysql)<br />
to redirect <a href="mailto:php_script@server.yourdomain.com">php_script@server.yourdomain.com</a> -&gt; <a href="mailto:php_script@yourdomain.com">php_script@yourdomain.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Door: Ben</title>
		<link>http://jeroensmeets.net/setup-postfix-to-forward-incoming-email-to-php/#comment-7553</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Thu, 22 Mar 2012 15:33:25 +0000</pubDate>
		<guid isPermaLink="false">http://jeroensmeets.net/?p=93#comment-7553</guid>
		<description>Please do not use &quot;sudo vi /yourfile&quot;. God kills a kity each time you do so.
Set $EDITOR and use &quot;sudoedit /yourfile&quot; instead.</description>
		<content:encoded><![CDATA[<p>Please do not use &#8220;sudo vi /yourfile&#8221;. God kills a kity each time you do so.<br />
Set $EDITOR and use &#8220;sudoedit /yourfile&#8221; instead.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Door: Aleksi Räsänen</title>
		<link>http://jeroensmeets.net/setup-postfix-to-forward-incoming-email-to-php/#comment-7296</link>
		<dc:creator>Aleksi Räsänen</dc:creator>
		<pubDate>Thu, 23 Feb 2012 15:03:09 +0000</pubDate>
		<guid isPermaLink="false">http://jeroensmeets.net/?p=93#comment-7296</guid>
		<description>I had a problem with postfix to run my script, because postfix runned my script using username &quot;nobody&quot; and group was &quot;nogroup&quot;. 

I had chmodded my script path &amp; script itself to 775 and my group was set to &#039;postfix&#039; and it failed - no any errors etc. anywhere (at least I had not found them).

When I changed my script path to be readable/writeable to group nogroup all went fine. 

This problem happened on Debian. I don&#039;t know why scripts are running with nobody/nogroup but anyway now it works. Just for info if anybody have same problem :)</description>
		<content:encoded><![CDATA[<p>I had a problem with postfix to run my script, because postfix runned my script using username &#8220;nobody&#8221; and group was &#8220;nogroup&#8221;. </p>
<p>I had chmodded my script path &amp; script itself to 775 and my group was set to &#8216;postfix&#8217; and it failed &#8211; no any errors etc. anywhere (at least I had not found them).</p>
<p>When I changed my script path to be readable/writeable to group nogroup all went fine. </p>
<p>This problem happened on Debian. I don&#8217;t know why scripts are running with nobody/nogroup but anyway now it works. Just for info if anybody have same problem <img src='http://jeroensmeets.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Door: jsd</title>
		<link>http://jeroensmeets.net/setup-postfix-to-forward-incoming-email-to-php/#comment-4375</link>
		<dc:creator>jsd</dc:creator>
		<pubDate>Tue, 15 Nov 2011 19:30:21 +0000</pubDate>
		<guid isPermaLink="false">http://jeroensmeets.net/?p=93#comment-4375</guid>
		<description>Thanks for this, very helpful!</description>
		<content:encoded><![CDATA[<p>Thanks for this, very helpful!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Door: Jeroen</title>
		<link>http://jeroensmeets.net/setup-postfix-to-forward-incoming-email-to-php/#comment-2830</link>
		<dc:creator>Jeroen</dc:creator>
		<pubDate>Mon, 22 Aug 2011 07:18:04 +0000</pubDate>
		<guid isPermaLink="false">http://jeroensmeets.net/?p=93#comment-2830</guid>
		<description>Goodmorning Martin,

don&#039;t know if WordPress changed the code you typed, but i think it should be

tincho2: “&#124; php -q /etc/postfix/emaillistener.php”</description>
		<content:encoded><![CDATA[<p>Goodmorning Martin,</p>
<p>don&#8217;t know if WordPress changed the code you typed, but i think it should be</p>
<p>tincho2: “| php -q /etc/postfix/emaillistener.php”</p>
]]></content:encoded>
	</item>
	<item>
		<title>Door: martin</title>
		<link>http://jeroensmeets.net/setup-postfix-to-forward-incoming-email-to-php/#comment-2784</link>
		<dc:creator>martin</dc:creator>
		<pubDate>Fri, 19 Aug 2011 20:15:59 +0000</pubDate>
		<guid isPermaLink="false">http://jeroensmeets.net/?p=93#comment-2784</guid>
		<description>Hi Jeroem, i tried the example but using virtual aliases (/etc/postfix/virtual) and it did not work. It keeping saying that the user does not exist. Any ideas?

tincho2@mydomain.com      tincho2@email2.mydomain.com, &quot;&#124; php -q /etc/postfix/emaillistener.php&quot;

Thanks! Martin.</description>
		<content:encoded><![CDATA[<p>Hi Jeroem, i tried the example but using virtual aliases (/etc/postfix/virtual) and it did not work. It keeping saying that the user does not exist. Any ideas?</p>
<p><a href="mailto:tincho2@mydomain.com">tincho2@mydomain.com</a>      <a href="mailto:tincho2@email2.mydomain.com">tincho2@email2.mydomain.com</a>, &#8220;| php -q /etc/postfix/emaillistener.php&#8221;</p>
<p>Thanks! Martin.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Door: tecs</title>
		<link>http://jeroensmeets.net/setup-postfix-to-forward-incoming-email-to-php/#comment-613</link>
		<dc:creator>tecs</dc:creator>
		<pubDate>Sat, 07 May 2011 17:35:26 +0000</pubDate>
		<guid isPermaLink="false">http://jeroensmeets.net/?p=93#comment-613</guid>
		<description>Thanks I got it to work.  Appears that I was editing the wrong alias file. I was using the /etc/aliases instead of /etc/postfix/aliases.  When I put the php script in both it worked fine.  Thanks for this post!</description>
		<content:encoded><![CDATA[<p>Thanks I got it to work.  Appears that I was editing the wrong alias file. I was using the /etc/aliases instead of /etc/postfix/aliases.  When I put the php script in both it worked fine.  Thanks for this post!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Door: jeroensmeets</title>
		<link>http://jeroensmeets.net/setup-postfix-to-forward-incoming-email-to-php/#comment-525</link>
		<dc:creator>jeroensmeets</dc:creator>
		<pubDate>Mon, 02 May 2011 08:12:35 +0000</pubDate>
		<guid isPermaLink="false">http://jeroensmeets.net/?p=93#comment-525</guid>
		<description>@tecs, better to give it a safe place. But as long as you point the /etc/aliases line to the file, it should work. So something along the lines of

email+to+redirect: &quot;&#124; php -q /home/username/Desktop/script.php&quot;

should work.</description>
		<content:encoded><![CDATA[<p>@tecs, better to give it a safe place. But as long as you point the /etc/aliases line to the file, it should work. So something along the lines of</p>
<p>email+to+redirect: &#8220;| php -q /home/username/Desktop/script.php&#8221;</p>
<p>should work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Door: tecs</title>
		<link>http://jeroensmeets.net/setup-postfix-to-forward-incoming-email-to-php/#comment-518</link>
		<dc:creator>tecs</dc:creator>
		<pubDate>Mon, 02 May 2011 04:46:09 +0000</pubDate>
		<guid isPermaLink="false">http://jeroensmeets.net/?p=93#comment-518</guid>
		<description>I have the aliases file setup the same as you have it here and the permissions set correctly, but when i send an email nothing happens.  No errors or anything.  Do I have to have the script in a certain place?  Its just on my desktop right now.</description>
		<content:encoded><![CDATA[<p>I have the aliases file setup the same as you have it here and the permissions set correctly, but when i send an email nothing happens.  No errors or anything.  Do I have to have the script in a certain place?  Its just on my desktop right now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Door: jeroensmeets</title>
		<link>http://jeroensmeets.net/setup-postfix-to-forward-incoming-email-to-php/#comment-291</link>
		<dc:creator>jeroensmeets</dc:creator>
		<pubDate>Mon, 22 Nov 2010 13:34:39 +0000</pubDate>
		<guid isPermaLink="false">http://jeroensmeets.net/?p=93#comment-291</guid>
		<description>@Steve -- thanks for the link.</description>
		<content:encoded><![CDATA[<p>@Steve &#8212; thanks for the link.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

