2

I realize this is wildly offtopic but this is my last hope. I would like to only send mail from my computer, both locally and to remote servers, so I don't think I need postfix to run a daemon, but I can't find anything that will tell me how to configure it. Would anyone happen to know?

2
  • Can you explain why you do not want to run it as a daemon? It would help pick the correct answer.
    – bortzmeyer
    Dec 22, 2008 at 12:36
  • "Why you do not want to run it as a daemon?" What about when you want to run it as a Docker process which doesnt quit? Mar 12, 2017 at 17:23

3 Answers 3

6

Generally it's still useful to have an SMTP server running as a daemon - just make sure it only listens on the loopback (127.0.0.1) interface so that it doesn't accept mail from the outside world.

By running as a daemon, your Postfix installation can continue to manage your outgoing mail queue optimally (for those instances where an outgoing e-mail couldn't be delivered immediately).

Also, some software prefers to make a direct SMTP connection to port 25 on a machine somewhere rather than invoking /usr/sbin/sendmail and piping the mail to that program. Running as a daemon is then preferable to having your SMTP service started on demand via inetd.

4
  • Hmm, so you'd advise me to use the default setup? My machine only has an Atom processor and I don't want to bog it down with unused daemons, would postfix consume many resources running? Dec 22, 2008 at 9:52
  • no, when it's not being used it should use negligible resources. Mostly it'll use RAM in any case, not CPU.
    – Alnitak
    Dec 22, 2008 at 9:53
  • If you've got a netbook or something with an Atom, you've probably got at least two or three orders of magnitude more memory than Postfix will use. Don't worry about it. Dec 22, 2008 at 9:56
  • 1
    FYI, I had Postfix running on a 486 with 16MB of RAM at one point and it only used a small fraction of that, just a few hundered K. Dec 22, 2008 at 9:57
2

Just comment out the line starting with 'smtp' in /etc/postfix/master.cf.

0
0

You may stop postfix service and remove it from startup services.

If you are using redhat you may use

chkconfig --level 2,3,4,5 postfix off

You must log in to answer this question.

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