<div dir="ltr"><div>I thought I tried it but decided to try again.</div><div>in <a href="http://main.cf">main.cf</a> I wrote: virtual_alias_domains = /etc/postfix/valiastable</div><div><br></div><div>I created a simple text file with one line containing the domain I would like to receive mail to.</div>
<div>I then reloaded postfix (sudo postfix reload) and tested it again.</div><div><br></div><div>I worked.</div><div>I added another domain in this text file and added another address in /etc/postfix/virtual and it worked to.</div>
<div><br></div><div>-- </div><div>Ori Idan</div><div><br></div><div><br></div><div class="gmail_quote"><div>On Thu, Dec 2, 2010 at 12:56 PM, Shimon Weinreich <span dir="ltr"><<a href="mailto:shimon@openu.ac.il">shimon@openu.ac.il</a>></span> wrote:<br>
</div><blockquote class="gmail_quote " style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
<div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:13.0pt;color:#1F497D">I’ll check.</span></p><div class="im"><p class="MsoNormal"><span style="font-size:13.0pt;color:#1F497D"> </span></p>
<p class="MsoNormal" style="text-align: left; "><span dir="LTR" style="font-size:11.0pt;color:#1F497D"> </span></p><p class="MsoNormal" style="text-align: left; "><span dir="LTR" style="font-size:11.0pt;color:#1F497D">------</span></p>
<p class="MsoNormal" style="text-align: left; "><span lang="HE" style="font-size:11.0pt;color:#1F497D">בברכה</span><span dir="LTR" style="font-size:11.0pt;color:#1F497D"></span></p><p class="MsoNormal" style="text-align: left; ">
<span lang="HE" style="font-size:11.0pt;color:#1F497D"> </span></p><p class="MsoNormal" style="text-align: left; "><span lang="HE" style="font-size:11.0pt;color:#1F497D"> </span><span lang="HE" style="font-size:11.0pt;color:#1F497D">שמעון ויינרייך</span></p>
<p class="MsoNormal" style="text-align: left; "><span lang="HE" style="font-size:11.0pt;color:#1F497D"> האוניברסיטה הפתוחה</span></p><p class="MsoNormal"><span style="font-size:13.0pt;color:#1F497D"> </span></p></div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt"> Ori Idan [mailto:<a href="mailto:ori@helicontech.co.il" target="_blank">ori@helicontech.co.il</a>] <br><b>Sent:</b> Thursday, December 02, 2010 12:13 PM</span></p>
<div><div></div><div class="h5"><br><b>To:</b> Shimon Weinreich<br><b>Subject:</b> Re: Mail forwarding using postfix</div></div><p></p></div><div><div></div><div class="h5"><p class="MsoNormal"> </p><div><p class="MsoNormal">
It seems to be working if I specify the doman directly in virtual_alias_domains in <a href="http://main.cf" target="_blank">main.cf</a></p><div><p class="MsoNormal">How do I tell it to take the domains from a file and not from the line itself?</p>
</div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">-- </p></div><div><p class="MsoNormal">Ori Idan</p></div><div><p class="MsoNormal" style="margin-bottom:12.0pt"> </p><div><p class="MsoNormal">On Thu, Dec 2, 2010 at 11:52 AM, Shimon Weinreich <<a href="mailto:shimon@openu.ac.il" target="_blank">shimon@openu.ac.il</a>> wrote:</p>
<div><div><p class="MsoNormal"><span style="font-size:13.0pt;color:#1F497D">Please send me /var/log/maillog</span></p><div><p class="MsoNormal"><span style="font-size:13.0pt;color:#1F497D"> </span></p><p class="MsoNormal" style="text-align: left; ">
<span dir="LTR" style="font-size:11.0pt;color:#1F497D"> </span><span dir="LTR"></span></p><p class="MsoNormal" style="text-align: left; "><span dir="LTR" style="font-size:11.0pt;color:#1F497D">------</span><span lang="HE"></span></p>
<p class="MsoNormal" style="text-align: left; "><span lang="HE" style="font-size:11.0pt;color:#1F497D">בברכה</span><span lang="HE"></span></p><p class="MsoNormal" style="text-align: left; "><span lang="HE" style="font-size:11.0pt;color:#1F497D"> </span><span lang="HE"></span></p>
<p class="MsoNormal" style="text-align: left; "><span lang="HE" style="font-size:11.0pt;color:#1F497D"> שמעון ויינרייך</span><span lang="HE"></span></p><p class="MsoNormal" style="text-align: left; "><span lang="HE" style="font-size:11.0pt;color:#1F497D"> האוניברסיטה הפתוחה</span><span lang="HE"></span></p>
<p class="MsoNormal"><span dir="LTR"></span><span dir="LTR"></span><span style="font-size:13.0pt;color:#1F497D"><span dir="LTR"></span><span dir="LTR"></span> </span><span lang="HE" dir="RTL"></span></p></div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt"> Ori Idan [mailto:<a href="mailto:ori@helicontech.co.il" target="_blank">ori@helicontech.co.il</a>] <br><b>Sent:</b> Thursday, December 02, 2010 11:46 AM<br>
<b>To:</b> Shimon Weinreich<br><b>Subject:</b> Re: Mail forwarding using postfix</span></p></div><div><div><p class="MsoNormal"> </p><div><p class="MsoNormal">Yes I did</p><div><p class="MsoNormal" style="margin-bottom:12.0pt">
</p><div><p class="MsoNormal">2010/12/2 Shimon Weinreich <<a href="mailto:shimon@openu.ac.il" target="_blank">shimon@openu.ac.il</a>></p><div><div><p class="MsoNormal"><span style="font-size:13.0pt;color:#1F497D">Hi,</span></p>
<p class="MsoNormal"><span style="font-size:13.0pt;color:#1F497D"> </span></p><p class="MsoNormal"><span style="font-size:13.0pt;color:#1F497D">Did you type postmap virtual & postmap transport ?</span></p><p class="MsoNormal">
<span style="font-size:13.0pt;color:#1F497D"> </span></p><p class="MsoNormal" style="text-align: left; "><span dir="LTR" style="font-size:11.0pt;color:#1F497D"> </span><span dir="LTR"></span></p><p class="MsoNormal" style="text-align: left; ">
<span dir="LTR" style="font-size:11.0pt;color:#1F497D">------</span><span lang="HE"></span></p><p class="MsoNormal" style="text-align: left; "><span lang="HE" style="font-size:11.0pt;color:#1F497D">בברכה</span><span lang="HE"></span></p>
<p class="MsoNormal" style="text-align: left; "><span lang="HE" style="font-size:11.0pt;color:#1F497D"> </span><span lang="HE"></span></p><p class="MsoNormal" style="text-align: left; "><span lang="HE" style="font-size:11.0pt;color:#1F497D"> שמעון ויינרייך</span><span lang="HE"></span></p>
<p class="MsoNormal" style="text-align: left; "><span lang="HE" style="font-size:11.0pt;color:#1F497D"> האוניברסיטה הפתוחה</span><span lang="HE"></span></p><p class="MsoNormal"><span dir="LTR"></span><span dir="LTR"></span><span style="font-size:13.0pt;color:#1F497D"><span dir="LTR"></span><span dir="LTR"></span> </span><span lang="HE" dir="RTL"></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt"> <a href="mailto:linux-il-bounces@cs.huji.ac.il" target="_blank">linux-il-bounces@cs.huji.ac.il</a> [mailto:<a href="mailto:linux-il-bounces@cs.huji.ac.il" target="_blank">linux-il-bounces@cs.huji.ac.il</a>] <b>On Behalf Of </b>Ori Idan<br>
<b>Sent:</b> Thursday, December 02, 2010 11:35 AM<br><b>To:</b> IGLU Mailing list<br><b>Subject:</b> Mail forwarding using postfix</span></p></div><div><div><p class="MsoNormal"> </p><div><p class="MsoNormal">Hello,</p><div>
<p class="MsoNormal"> </p></div><div><p class="MsoNormal">I have a new postfix server running on a virtual host.</p></div><div><p class="MsoNormal">I would like to forward mails sent to domains on this machine to other addresses.</p>
</div><div><p class="MsoNormal">for example, if domain <a href="http://example.com" target="_blank">example.com</a> resolves to my machine, I would like to forwared mail sent to <a href="mailto:ori@example.com" target="_blank">ori@example.com</a> to <a href="mailto:ori@helicontech.com" target="_blank">ori@helicontech.com</a></p>
</div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">I wrote in /etc/postfix/virtual:</p></div><div><p class="MsoNormal"><a href="mailto:ori@example.com" target="_blank">ori@example.com</a> <a href="mailto:ori@helicontech.co.il" target="_blank">ori@helicontech.co.il</a></p>
</div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">I also wrote in /etc/postfix/transport</p></div><div><p class="MsoNormal"><a href="http://example.com" target="_blank">example.com</a> <a href="http://helicontech.co.il" target="_blank">helicontech.co.il</a></p>
</div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">I restarted postfix, sent a test (from different address, not from <a href="mailto:ori@helicontech.co.il" target="_blank">ori@helicontech.co.il</a>)</p>
</div><div><p class="MsoNormal">I then looked at /var/log/mail.log</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">I have seen connect message from <a href="http://google.com" target="_blank">google.com</a> (I sent the mail using gmail)</p>
</div><div><p class="MsoNormal">I then saw a message like to=<<a href="mailto:ori@helicontech.co.il" target="_blank">ori@helicontech.co.il</a>> with status=sent</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">
However the mail never reached the destination.</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">What have I done wrong?</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">-- </p>
</div><div><p class="MsoNormal">Ori Idan</p></div><div><p class="MsoNormal"> </p></div></div></div></div></div></div></div><p class="MsoNormal"> </p></div></div></div></div></div></div></div><p class="MsoNormal"> </p></div>
</div></div></div></div></div></blockquote></div><div><br></div></div>