Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

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

Use this to change default mail transfer agent, if you dont want to remove sendmail package and switch between sendmail and postfix.

"alternatives --config mta"

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .