Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2648
  • Last Modified:

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
0
ricbax
Asked:
ricbax
  • 3
  • 3
1 Solution
 
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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
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

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now