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.

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
add comment

2 Answers

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
add comment

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
add comment

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.