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.

Is there a way to change outbound email id for root, i.e instead of root@localhost.localdomain to root@apps.mydomain.com?

share|improve this question
1  
You will need to provide details of how you are generating email and what MTA you are using. –  Dan Carley Oct 6 '09 at 13:36
    
i am using postfix –  Rungano Oct 6 '09 at 13:44

3 Answers 3

Modify the aliases file to your taste. It will be in /etc or /etc/mail or /etc/postfix or any other directory depending on your MTA. You may also need to rebuild alias db or reload your MTA (see the MTA documentation).

share|improve this answer

Postfix?

Set:

myhostname = host.example.com

in main.cf

share|improve this answer

Hi all I have found the solution its smtp_generic_maps (default: empty)

Optional lookup tables that perform address rewriting in the SMTP client, typically to transform a locally valid address into a globally valid address when sending mail across the Internet. This is needed when the local machine does not have its own Internet domain name, but uses something like localdomain.local instead.

share|improve this answer

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.