<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — Centos 6.2 - IP per domain only]]></title>
	<link rel="self" href="http://www.iredmail.org/forum/feed-atom-topic3596.xml" />
	<updated>2012-06-28T23:52:45Z</updated>
	<generator>PunBB</generator>
	<id>http://www.iredmail.org/forum/topic3596-centos-62-ip-per-domain-only.html</id>
		<entry>
			<title type="html"><![CDATA[Re: Centos 6.2 - IP per domain only]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post16729.html#p16729" />
			<content type="html"><![CDATA[<p>Sorry, i don&#039;t quite understand what your issue/question is. <img src="http://www.iredmail.org/forum/img/smilies/sad.png" width="15" height="15" alt="sad" /></p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2012-06-28T23:52:45Z</updated>
			<id>http://www.iredmail.org/forum/post16729.html#p16729</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Centos 6.2 - IP per domain only]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post16724.html#p16724" />
			<content type="html"><![CDATA[<p>Hi, thanks for the reply.</p><p>It&#039;s possible test that on local network? Because I have still same problem. My SMTP server does not use the correct domain, he use his machine hostname.</p>]]></content>
			<author>
				<name><![CDATA[martin_jaa]]></name>
				<uri>http://www.iredmail.org/forum/user31558.html</uri>
			</author>
			<updated>2012-06-28T10:43:09Z</updated>
			<id>http://www.iredmail.org/forum/post16724.html#p16724</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Centos 6.2 - IP per domain only]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post16703.html#p16703" />
			<content type="html"><![CDATA[<p>Try this:</p><p>1: Edit /etc/postfix/master.cf, clone the smtp service:<br /></p><div class="codebox"><pre><code># Original one
smtp      unix  -       -       -       -       -       smtp

# Cloned one
smtp_company1      unix  -       -       -       -       -       smtp
        -o smtp_bind_address=[IP_ADDRESS_FOR_COMPANY1]

smtp_company2      unix  -       -       -       -       -       smtp
        -o smtp_bind_address=[IP_ADDRESS_FOR_COMPANY2]

smtp_company3      unix  -       -       -       -       -       smtp
        -o smtp_bind_address=[IP_ADDRESS_FOR_COMPANY3]</code></pre></div><p>Restarting Postfix is required.</p><p>2: Update per-domain transport stored in MySQL. For example:<br /></p><div class="quotebox"><blockquote><p># mysql -uroot -p vmail<br />mysql&gt; UPDATE domain SET transport=&#039;smtp_company1<span style="color: red">:</span>&#039; WHERE domain=&#039;DOMAIN_OF_COMPANY1&#039;;<br />mysql&gt; UPDATE domain SET transport=&#039;smtp_company2<span style="color: red">:</span>&#039; WHERE domain=&#039;DOMAIN_OF_COMPANY2&#039;;<br />mysql&gt; UPDATE domain SET transport=&#039;smtp_company3<span style="color: red">:</span>&#039; WHERE domain=&#039;DOMAIN_OF_COMPANY3&#039;;</p></blockquote></div><p>Warning: Don&#039;t forget the &#039;:&#039; after &#039;smtp_companyX&#039; in SQL commands. Let me know whether it works for you or not.</p><p>If you have iRedAdmin-Pro installed and running, you can manage per-domain transport in domain profile page, under tab &quot;Relay&quot;. Screenshot for your reference:</p><p><span class="postimg"><img src="http://www.iredmail.org/images/iredadmin/domain_profile_relay.png" alt="http://www.iredmail.org/images/iredadmin/domain_profile_relay.png" /></span></p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2012-06-28T00:32:04Z</updated>
			<id>http://www.iredmail.org/forum/post16703.html#p16703</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Centos 6.2 - IP per domain only]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post16687.html#p16687" />
			<content type="html"><![CDATA[<p>MySQL, Centos 6.2, fresh install OS</p><br /><p>Hi, first of all I must say that iRedMail is great!</p><p>But I have small problem.<br />I have 3 domains and 3 IPs and I need assign one IP to one domain (model 1:1). IPs I have binded on eth0:1, eth0:2 and eth0:3</p><p>Example #1:<br />1) User info@company1.example.com is logged in SMTP<br />2) write some letters, choose recipient, write subject<br />3) and SMTP send mail from IP which is assigned to this domain</p><p>Example #2:<br />1) User info@company2.example.com is logged in SMTP<br />2) write some letters, choose recipient, write subject<br />3) and SMTP send mail from IP which is assigned to this domain</p><p>and so on..</p><p>currently I have binded 3 IPs to the machine but SMTP sends just from first IPs (eth0)</p><p>Please help, I am relative new in Linux.</p>]]></content>
			<author>
				<name><![CDATA[martin_jaa]]></name>
				<uri>http://www.iredmail.org/forum/user31558.html</uri>
			</author>
			<updated>2012-06-27T12:27:07Z</updated>
			<id>http://www.iredmail.org/forum/post16687.html#p16687</id>
		</entry>
</feed>
