Off-Topic > Off-Topic - Tiny Tux's Corner

Error sending mail from mutt

(1/2) > >>

remus:
I've just installed mutt and run the following command


--- Code: ---tc@box:~$ mutt test@test.com < file
Error sending message, child exited 127 (Exec error.).
Could not send the message.

--- End code ---

I've changed the email address to protect privacy :)

Heres some helpful output to fix the problem.

--- Code: ---tc@box:~$ mutt -v
Mutt 1.4.2.3i (2007-05-26)
Copyright (C) 1996-2002 Michael R. Elkins and others.
Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
Mutt is free software, and you are welcome to redistribute it
under certain conditions; type `mutt -vv' for details.

System: Linux 2.6.33.3-tinycore (i686) [using ncurses 5.6]
Compile options:
-DOMAIN
-DEBUG
-HOMESPOOL  -USE_SETGID  -USE_DOTLOCK  -DL_STANDALONE
+USE_FCNTL  -USE_FLOCK
+USE_POP  +USE_IMAP  -USE_GSS  +USE_SSL  -USE_SASL
-HAVE_REGCOMP  +USE_GNU_REGEX
+HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET
+HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM
+HAVE_PGP  -BUFFY_SIZE -EXACT_ADDRESS  -SUN_ATTACHMENT
+ENABLE_NLS  -LOCALES_HACK  +HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET  +HAVE_LANGINFO_YE.PR
+HAVE_ICONV  -ICONV_NONTRANS  +HAVE_GETSID  +HAVE_GETADDRINFO
-ISPELL
SENDMAIL="/usr/sbin/sendmail"
MAILPATH="/var/spool/mail"
PKGDATADIR="/usr/local/share/mutt"
SYSCONFDIR="/usr/local/etc"
EXECSHELL="/bin/sh"
-MIXMASTER
To contact the developers, please mail to <mutt-dev@mutt.org>.
To report a bug, please use the flea(1) utility.

--- End code ---

I noticed that there is NO /usr/sbin/sendmail

A search for sendmail on my system came up with nothing also


--- Code: ---tc@box:~$ sudo find / -name sendmail
--- End code ---

Suggestions and comments welcome.

Juanito:
using the "provides" function of the app browser shows the postfix extension contains sendmail, but I don't think there's a sendmail extension as such

remus:
Thx Juanito

Installing postfix did get sendmail onto my system.

I've had to create a ~/.muttrc file and specify the custom sendmail path

--- Code: ---set sendmail="/usr/local/sbin/sendmail -oem -oi"
--- End code ---

Now when i run the command

--- Code: ---mutt test@test.com < file
--- End code ---

I get no error messages, however nothing happens, as if the system is frozen...

remus:
I've been researching mutt and discovered a few more settnings I can add to .muttrc

set smtp_url=""
set smtp_pass=""

I've set these up to match requirments of my isp, however I get errors from mutt saying that the two new variables are invalid...

I am hoping to figure out how to get a email sent from a shell script with mutt, I looked into doing it with alpine, but did not find any instructions for alpine.

EDIT: current version of mutt for microcore 3.8.4 does not support smtp.

remus:
I've been given permission to release an update of mutt by the current maintainer, and will do so soon, it does support smtp and does not require sendmail to do so.
Thanks again for your help Juanito.

Navigation

[0] Message Index

[#] Next page

Go to full version