<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — Use iRedmail as relay/smart host for one domain]]></title>
		<link>https://forum.iredmail.org/topic20911-use-iredmail-as-relaysmart-host-for-one-domain.html</link>
		<atom:link href="https://forum.iredmail.org/feed-rss-topic20911.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Use iRedmail as relay/smart host for one domain.]]></description>
		<lastBuildDate>Tue, 10 Jun 2025 23:48:26 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Use iRedmail as relay/smart host for one domain]]></title>
			<link>https://forum.iredmail.org/post90949.html#p90949</link>
			<description><![CDATA[<p>You need to add the IP from the relaying mailserver to mynetworks in the main.cf file of postfix</p>]]></description>
			<author><![CDATA[null@example.com (Cthulhu)]]></author>
			<pubDate>Tue, 10 Jun 2025 23:48:26 +0000</pubDate>
			<guid>https://forum.iredmail.org/post90949.html#p90949</guid>
		</item>
		<item>
			<title><![CDATA[Use iRedmail as relay/smart host for one domain]]></title>
			<link>https://forum.iredmail.org/post90948.html#p90948</link>
			<description><![CDATA[<p>==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====<br />- iRedMail version (check /etc/iredmail-release): 1.7.4 MARIADB edition.<br />- Deployed with iRedMail Easy or the downloadable installer? Downloadable installer. <br />- Linux/BSD distribution name and version:&nbsp; Ubuntu 22.04.5 LTS<br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL):&nbsp; MySQL<br />- Web server (Apache or Nginx): Nginx<br />- Manage mail accounts with iRedAdmin-Pro? Nope<br />====</p><p>Here&#039;s what I try to accomplish: </p><p>I want my iRedmail server to receive mail for several domains. The email for one (1) of these domains should be re-routed to another email server and then also be able to act as a smart relay for that email server and that domain.&nbsp; </p><p>Incoming email: </p><p>Internet -&gt; iRedmail -&gt; Postfix on other server -&gt; local mailbox</p><p>Outgoing email: </p><p>User writes email -&gt; Postfix on other server -&gt; iRedmail -&gt; Internet</p><p>---------</p><p>I have been trying to get this to work for many hours now.&nbsp; &nbsp;What I have tried so far: </p><p>Created /etc/postfix/transport and entered the following info into it: </p><p>domain.tld&nbsp; relay:[server.hostname.tld]:port</p><p>I then ran postmap /etc/postfix/transport</p><p>I then added that file to /etc/postfix/main.cf: </p><p>transport_maps =<br />&nbsp; &nbsp; hash:/etc/postfix/transport</p><p>----------</p><p>This works if I send email locally on the iRedmail server.&nbsp; If I send an email from Gmail or something I get &quot;Relay access denied&quot; from Postfix on my iRedmail server.&nbsp; I can send email from the other server to a user on the iRedmail server without any problems. If I try to send email from the other server to Gmail or something, I get &quot;relay denied&quot;. </p><br /><p>Any ideas?&nbsp; &nbsp;</p><p>Thanks.</p>]]></description>
			<author><![CDATA[null@example.com (jcm)]]></author>
			<pubDate>Tue, 10 Jun 2025 13:53:13 +0000</pubDate>
			<guid>https://forum.iredmail.org/post90948.html#p90948</guid>
		</item>
	</channel>
</rss>
