Amazon Linux AMI: How to replace sendmail with postifx?

08
2013-08
  • Greg Hendershott

    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.

  • Answers
  • Community

    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.


  • Related Question

    How do I create an ami for openSUSE in Amazon ec2?
  • jgaa

    I need to scale some services from local servers to Amazon ec2. The current production-environment is based on the latest openSUSE. In order to keep things simple, I want to run the instances in ec2 in the same environment.

    However, I'm unable to find any public SUSE ami's or even howto's on this subject. I've seen a few similar questions in different forums, without any resolutions.

    So actually, I have two questions.

    1) Is this at all doable? 2) If, so, is there any documentation / howto's available somewhere?

    Jarle


  • Related Answers
  • jgaa

    To answer my own question. Yes, it can be done - I was just searhing in the wrong region. ec2.us-east-1.amazonaws.com has both 32 and 64 bits public ami's. This thread gives some advices about openSUSE and ec2.