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 <[email protected]>wrote: I’ll check. ------ בברכה שמעון ויינרייך האוניברסיטה הפתוחה *From:* Ori Idan [mailto:[email protected]] *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 <[email protected]> wrote: Please send me /var/log/maillog ------ בברכה שמעון ויינרייך האוניברסיטה הפתוחה *From:* Ori Idan [mailto:[email protected]] *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 <[email protected]> Hi, Did you type postmap virtual & postmap transport ? ------ בברכה שמעון ויינרייך האוניברסיטה הפתוחה *From:* [email protected] [mailto: [email protected]] *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 [email protected] to [email protected] I wrote in /etc/postfix/virtual: [email protected] [email protected] I also wrote in /etc/postfix/transport example.com helicontech.co.il I restarted postfix, sent a test (from different address, not from [email protected]) 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=<[email protected]> with status=sent However the mail never reached the destination. What have I done wrong? -- Ori Idan
_______________________________________________ Linux-il mailing list [email protected] http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
