Results 1 to 4 of 4

Thread: How to keep Ubuntu from changing /usr/sbin/sendmail link?

  1. #1
    Join Date
    May 2006
    Beans
    12

    Question How to keep Ubuntu from changing /usr/sbin/sendmail link?

    I have quite a few Ubuntu servers deployed (10.04, 12.04). On these servers, I install manually qmail and some other mail packages. They work great and everything is fine. I manually change the /usr/sbin/sendmail into a symlink and point it to /var/qmail/bin/sendmail.

    However, sometimes when I do an update of the system, Ubuntu over-writes this to its own wrapper, or replaces it with a sendmail binary, or sometimes points it to exim4...

    How can I run a command that tells the system to never touch it... I've thought about making the file immutable, but I assume there is a more elegant way by installing some type of mail stub?

  2. #2
    Join Date
    May 2006
    Beans
    12

    Re: How to keep Ubuntu from changing /usr/sbin/sendmail link?

    Is there a more appropriate section I should ask this question in?

  3. #3
    Join Date
    Nov 2007
    Location
    Wisconsin
    Beans
    1,139

    Re: How to keep Ubuntu from changing /usr/sbin/sendmail link?

    Well, I don't use qmail, but the file /usr/sbin/sendmail is installed by the postfix package.

    Do you have postfix installed? If so, do you really need it? You seem to be using qmail as your mta.

    Every time postfix updates, it will indeed overwrite your symlink. It's possible to pin a package version so it does not update...but that may not be the best solution.

  4. #4
    Join Date
    Feb 2005
    Location
    Melbourne, Australia
    Beans
    13,510
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How to keep Ubuntu from changing /usr/sbin/sendmail link?

    Code:
    man update-alternatives
    Regards, David.
    Please use the Forum search and Wiki search for immediate help
    Please mark your thread as Solved when appropriate
    New to technical forums?: How To Ask Questions The Smart Way

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •