configuring mail for local vs non-local

you2

Diamond Member
Apr 2, 2002
6,723
1,751
136
I'm trying to setup mail on my machine such that email to certain users are aliased to other users and other email go through the corporate mailer (this is under ubuntu 7.10).

I created an alias

xxx: yyy@corp.domain.com

but the alias does not seem to kick in - xxx gets translated to xxx@corp.domain.com rather than yyy@corp.domain.com.

I know i'm missing something obvious but not sure what.
--
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
What does Ubuntu use, exim? I know with sendmail you have to run newaliases after updating the aliases file. What does man aliases tell you?
 

Netopia

Diamond Member
Oct 9, 1999
4,793
4
81
I know this is cheating, but I just install and use webmin for all this sort of stuff.

Joe
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Maybe if webmin was on a known-secure network connection and not exposed to the Internet, but I'd still only use it as a stopgap to figure out what it did so I could do it manually the next time.
 

you2

Diamond Member
Apr 2, 2002
6,723
1,751
136
Ubuntu uses postfix. Here is a better description of what I am trying to do:
ere is what I want:
On this machine: I want email to any user yyy* to be translated to yyy*@corp (this works) EXCEPT root. I want email to root to go to a specific user yyy+ which will then be translated to yyy+@corp. (over used yyy here).

I had thought adding an alias root: yyy+ would cause email to root (mail root) to be translated to yyy+ before the domain is added (this is controlled by) /etc/postfix/main.cf.
--
From what you said this will not work - do i need to add something to main.cf to do this translation ?
---
(I do run the newalias command)
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
You might need to use the Postfix virtual table, I'm not 100% sure though.
 

you2

Diamond Member
Apr 2, 2002
6,723
1,751
136
Yea virtual table fixed it. I had tried it on the weekend but i must have done it incorrectly since it didn't work. I tried again yesterday and it worked :)