The Linux.uk Community Forum

General Help & Advice => Linux Support => Topic started by: beaulahwiza on December 16, 2021, 03:18:06 PM

Title: Mailx on Buildroot
Post by: beaulahwiza on December 16, 2021, 03:18:06 PM
Hi there,

I am trying to send an email using en embedded system running buildroot.

I am currently trying to integrate the mailx package to send an email and I have been receiving the following error:

/usr/lib/sendmail: No such file or directory

I have also tried installing mailutils in busybox but nothing is working!

Thanks,
Title: Re: Mailx on Buildroot
Post by: Brian000 on December 16, 2021, 09:48:54 PM
Hi and Welcome,

If you can provide an example of what you're doing, that would help us help you, because on the face of it SENDMAIL hasn't been installed, or at least on at "/usr/lib".  You could try to find it with "which sendmail" or "find / -name sendmail". 

...but, I used to use MUTT for what sounds like a similar use case:

apt-get install mutt

vi ~/.muttrc

set realname="test"
set from="[email protected]"
set use_from=yes
set smtp_url="smtp://[email protected]:587"
set smtp_pass="password"

mutt -s "first test" [email protected] </dev/null

Hope this helps, but you are you sure SENDMAIL has been installed?