DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 3rd July 2008
cssgalactic cssgalactic is offline
Port Guard
 
Join Date: Jun 2008
Posts: 24
Cool Mutt not sending email

Ok, I have configure getmail to fetch my messages and mutt to read all my fetched messages. I have installed ssmtp and configured mutt, but when i send email i get this error from mutt:

Error sending message, child exited 127 (Exec error.).

here is the ssmtp configuration in /usr/local/etc/ssmtp/ssmtp.conf

MailHub=smtpauth.earthlink.net:587
UseTls=YES
FromLineOverride=YES
Hostname=XX.XXX.XXX.XX
RewriteDomain=earthlink.net
Root=XXXXXX@earthlink.net
AuthUser=XXXXXX@earthlink.net
AuthPass=XXXXX

here is how i'm telling mutt what to use to send mail on ~/.muttrc

set sendmail="/usr/local/etc/ssmtp"

And yes I have disabled sendmail in etc/rc.conf

sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"

What step Am I missing? Please help me configure ssmtp or suggest another solution.

Thanks
Reply With Quote
  #2   (View Single Post)  
Old 3rd July 2008
jbhappy's Avatar
jbhappy jbhappy is offline
Real Name: Jeff
Port Guard
 
Join Date: Jun 2008
Location: MI, US
Posts: 30
Default

Quote:
Originally Posted by cssgalactic View Post
here is how i'm telling mutt what to use to send mail on ~/.muttrc

set sendmail="/usr/local/etc/ssmtp"
shouldn't your mutt 'sendmail' variable should be set to /usr/local/sbin/ssmtp? that's where the executable is if you installed it from ports, anyway.
Reply With Quote
  #3   (View Single Post)  
Old 3rd July 2008
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
ISO Quartermaster
 
Join Date: Apr 2008
Location: NYC
Posts: 661
Default

Easiest way to do it in FreeBSD
cd /usr/ports/mail/ssmtp
make replace

This will rewrite mailer.conf so that it uses ssmtp instead of sendmail.
Then, you don't need to put the sendmail line in .muttrc.
However, as jbhappy correctly mentioned, it's /usr/local/sbin/ssmtp that you want.

I see that you also give the option to offer another solution. I've come to prefer msmtp. Firstly, ssmtp has been abandoned and is no longer maintained. Secondly, msmtp gives you a bit more flexibility--you can send from multiple accounts and such.

I cover it in my my mutt page.
http://home.nyc.rr.com/computertaijutsu/mutt.html
Reply With Quote
  #4   (View Single Post)  
Old 3rd July 2008
cssgalactic cssgalactic is offline
Port Guard
 
Join Date: Jun 2008
Posts: 24
Default Changing the path to ssmtp worked but still with an error

I changed my .muttrc to: set sendmail="/usr/local/etc/ssmtp" but I still get an error.

SSL_connect: Unknown error: 0
ssmtp: Cannot open smtpauth.earthlink.net:587
Reply With Quote
  #5   (View Single Post)  
Old 3rd July 2008
cssgalactic cssgalactic is offline
Port Guard
 
Join Date: Jun 2008
Posts: 24
Default

Quote:
Originally Posted by scottro View Post
Easiest way to do it in FreeBSD
cd /usr/ports/mail/ssmtp
make replace

This will rewrite mailer.conf so that it uses ssmtp instead of sendmail.
Then, you don't need to put the sendmail line in .muttrc.
However, as jbhappy correctly mentioned, it's /usr/local/sbin/ssmtp that you want.

I see that you also give the option to offer another solution. I've come to prefer msmtp. Firstly, ssmtp has been abandoned and is no longer maintained. Secondly, msmtp gives you a bit more flexibility--you can send from multiple accounts and such.

I cover it in my my mutt page.
http://home.nyc.rr.com/computertaijutsu/mutt.html
Let me start reading about msmtp. I'll give ssmtp another try if not I'll move on. Thank you scottro.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Maildir with Postfix/Dovecot/procmail/mutt bsdperson FreeBSD Ports and Packages 3 8th July 2009 07:05 PM
sending 2 launcher command to terminal with && ? whispersGhost Solaris 3 24th December 2008 06:19 PM
Sending PRs through KMail BSDKaffee Guides 0 8th October 2008 10:39 PM
FreeBSD 6.2 + qmail = problem sending email to freebsd.org DNAeon FreeBSD Ports and Packages 2 29th September 2008 12:27 AM
help with mutt cssgalactic FreeBSD General 3 2nd August 2008 07:25 AM


All times are GMT. The time now is 04:01 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick