Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a redmine install, that uses sendmail to notify users of issue updates. I have access to the admin account, and also to my regular account. I cannot enter my regular email as the admin account email: each user must have a unique email address.

I would like to alias the admin email so that it is sent to my regular account instead.

So, map admin@MY_COMPANY.com -----> MY_NAME@MY_COMPANY.com

Is this possible. I am only using sendmail to send mail; the company email server is managed on another server.

Thanks!

share|improve this question
    
It seems my question was already answered here: serverfault.com/questions/135872/… Need to use virtusertable –  Jacko Jul 10 '10 at 17:12

2 Answers 2

/etc/aliases is for this.

man aliases
share|improve this answer
    
Thanks, Nathan. I did man aliases, but this file seems to be used for aliasing local users. I guess I need a virtual address that is mapped to my real, external address. –  Jacko Jul 9 '10 at 18:38
    
Um, no. The name is the name to alias, and the addr_n are the aliases for that name. addr_n can be another alias, a local username, a local filename, a com- mand, an include file, or an external address. –  Nathan Powell Jul 10 '10 at 0:16
    
edit I thought the admin account existed on that box and needed to send that mail to an external host. Right. Aliases won't do that. –  Nathan Powell Jul 10 '10 at 0:24

If your company email server supports recipient delimiter (usually '+'), you can just enter, for example:

john+whatever001@company.tld

Recipient delimiter is supported by Gmail, Google Apps, and Postfix mail servers.

share|improve this answer
    
Thanks, Weboide. I tried this, and sadly (Microsoft Exchange Server) it didn't work. –  Jacko Jul 10 '10 at 17:10

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.