4

I want to configure sendmail only to send emails – not to listen and receive. In /etc/mail/sendmail.conf I’ve got:

DAEMON_MODE="None";
QUEUE_MODE="Daemon";

Iptables are disabled (temporarily; only for this test)

But in /var/log/mail/mail.log

Nov 18 13:40:04 novy sm-msp-queue[13548]: rAIC9RiF012445: to=user@mydomain.com, ctladdr=root (0/0), delay=00:30:37, xdelay=00:00:00, mailer=relay, pri=390130, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

When I set in /etc/mail/sendmail.conf DAEMON_MODE="Daemon"; e-mails are successfully sent.

Is that needed – to listen?

  • How do you expect to send mail if you disable the daemon, but also set the queue mode to "daemon"? – Chris Down Nov 18 '13 at 13:11
  • /etc/mail/sendmail.conf is specific to your OS/distro. In fact, nothing like this is standard. – jirib Nov 18 '13 at 13:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.