LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-04-2011, 12:40 PM   #1
ALInux
Member
 
Registered: Nov 2003
Location: Lebanon
Distribution: RHEL 5/CentOS 5/Debian Lenny/(K)Ubuntu Is Dead/Mandriva 10.1
Posts: 676
Blog Entries: 7

Rep: Reputation: 32
Exim4 forward emails not working


Hi All
Running exim4 on debian and trying to forward all emails destined for root@mydomain.com to me@mydomain.com, I did setup the entry in the /etc/alias file in the following way:

root: me@mydomain.com

run newaliases
restart exim "although not needed if I am not mistaken"

then on command line mail
root@mydomain.com
and the email still goes out for root@Mydomain.com and not me@mydomain.com
I am using a smarthost, and that smarthost refuses to serve emails going for root@. I am OK with that as I should be able to easily rewrite those message to go to me@mydomain.com

But it is simply not working, anything I might have missed here ?
Thanks
 
Old 05-04-2011, 01:40 PM   #2
spankbot
Member
 
Registered: Aug 2007
Posts: 133

Rep: Reputation: 16
What happens when you don't use the full address "root@mydomain.com" and instead just send mail to "root" from the command line? My suspicion is that you have a DNS issue.
 
Old 05-04-2011, 05:23 PM   #3
ALInux
Member
 
Registered: Nov 2003
Location: Lebanon
Distribution: RHEL 5/CentOS 5/Debian Lenny/(K)Ubuntu Is Dead/Mandriva 10.1
Posts: 676

Original Poster
Blog Entries: 7

Rep: Reputation: 32
Hi Spankbot
you got it spot on, sending to root only works, any hints ?
Thanks
 
Old 05-05-2011, 03:42 AM   #4
spankbot
Member
 
Registered: Aug 2007
Posts: 133

Rep: Reputation: 16
Quote:
Originally Posted by ALInux View Post
Hi Spankbot
you got it spot on, sending to root only works, any hints ?
Thanks
I dont know debian well, but you may just need to make sure your MTA knows what your local domain is...

What mail server are you running? postfix?

I've setup maybe a thousand servers in my time and when I want mail to be sent to root on the local host I just use "root". Root@yourdomain.com is really only meaningful from outside of your system.
 
  


Reply



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
Forward Emails ccarminati Linux - Server 3 07-31-2008 09:29 AM
how to receive emails with exim4 amimusa Debian 0 04-06-2007 08:49 PM
exim4 forward all local mail? mpapet Linux - Newbie 1 12-08-2006 03:12 AM
exim4 forward all local mail? mpapet Linux - Networking 2 12-08-2006 02:34 AM
forward emails in sendmail turbo_acura Linux - Networking 1 10-06-2004 08:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:37 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
Open Source Consulting | Domain Registration