<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Vision Helpdesk &#124; Satellite Helpdesk &#124; Web Based Php Ajax Help desk &#124; Online Webhosting Support Helpdesk Software &#187; .foward email piping</title>
	<atom:link href="http://www.thevisionworld.com/tag/foward-email-piping/feed" rel="self" type="application/rss+xml" />
	<link>http://www.thevisionworld.com</link>
	<description></description>
	<lastBuildDate>Tue, 27 Dec 2011 08:52:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Vision Helpdesk FAQ&#8217;s &#124; Exim &#124; Postfix &#124; Qmail &#124; SendMail Email Piping</title>
		<link>http://www.thevisionworld.com/vision-helpdesk-faqs-exim-postfix-qmail-sendmail-email-piping.html</link>
		<comments>http://www.thevisionworld.com/vision-helpdesk-faqs-exim-postfix-qmail-sendmail-email-piping.html#comments</comments>
		<pubDate>Thu, 19 Nov 2009 08:35:58 +0000</pubDate>
		<dc:creator>Vision Helpdesk</dc:creator>
				<category><![CDATA[Vision Helpdesk FAQ's]]></category>
		<category><![CDATA[.foward email piping]]></category>
		<category><![CDATA[cPanel Email Piping]]></category>
		<category><![CDATA[Email forward to script]]></category>
		<category><![CDATA[Email Pipe Errors]]></category>
		<category><![CDATA[Email Piping]]></category>
		<category><![CDATA[Exim Email Piping]]></category>
		<category><![CDATA[Forward email to script]]></category>
		<category><![CDATA[forward emails to php script]]></category>
		<category><![CDATA[Helpdesk Email piping]]></category>
		<category><![CDATA[How to set Email Piping?]]></category>
		<category><![CDATA[Plesk Email Piping]]></category>
		<category><![CDATA[Postfix Email Piping]]></category>
		<category><![CDATA[Qmail Email Piping]]></category>
		<category><![CDATA[Sendmail Email Piping]]></category>
		<category><![CDATA[What is Email Piping]]></category>
		<category><![CDATA[What is Pipe?]]></category>

		<guid isPermaLink="false">http://www.thevisionworld.com/?p=1189</guid>
		<description><![CDATA[This post shows how to set Email Piping for various mail servers &#8211; EXIM MAIL SERVER Open file &#8212; /etc/valiases/yourdomain.com Assuming that we are setting up support@yourdomain.com, sales@yourdomain.com, billing@yourdomain.com we will create the corresponding entries in the file as follows: support@yourdomain.com: "&#124;/full_path_to/manage/pipe.php" sales@yourdomain.com: "&#124;/full_path_to/manage/pipe.php" billing@yourdomain.com: "&#124;/full_path_to/manage/pipe.php" Save the alias file and run this command on [...]]]></description>
			<content:encoded><![CDATA[<p><strong>This post shows how to set Email Piping for various mail servers </strong>&#8211;</p>
<h3><strong>EXIM MAIL SERVER</strong></h3>
<p>Open file &#8212; <code>/etc/valiases/yourdomain.com</code></p>
<p>Assuming that we are setting up support@yourdomain.com,<br />
sales@yourdomain.com, billing@yourdomain.com we will create the corresponding entries in the file as follows:</p>
<p><code>support@yourdomain.com: "|/full_path_to/manage/pipe.php"<br />
sales@yourdomain.com: "|/full_path_to/manage/pipe.php"<br />
billing@yourdomain.com: "|/full_path_to/manage/pipe.php"</code></p>
<p>Save the alias file and run this command on shell &#8211; <strong>newaliases</strong> This will add the alias file.</p>
<p>cPanel use exim mail server and you can set alias from cPanel too &#8212; cPanel &gt;&gt; Mail section Forwarders set &#8211;</p>
<p><code>support@yourdomain.com: "|/full_path_to/manage/pipe.php"<br />
sales@yourdomain.com: "|/full_path_to/manage/pipe.php"<br />
billing@yourdomain.com: "|/full_path_to/manage/pipe.php"</code></p>
<h3><strong>POSTFIX MAIL SERVER</strong></h3>
<p>Open alias file: generally its &#8212; <code>/etc/postfix/aliases</code></p>
<p>You can check what alias file you have on your server &#8212; find line virtual_alias_maps in file <code>/etc/postfix/main.cf</code></p>
<p><code>virtual_alias_maps = hash:/etc/postfix/aliases</code></p>
<p>So based on what is virtual_alias_maps set in main.cf you can edit respective file &#8212; in our case we will consider &#8211;<code> /etc/postfix/aliases</code></p>
<p>Edit <code>/etc/postfix/aliases</code> and add below lines<br />
<code><br />
support@yourdomain.com "|/full_path_to/manage/pipe.php"<br />
sales@yourdomain.com "|/full_path_to/manage/pipe.php"<br />
billing@yourdomain.com "|/full_path_to/manage/pipe.php"</code></p>
<p>Save the alias file and run this command on shell &#8211; <strong>newaliases</strong> This will add the alias file.</p>
<p>If you made any changes in main.cf then run command &#8211;<br />
<strong>service postfix reload</strong></p>
<p><strong>Second method is using .forward file for piping.</strong></p>
<p>1) Open alias file: generally its &#8212; <code>/etc/postfix/aliases</code></p>
<p>You can check what alias file you have on your server &#8212; find line virtual_alias_maps in file <code>/etc/postfix/main.cf</code></p>
<p><code>virtual_alias_maps = hash:/etc/postfix/aliases</code></p>
<p>So based on what is virtual_alias_maps set in main.cf you can edit respective file &#8212; in our case we will consider &#8212; <code>/etc/postfix/aliases</code></p>
<p>Edit <code>/etc/postfix/aliases</code> and add below line (<strong>This line is for catch-all</strong>)</p>
<p><code>@yourdomain.com accountusername</code></p>
<p>2) and in /home/accountusername create .forward file with this line</p>
<p><code>/home/accountusername/public_html/support/manage/pipe.php</code></p>
<p>That&#8217;s it!</p>
<h3><strong>QMAIL MAIL SERVER</strong></h3>
<p>Open alias file:</p>
<p><code>/usr/local/qmail/mailnames/yourdomain.com/support/.qmail</code></p>
<p>The above alias file is for the email support@yourdomain.com. In certain installations the alias file can also be created as:</p>
<p>Alias File:<br />
<code><br />
/usr/local/qmail/mailnames/company.com/.qmail-support</code></p>
<p>You should open the above alias files and point them to full path to manage/pipe.php, prefixed with the “|” (Pipe) symbol.</p>
<p><code>support@yourdomain.com: "|/full_path_to/manage/pipe.php"</code></p>
<h3><strong>SENDMAIL SERVER</strong></h3>
<p>Step 1: Add an alias in /etc/alias for support email. Be sure to rebuild the alias file after by typing newaliases at the command line.</p>
<p><code>support: "|/usr/bin/php -q /full_path_to/manage/pipe.php"</code></p>
<p>Step 2: chmod the script so it is executable:</p>
<p><code>chmod 755 /full_path_to/manage/pipe.php</code></p>
<p>Step 3: Create a symbolic link in /etc/smrsh so sendmail will know about script. If you don&#8217;t do this then sendmail will give error message Service unavailable, and smrsh: &#8220;php&#8221; not available for sendmail programs (stat failed).</p>
<p><code>cd /etc/smrsh<br />
ln -s /usr/bin/php ./php<br />
ln -s /full_path_to/manage/pipe.php ./pipe.php</code></p>
<p><strong>Note</strong> that if you are installing a script on a virtual site you need to make the above changes in the virtual site files. So instead of adding links in /etc/smrsh you would add them in /home/virtual/siteXX/fst/etc/smrsh and instead of adding the alias in /etc/aliases, you would add them in /home/virtual/siteXX/fst/etc/aliases. Then to rebuild the aliases DB, you need to do this:</p>
<p><code>/usr/sbin/chroot /home/virtual/siteXX/fst newaliases</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.thevisionworld.com/vision-helpdesk-faqs-exim-postfix-qmail-sendmail-email-piping.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

