Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

anyone knows how to redirect a sendmail virtuser account mail to an external email address?

This is the virtuser table:

contact@example.org contact.example.org

(In this form the mail to contact@example.org arrives ok to the inbox)

Then I set an alias from:

contact.example.org     external@domain.org

But doesn´t work... any idea?

Thanks in advance!

share|improve this question
up vote 1 down vote accepted

Did you use "newaliases" command after editing the alias file ?

share|improve this answer
    
Yes... without success... the email arrives to the linux user account, but not goes out... – Simon Aug 28 '09 at 7:27
    
My mistake, it goes perfectly (I mistyped the email alias). Thanks for your help! – Simon Aug 28 '09 at 7:31

After changes in virtusertable file under /etc/mail for sendmail. You need to run below command to take effect in its database file virtusertable.db

makemap hash virtusertable.db < /etc/virtusertable

Then your emails forwarding will be start. Please try it and hope it helps.

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.