MUTT & Sendmail?

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

ricbax
LVL 3
ricbaxAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

pjedmondCommented:
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

HTH:)
0
ricbaxAuthor Commented:
mutt -a file-i-want-attached mailadress@example.com</dev/null

/etc/init.d/sendmail status

sendmail (pid 14290 14282) is running...
0
ricbaxAuthor Commented:
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.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

pjedmondCommented:
So you can telnet to 127.0.0.1 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:

http://www.yuki-onna.co.uk/email/smtp.html
 
0
ricbaxAuthor Commented:
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.
0
pjedmondCommented:
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:

sendmail:127.0.0.1,192.168.2.1

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.