LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 08-28-2009, 10:57 AM   #1
amedad
LQ Newbie
 
Registered: Aug 2009
Posts: 5

Rep: Reputation: 0
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
 
Old 08-28-2009, 05:21 PM   #2
bkeeper
LQ Newbie
 
Registered: Dec 2005
Location: Muenchen, Germany
Posts: 25

Rep: Reputation: 16
Hi,

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

Cheers,
BKeeper
 
Old 08-28-2009, 07:54 PM   #3
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
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.
 
Old 08-29-2009, 09:31 AM   #4
amedad
LQ Newbie
 
Registered: Aug 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Berhanie View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix - forward email to another address and keep a copy in the mailbox Drognan Linux - Software 3 10-23-2010 01:37 PM
SuSE/postfix to forward root's email b1f30 Suse/Novell 5 09-29-2008 05:20 PM
Email from command line / postfix problem jantman Linux - Software 2 07-23-2006 02:06 PM
How do I configure postfix master to forward all email to an email server ? hello321_1999 Linux - Software 1 11-18-2004 05:43 AM
Postfix Forward problem paulten Linux - Networking 1 12-14-2003 09:08 AM


All times are GMT -5. The time now is 05:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration