We help IT Professionals succeed at work.

MUTT & Sendmail?

ricbax asked
Medium Priority
Last Modified: 2013-12-16
I am trying to use MUTT but when I try to send an email I get the following error:

Error sending message, child exited 69 (Service unavailable.).

Any ideas? TIA

Watch Question

Top Expert 2006

Can you print out the command that you are trying to run?

In order to be able to do this, some form of MAil transportation agent needs to be running. Is sendmail available and running as a daemon?

/etc/init.d/sendmail start|stop|status



mutt -a file-i-want-attached mailadress@example.com</dev/null

/etc/init.d/sendmail status

sendmail (pid 14290 14282) is running...


Well I isolated the problem to APF (Advanced Policy Firewall) by R-fx Networks but can'y figure out why it is blocking it.

All the ports for SMTP,POP3, and IMAP are open.
Top Expert 2006

So you can telnet to port 25, and also to 192.x.x.x 25 (the external address of the SMTP server)?

Guessing on your configuration one or the other sendmail identity could be required, and blocked by the firewall. The telnet to port 25 is a good way of finding the fault in this type of problem. HAve a look here for more details on finding what is(not) working:



I have actually solved this on my own over the weekend.

By adding the line sendmail:ALL to my /etc/hosts.allow, however I am not so sure if this is the most secure thing to have done?

My logs are now sent out which is what I wanted.
Top Expert 2006
You are now allowing connections to your sendmail daemon from ALL hosts.

Before, your configuration allowed no connections to sendmail. What you possibly need is to change your line to:


or whatever for your system. This will restrict the hosts that can access the service.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.