OS: Ubuntu 10.04 Program: Sendmail
I disabled daemon by setting daemon_mode = "None", queue_mode = "Daemon" in the sendmail.conf, updated the conf and restarted sendmail.
However, after that whenever I tried to send emails, I got a stat=Deferred: Connection refused by [127.0.0.1] from the mail.log.
If I turn on the daemon again by setting it daemon_mode = "Daemon" then everything works fine. Plus, if I turn back on the daemon and try to send an email, all the previously deferred emails that's refused for the above reason are all sent successfully along the new email.
Does anyone know what is going wrong here? What I want is I want the daemon to stop listening for incoming email but leave the queue to clean up unsent messages.