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: 2752
  • Last Modified:

Sendmail and BusyBox

Hi,


I tried to use sendmail on BusyBox and I got this error message "cannot open mail: 25"  Any idea what's wrong??  How can I use sendmail on BusyBox???



Xenia
0
xenia27
Asked:
xenia27
  • 7
  • 6
1 Solution
 
wesly_chenCommented:
1. Is the sendmail daemon running?
ps -auxw | grep sendmail

2. Is there any firewall on BusyBox?
Check the configuration and make sure the firewall allow the tcp port 25.
Then do
( from remote PC ) telnet <IP address of BusyBox> 25
0
 
xenia27Author Commented:
I checked and realized sendmail daemon is not running...so how can I make it running?  Also, how can I modify ssmtp.conf???
The "telnet" didn't work...how can I make it working???
0
 
wesly_chenCommented:
> sendmail daemon is not running
As root,
find / -type f -name sendmail
to find out where is sendmail first. BusyBox is a special Unix box so the path of sendmail may differ than other Unix.
Or you can check /etc/init.d/sendmail to see where is sendmail daemon (/usr/sbin/sendmail ....)

Please post the result of
uname -a
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
xenia27Author Commented:
OK..this is what I got

if I tried "find / -type f -name sendmail", I got nothing
but if I tried "find / -name sendmail", I got those "/usr/lib/sendmail" and "/usr/sbin/sendmail"

and I tried to check /etc/init.d to see whethere there exists sendmail or not...I cannot see it.
0
 
wesly_chenCommented:
find /etc -exec grep -i sendmail {} \ ;
0
 
xenia27Author Commented:
I tried "find /etc -exec grep -i sendmail {} \ ;"
and it seems the pattern is not right...and I got this...
BusyBox v1.00 (2005.02.21-06:42+0000) multi-call binary

Usage: find [PATH...] [EXPRESSION]

Search for files in a directory hierarchy.  The default PATH is
the current directory; default EXPRESSION is '-print'

EXPRESSION may consist of:
        -follow         Dereference symbolic links.
        -name PATTERN   File name (leading directories removed) matches PATTERN.

        -print          Print (default and assumed).

        -type X         Filetype matches X (where X is one of: f,d,l,b,c,...)
        -perm PERMS     Permissions match any of (+NNN); all of (-NNN);
                        or exactly (NNN)
        -mtime TIME     Modified time is greater than (+N); less than (-N);
                        or exactly (N) days
        -newer FILE     Modified time is more recent than FILE's
        -inum N         File has inode number N
0
 
wesly_chenCommented:
Try
/usr/lib/sendmail -bd -q1h
to start sendmail first.

Then
( from remote PC ) telnet <IP address of BusyBox> 25

If all work, then (send test mail)
mail -s "test" <your email address> test  < /dev/null
0
 
xenia27Author Commented:
mMmmm...this is what I got...what should I do now?  @@
# /usr/lib/sendmail -bd -q1h
-bd is not supported by sSMTP
0
 
wesly_chenCommented:
man sendmail
for more details.

Just
/usr/lib/sendmail
0
 
xenia27Author Commented:
OK...seems in my BusyBox, I don't have man...so I tried those commands...

/usr/lib/sendmail -bd -q1h --> it said "-bd is not supported by sSMTP"
/usr/lib/sendmail -bD -q1h --> it said "sendmail: Mail queue is empty"
/usr/lib/sendmail              --> it said "sendmail: No recipients supplied, mail will not be sent"
0
 
wesly_chenCommented:
Ok,
/usr/sbin/sendmail -bd -q1h
0
 
xenia27Author Commented:
I got the same result as I tried "/usr/lib/sendmail -bd -q1h"
0
 
xenia27Author Commented:
How can I fill up "ssmtp.conf"???  Is there any example I can check???
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

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