Results 1 to 9 of 9

Thread: How reliably stop dovecot?

  1. #1
    Join Date
    Nov 2009
    Posts
    5

    How reliably stop dovecot?

    Hi guys, I moved to google small business mail (updated MX records, so that all email which comes to my server now is redirected reliably to google by using DNS records and my server doesn't handle the emails anymore. That's all works great and perfect, but I assume I have to disable dovecot because I don't use it.
    Whatever command I tried, dovecot appears again. Looks like directadmin or something else monitors the service and if it is down, directadmin starts up it again. I wouldn't like to uninstall it because may be later in a year I'll need it again, but how can I disable it?

    I tried:
    service dovecot stop
    and it shows [OK] but in 10-20 seconds I see it again in ps aux | grep dovecot .
    I also tried to use kill, but dovecot resurrects again anyway.
    How can I reliably disable it so that it wouldn't start again? Thanks.

  2. #2
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    13,743
    On CentOS do the following:

    Code:
    # service dovecot stop
    # chkconfig dovecot off
    # cd /usr/local/directadmin/data/admin/
    # perl -pi -e 's/dovecot=ON/dovecot=OFF/' services.status
    # service directadmin restart
    Regards, Alex G.

    - Get the best commercial DirectAdmin support and hire me on poralix.com
    - Follow and like @Poralix on Facebook

  3. #3
    Join Date
    Apr 2008
    Posts
    2
    Quote Originally Posted by zEitEr View Post
    On CentOS do the following:

    Code:
    # service dovecot stop
    # chkconfig dovecot off
    # cd /usr/local/directadmin/data/admin/
    # perl -pi -e 's/dovecot=ON/dovecot=OFF/' services.status
    # service directadmin restart
    Very Good

  4. #4
    Join Date
    Jun 2019
    Posts
    10
    I followed Zeiters advise but dovecot was running again suddenly.

    i also did:
    systemctl stop dovecot
    systemctl disable dovecot

    but since a couple of days dovecot is suddenly running again.

    Anyone know a way to have it shut off indefinitely?
    Last edited by simpel; 07-18-2019 at 01:56 AM.

  5. #5
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    13,743
    Short version:

    Code:
    cd /usr/local/directadmin/custombuild/
    ./build update
    ./build set dovecot no
    ./build set dovecot_conf no
    ./build set_service dovecot delete
    ./build remove_dovecot
    Long version: https://help.poralix.com/articles/ho...ctadmin-server
    Regards, Alex G.

    - Get the best commercial DirectAdmin support and hire me on poralix.com
    - Follow and like @Poralix on Facebook

  6. #6
    Join Date
    Jun 2019
    Posts
    10
    Quote Originally Posted by zEitEr View Post
    Short version:

    Code:
    cd /usr/local/directadmin/custombuild/
    ./build update
    ./build set dovecot no
    ./build set dovecot_conf no
    ./build set_service dovecot delete
    ./build remove_dovecot
    Long version: https://help.poralix.com/articles/ho...ctadmin-server
    great!

    would this process also work for removing bind/named?

  7. #7
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    13,743
    No, bind/named is installed from a OS repository, custombuild has not functionality to remove it. Though it can be removed from services list with the help of custombuild.
    Regards, Alex G.

    - Get the best commercial DirectAdmin support and hire me on poralix.com
    - Follow and like @Poralix on Facebook

  8. #8
    Join Date
    Jun 2019
    Posts
    10
    i found this:
    https://help.directadmin.com/item.php?id=25

    but can i just also simply remove the bind packages or will directadmin get confused if i do it like that?

  9. #9
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    13,743
    I believe if you remove the packages DirectAdmin will drop errors on actions with DNS zones.
    Regards, Alex G.

    - Get the best commercial DirectAdmin support and hire me on poralix.com
    - Follow and like @Poralix on Facebook

Similar Threads

  1. Replies: 7
    Last Post: 02-13-2011, 11:01 AM
  2. stop the spam- stop mail
    By tza in forum E-Mail
    Replies: 3
    Last Post: 05-27-2010, 12:25 PM
  3. How can I stop dovecot service?
    By phpwinder in forum Dovecot
    Replies: 3
    Last Post: 10-16-2009, 05:55 AM
  4. Stop exim and/or dovecot from running at startup
    By ioor in forum General Technical Discussion & Troubleshooting
    Replies: 9
    Last Post: 04-05-2009, 09:37 AM
  5. Urgent: dovecot problem dovecot[3163]:
    By elegance in forum E-Mail
    Replies: 4
    Last Post: 02-26-2008, 04:16 AM

Posting Permissions

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