I thought I tried it but decided to try again.
in main.cf I wrote: virtual_alias_domains = /etc/postfix/valiastable

I created a simple text file with one line containing the domain I would
like to receive mail to.
I then reloaded postfix (sudo postfix reload) and tested it again.

I worked.
I added another domain in this text file and added another address in
/etc/postfix/virtual and it worked to.

-- 
Ori Idan


On Thu, Dec 2, 2010 at 12:56 PM, Shimon Weinreich <shi...@openu.ac.il>wrote:

I’ll check.





------

בברכה



      שמעון ויינרייך

    האוניברסיטה הפתוחה



*From:* Ori Idan [mailto:o...@helicontech.co.il]
*Sent:* Thursday, December 02, 2010 12:13 PM

*To:* Shimon Weinreich
*Subject:* Re: Mail forwarding using postfix



It seems to be working if I specify the doman directly in
virtual_alias_domains in main.cf

How do I tell it to take the domains from a file and not from the line
itself?



-- 

Ori Idan



On Thu, Dec 2, 2010 at 11:52 AM, Shimon Weinreich <shi...@openu.ac.il>
wrote:

Please send me /var/log/maillog





------

בברכה



      שמעון ויינרייך

    האוניברסיטה הפתוחה



*From:* Ori Idan [mailto:o...@helicontech.co.il]
*Sent:* Thursday, December 02, 2010 11:46 AM
*To:* Shimon Weinreich
*Subject:* Re: Mail forwarding using postfix



Yes I did



2010/12/2 Shimon Weinreich <shi...@openu.ac.il>

Hi,



Did you type postmap virtual  & postmap transport ?





------

בברכה



      שמעון ויינרייך

    האוניברסיטה הפתוחה



*From:* linux-il-boun...@cs.huji.ac.il [mailto:
linux-il-boun...@cs.huji.ac.il] *On Behalf Of *Ori Idan
*Sent:* Thursday, December 02, 2010 11:35 AM
*To:* IGLU Mailing list
*Subject:* Mail forwarding using postfix



Hello,



I have a new postfix server running on a virtual host.

I would like to forward mails sent to domains on this machine to other
addresses.

for example, if domain example.com resolves to my machine, I would like to
forwared mail sent to o...@example.com to o...@helicontech.com



I wrote in /etc/postfix/virtual:

o...@example.com o...@helicontech.co.il



I also wrote in /etc/postfix/transport

example.com helicontech.co.il



I restarted postfix, sent a test (from different address, not from
o...@helicontech.co.il)

I then looked at /var/log/mail.log



I have seen connect message from google.com (I sent the mail using gmail)

I then saw a message like to=<o...@helicontech.co.il> with status=sent



However the mail never reached the destination.



What have I done wrong?



-- 

Ori Idan
_______________________________________________
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

Reply via email to