<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — How-to: iRedmail with optional per-user freemail-addresses and relay]]></title>
	<link rel="self" href="http://www.iredmail.org/forum/feed-atom-topic3474.xml" />
	<updated>2012-05-31T00:06:30Z</updated>
	<generator>PunBB</generator>
	<id>http://www.iredmail.org/forum/topic3474-howto-iredmail-with-optional-peruser-freemailaddresses-and-relay.html</id>
		<entry>
			<title type="html"><![CDATA[Re: How-to: iRedmail with optional per-user freemail-addresses and relay]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post16208.html#p16208" />
			<content type="html"><![CDATA[<p>Thanks for your sharing. <img src="http://www.iredmail.org/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2012-05-31T00:06:30Z</updated>
			<id>http://www.iredmail.org/forum/post16208.html#p16208</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How-to: iRedmail with optional per-user freemail-addresses and relay]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post16207.html#p16207" />
			<content type="html"><![CDATA[<p>Hi again,</p><p>after more investigation i need to say everything i wrote wasn&#039;t what i wanted, so here:</p><p>in main.cf we need</p><div class="codebox"><pre><code>smtp_sasl_password_maps = hash:/etc/postfix/sasl-passwd
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noplaintext noanonymous
smtp_sender_dependent_authentication = yes
smtp_connection_cache_on_demand = no
sender_dependent_relayhost_maps = hash:/etc/postfix/sender_dependent
sender_canonical_maps = hash:/etc/postfix/sender_canonical
smtp_sasl_tls_security_options = noanonymous
smtp_tls_note_starttls_offer = yes
smtp_tls_security_level = may</code></pre></div><p> </p><p>in sender_dependent:<br /></p><div class="codebox"><pre><code>email@provider.org smtp.provider.org
...</code></pre></div><p>in sender_canonical:<br /></p><div class="codebox"><pre><code>localmailadress@iredmail.local email@provider.org
...</code></pre></div><p>in sasl-passwd:<br /></p><div class="codebox"><pre><code>email@provider.org username:password</code></pre></div><p>then:<br /></p><div class="codebox"><pre><code>postmap /etc/postfix/sender_dependent
postmap /etc/postfix/sender_canonical
postmap /etc/postfix/sasl-passwd</code></pre></div><p>and with the final:<br /></p><div class="codebox"><pre><code>/etc/init.d/postfix restart</code></pre></div><p>we can relay mails for every user we want with sender address-rewrite over any provider-smtp we want.</p><p>then combine it with fetchmail like <a href="http://www.iredmail.org/forum/topic368-iredmail-support-how-to-configure-fetchmail.html">this</a> and there is everything we need for a SOHO/Private Mail-Server.</p><p>have fun and feel free to post thanks and optimizations.</p><p>cya</p><p>Gammelobst</p>]]></content>
			<author>
				<name><![CDATA[Gammelobst]]></name>
				<uri>http://www.iredmail.org/forum/user31410.html</uri>
			</author>
			<updated>2012-05-30T22:28:21Z</updated>
			<id>http://www.iredmail.org/forum/post16207.html#p16207</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How-to: iRedmail with optional per-user freemail-addresses and relay]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post16189.html#p16189" />
			<content type="html"><![CDATA[<p>Hi again,</p><p>so while testing...</p><p>activating relaying with mailbox.transport entry also relays mails for me. With it i don&#039;t get any mail because it is relayed to my provider instead my mailbox, so i removed it.</p><p>Next one was<br /></p><div class="codebox"><pre><code>relayhost = [smtp.web.de]
smtp_fallback_relay = [smtp.web.de]
smtp_sasl_password_maps = hash:/etc/postfix/sasl-passwd
smtp_sasl_auth_enable = yes
smtp_sasl_security_options =</code></pre></div><p>in main.cf</p><p>This ended in:</p><div class="codebox"><pre><code>May 30 00:19:23 mail postfix/smtp[2144]: 64BE9C94D8: to=&lt;someone@somewhere.net&gt;, relay=smtp.web.de[217.72.192.157]:25, delay=0.55, delays=0/0.01/0.39/0.14, dsn=5.0.0, status=bounced (host smtp.web.de[217.72.192.157] said: 550-Requested action not taken: mailbox unavailable 550 Sender address is not allowed. (in reply to MAIL FROM command))</code></pre></div><p>which makes me think i just need to rewrite my sender address for it to work.</p><p>I&#039;ll investigate this further...</p><p>thanks in advance for you help</p><br /><p>cya</p><p>Gammelobst</p>]]></content>
			<author>
				<name><![CDATA[Gammelobst]]></name>
				<uri>http://www.iredmail.org/forum/user31410.html</uri>
			</author>
			<updated>2012-05-29T22:31:24Z</updated>
			<id>http://www.iredmail.org/forum/post16189.html#p16189</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How-to: iRedmail with optional per-user freemail-addresses and relay]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post16187.html#p16187" />
			<content type="html"><![CDATA[<p>Hello iRedMail-Users,</p><p>i installed iRedMail 0.8.0 with MySQL backend last week in a VM, which went smoothly from a Ubuntu 12.04 LTS mini iso. <br />I created several users for internal use (mostly logging emails) and my account for now. Internal mail runs perfect. Incoming mails are also working. I installed fetchmail and it runs fine but outgoing mail is still a problem for me.<br />As far as this forum and google brought me i added<br /></p><div class="codebox"><pre><code>smtp:[smtp.web.de]:587</code></pre></div><p>to my account under mailbox.transport with PHPMyAdmin. This activated relaying sucessfully, but i think authentication is needed when i look into the logfie<br /></p><div class="codebox"><pre><code>May 29 23:44:42 mail postfix/smtp[1485]: 747E0C94D2: to=&lt;me@mydomain&gt;, relay=smtp.web.de[217.72.192.157]:25, delay=0.21, delays=0/0/0.15/0.05, dsn=5.0.0, status=bounced (host smtp.web.de[217.72.192.157] said: 530 Authentication required (in reply to MAIL FROM command)</code></pre></div><p>i already tried the sasl-passwd.db in main.cf but it doesn&#039;t work. <img src="http://www.iredmail.org/forum/img/smilies/sad.png" width="15" height="15" alt="sad" /></p><p>Has someone found a solution for enabling authentication on per-user relaying?</p><p>Thanks in advance</p><p>Gammelobst</p>]]></content>
			<author>
				<name><![CDATA[Gammelobst]]></name>
				<uri>http://www.iredmail.org/forum/user31410.html</uri>
			</author>
			<updated>2012-05-29T21:52:48Z</updated>
			<id>http://www.iredmail.org/forum/post16187.html#p16187</id>
		</entry>
</feed>
