LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Postfix email forward problem (https://www.linuxquestions.org/questions/linux-newbie-8/postfix-email-forward-problem-750880/)

amedad 08-28-2009 09:57 AM

Postfix email forward problem
 
I'm having an email forward problem that should be easy but I can't seem to resolve. I have a Fedora 11 install using postfix. I'm relatively new to Linux but am learning...

I would like to forward email from user@mydomain.com to otheruser@newdomain.com.

I've tried adding user: otheruser@newdomain.com to the aliases file.

In this case, locally sent messages are forwarded correctly, but not externally received messaged.

ie. "user1" sending to "user" from the local server is correctly forwarded to "otheruser@domain.com".

But, if I send to user@mydomain.com from the outside, the message is lost.

I've also tried .forwards and even virtual hosts with no luck.

Other then forwards, I can send and receive email normally.

Any help would be greatly appreciated

bkeeper 08-28-2009 04:21 PM

Hi,

usually it's "~/.forward", not "~/.forwards", is that what you did?

Cheers,
BKeeper :)

Berhanie 08-28-2009 06:54 PM

Quote:

But, if I send to user@mydomain.com from the outside, the message is lost.
The message is not lost. If you take a look at your mail logs, you'll find out what happened to it.
Anyway, from the description, it sounds like mydomain.com not listed in mydestination. If
you want answers instead of guesses, you'll have to post the output of postconf -n.

amedad 08-29-2009 08:31 AM

Quote:

Originally Posted by Berhanie (Post 3661430)
The message is not lost. If you take a look at your mail logs, you'll find out what happened to it.
Anyway, from the description, it sounds like mydomain.com not listed in mydestination. If
you want answers instead of guesses, you'll have to post the output of postconf -n.

Thanks all. The log file helped. The forwarded message is getting sent out. Seems to be stopped by gmail because it is being forwarded to the same address that the email was originally sent from. (A -> B forwarded to A). If I send from a different email address then all is fine.


All times are GMT -5. The time now is 05:16 PM.