Mail forwarding using postfix [solved]
Ori Idan
ori at helicontech.co.il
Thu Dec 2 14:32:29 IST 2010
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 <shimon at openu.ac.il>wrote:
I’ll check.
------
בברכה
שמעון ויינרייך
האוניברסיטה הפתוחה
*From:* Ori Idan [mailto:ori at 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 <shimon at openu.ac.il>
wrote:
Please send me /var/log/maillog
------
בברכה
שמעון ויינרייך
האוניברסיטה הפתוחה
*From:* Ori Idan [mailto:ori at 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 <shimon at openu.ac.il>
Hi,
Did you type postmap virtual & postmap transport ?
------
בברכה
שמעון ויינרייך
האוניברסיטה הפתוחה
*From:* linux-il-bounces at cs.huji.ac.il [mailto:
linux-il-bounces at 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 ori at example.com to ori at helicontech.com
I wrote in /etc/postfix/virtual:
ori at example.com ori at 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
ori at 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=<ori at helicontech.co.il> with status=sent
However the mail never reached the destination.
What have I done wrong?
--
Ori Idan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20101202/368fb7b7/attachment.html>
More information about the Linux-il
mailing list