How can I disable postfix on startup?

rtf

I can't get cron to stop spamming me with completed job notifications. It's getting out of hand and starting to clog up my 'real' email server, so I'd like to just disable postfix while I figure out which job isn't going to /dev/null (any help on this is appreciated as well.)

I can stop the service, but everytime I reboot it kicks out all the emails it's been holding on to, and my mail server goes down ago.

How do I keep postfix from starting on boot, and how can I view its held messages?

sierrasdetandil

Postfix is started in init.d, so you can use update-rc.d to disable it on startup:

sudo update-rc.d postfix disable

When you want to enable it again:

sudo update-rc.d postfix enable

Even if it's disabled you can still start it manually with sudo service postfix start.

If update-rc.d is not in your system, you'll have to install the package sysvinit-utils or sysv-rc, or similar (those are for 12.04, I don't remember if 10.04 use the same names).


As for the notifications, usually the email will give you a clue on which job sent it, but if you want to track all jobs run by cron, you can take a look at the crontab and /etc/cron.*. See the section NOTES in man cron for details.

crontab -l
sudo crontab -l
ls -lr /etc/cron.*

You could also check the syslog:

sudo grep -i cron /var/log/syslog

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can I immediately disable all emails using postfix?

From Dev

(Windows 10) How can I disable Skype popping up on startup?

From Dev

In postfix, how could I disable incoming mail?

From Dev

Which startup applications can I safely disable?

From Dev

Which startup applications can I safely disable?

From Dev

How to disable postfix address verification

From Dev

How to disable postfix address verification

From Dev

How can I disable captcha?

From Dev

How can I disable captcha?

From Dev

How can you disable the auto startup of iTunes when connecting an iPhone?

From Dev

How do I disable Spring Dashboard on startup on GGTS?

From Dev

How do I disable fast startup using safe mode?

From Dev

How can I use a named iterator with postfix foreach?

From Dev

How can I correctly combine multiple boolean postfix expressions?

From Dev

How can I add an unremovable postfix to an HTML input field?

From Dev

How to configure Postfix so that I can authenticate via SMTP to localhost

From Dev

How can I avoid 550 "Relaying denied" with postfix?

From Dev

How can I accept negative values in Postfix and Infix Notation?

From Dev

How can I make Shutter open at startup?

From Dev

How can I reduce startup time for vim?

From Dev

How can I prevent Supervisor to run at startup?

From Dev

How can I add startup timings to MiniProfiler?

From Dev

How can I prevent Supervisor to run at startup?

From Dev

How can I run a program on startup, minimized?

From Dev

How can I make Shutter open at startup?

From Dev

How can I remove a duplicate startup entry?

From Dev

How can I execute commands on startup in awesome?

From Dev

How can I configure a service to run at startup

From Dev

How can I fill a dataset on app startup

Related Related

  1. 1

    How can I immediately disable all emails using postfix?

  2. 2

    (Windows 10) How can I disable Skype popping up on startup?

  3. 3

    In postfix, how could I disable incoming mail?

  4. 4

    Which startup applications can I safely disable?

  5. 5

    Which startup applications can I safely disable?

  6. 6

    How to disable postfix address verification

  7. 7

    How to disable postfix address verification

  8. 8

    How can I disable captcha?

  9. 9

    How can I disable captcha?

  10. 10

    How can you disable the auto startup of iTunes when connecting an iPhone?

  11. 11

    How do I disable Spring Dashboard on startup on GGTS?

  12. 12

    How do I disable fast startup using safe mode?

  13. 13

    How can I use a named iterator with postfix foreach?

  14. 14

    How can I correctly combine multiple boolean postfix expressions?

  15. 15

    How can I add an unremovable postfix to an HTML input field?

  16. 16

    How to configure Postfix so that I can authenticate via SMTP to localhost

  17. 17

    How can I avoid 550 "Relaying denied" with postfix?

  18. 18

    How can I accept negative values in Postfix and Infix Notation?

  19. 19

    How can I make Shutter open at startup?

  20. 20

    How can I reduce startup time for vim?

  21. 21

    How can I prevent Supervisor to run at startup?

  22. 22

    How can I add startup timings to MiniProfiler?

  23. 23

    How can I prevent Supervisor to run at startup?

  24. 24

    How can I run a program on startup, minimized?

  25. 25

    How can I make Shutter open at startup?

  26. 26

    How can I remove a duplicate startup entry?

  27. 27

    How can I execute commands on startup in awesome?

  28. 28

    How can I configure a service to run at startup

  29. 29

    How can I fill a dataset on app startup

HotTag

Archive