Link to home
Start Free TrialLog in
Avatar of xenia27
xenia27Flag for Taiwan, Province of China

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of wesly_chen
wesly_chen
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of xenia27

ASKER

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???
> 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
Avatar of xenia27

ASKER

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.
find /etc -exec grep -i sendmail {} \ ;
Avatar of xenia27

ASKER

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
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
Avatar of xenia27

ASKER

mMmmm...this is what I got...what should I do now?  @@
# /usr/lib/sendmail -bd -q1h
-bd is not supported by sSMTP
man sendmail
for more details.

Just
/usr/lib/sendmail
Avatar of xenia27

ASKER

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"
Ok,
/usr/sbin/sendmail -bd -q1h
Avatar of xenia27

ASKER

I got the same result as I tried "/usr/lib/sendmail -bd -q1h"
Avatar of xenia27

ASKER

How can I fill up "ssmtp.conf"???  Is there any example I can check???