WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Error sending mail from mutt  (Read 28273 times)

Offline remus

  • Sr. Member
  • ****
  • Posts: 371
Error sending mail from mutt
« on: March 10, 2012, 07:47:35 AM »
I've just installed mutt and run the following command

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

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

Heres some helpful output to fix the problem.
Code: [Select]
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.

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

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

Code: [Select]
tc@box:~$ sudo find / -name sendmail
Suggestions and comments welcome.
Live long and prosper.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14756
Re: Error sending mail from mutt
« Reply #1 on: March 10, 2012, 08:08:09 AM »
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

Offline remus

  • Sr. Member
  • ****
  • Posts: 371
Re: Error sending mail from mutt
« Reply #2 on: March 10, 2012, 08:59:22 PM »
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: [Select]
set sendmail="/usr/local/sbin/sendmail -oem -oi"
Now when i run the command
Code: [Select]
mutt test@test.com < file
I get no error messages, however nothing happens, as if the system is frozen...
Live long and prosper.

Offline remus

  • Sr. Member
  • ****
  • Posts: 371
Re: Error sending mail from mutt
« Reply #3 on: March 11, 2012, 01:33:10 AM »
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.
« Last Edit: March 11, 2012, 01:43:02 AM by remus »
Live long and prosper.

Offline remus

  • Sr. Member
  • ****
  • Posts: 371
Re: Error sending mail from mutt
« Reply #4 on: March 11, 2012, 09:08:54 AM »
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.
Live long and prosper.

Offline makoto

  • Newbie
  • *
  • Posts: 26
Re: Error sending mail from mutt
« Reply #5 on: August 26, 2012, 09:58:41 PM »
I have solved this problem. In fact, it is with postfix. When creating a .tcz, the permissions changed. You can start terminal and run these commands:
sudo cp -fr /tmp/tcloop/postfix /tmp
sudo umount /tmp/tcloop/postfix
sudo rmdir /tmp/tcloop/postfix
sudo chgrp postdrop /tmp/postfix/usr/local/sbin/postdrop
sudo chgrp postdrop /tmp/postfix/usr/local/sbin/postqueue
sudo chmod g+s /tmp/postfix/usr/local/sbin/postdrop
sudo chmod g+s /tmp/postfix/usr/local/sbin/postqueue
sudo mv /tmp/postfix /tmp/tcloop/