Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Apologies in advance for my nub question.

Been using the Amazon EC2 Linux AMI and enjoying it.

It comes configured with sendmail. I think I'd rather use postfix.

I hoped replacing sendmail with postfix might be as simple as what I found searching online:

$ rpm -e sendmail
$ yum install postfix.

However rpm complains:

$ rpm -e sendmail
error: Failed dependencies:
        smtpdaemon is needed by (installed) mdadm-2.6.9-3.7.amzn1.i386

I'd be grateful for any guidance how to proceed.

Thank you.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Install postfix first, then remove sendmail. Or use yum shell to do both at once.

sudo yum install postfix
sudo yum erase sendmail

This will replace sendmail with postfix in your EC2 instance and will not remove other important dependencies when removing sendmail.

share|improve this answer
    
Or rpm -e --nodeps sendmail. –  grawity Mar 9 '11 at 9:45
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.