View previous topic :: View next topic |
Author |
Message |
olsberg n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 24 Sep 2003 Posts: 19 Location: Sweden
|
Posted: Sat Jan 10, 2009 8:14 pm Post subject: How to set up mail forwarding with Postfix and no relayhost? |
|
|
Hi, this is a mail newbie question. You have been warned.
I have a Postfix server running that recieves mail for multiple accounts on the server. Everything works here, and the mails are stored locally in /home/[user]/.maildir directory.
But, I'd like to forward the mail to different domains, depending on where my colleagues are having their primary e-mail accounts (eg xxx@yahoo.com, yyy@gmail.com AND zzz@hotmail.com. Reading different guides, I've tried to use the .forward file in each user dir root, but it doesent work.
Are there any way to forward mail without using an external relayhost? Or am I walking the wrong path here?
Best, |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
magic919 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
Posted: Sat Jan 10, 2009 9:21 pm Post subject: |
|
|
I've used the .forward file method in the past with Postfix. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
olsberg n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 24 Sep 2003 Posts: 19 Location: Sweden
|
Posted: Sun Jan 11, 2009 8:43 am Post subject: |
|
|
As soon as the .forward file is in place, the mail is not delivered at all. Do I need additional software to do this? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
magic919 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
Posted: Sun Jan 11, 2009 10:13 am Post subject: |
|
|
The .forward file should be read by Postfix acting as the delivery agent. Postfix should then pass the email to forward@example.com. I would examine your Postfix logs as they will show what Postfix is doing with the mail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
olsberg n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 24 Sep 2003 Posts: 19 Location: Sweden
|
Posted: Sun Jan 11, 2009 7:58 pm Post subject: Case solved |
|
|
OK, the follow-up: It was probably working from the beginning, when I look at the logs. The problem was that I was sending mail from my Gmail account to the e-mail adress on my server - which was forwarded back to my Gmail account. Gmail seems to be smart enough to avoid endless loops and filters them out
In short: I thought the forward didn't work since I didn't get the forwarded mail that was filtered out from Gmail.
Thanks for pointing me to the logs! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|