LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-29-2021, 01:05 PM   #1
ArcticWind
LQ Newbie
 
Registered: Mar 2021
Posts: 3

Rep: Reputation: Disabled
Webmail Utility Help


Hello
I have a Ubuntu SMP command line distro, release 4.15.0-132-generic and I'm having trouble setting up the webmail for it. I've done sudo apt-get update and then sudo apt-get install ssmpt and the error I receive is 'Package ssmtp is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source'. I then tried to use mutt, which installed successfully, but when I typed in mutt -s "test" myemail(at)gmail.com < /dev/null, I received the error 'Error sending message, child exited 127 (Exec error.). Could not send the message.' Ok, so maybe mutt isn't configured (and I need a new email domain?). Googling it, I got the advice to use
touch ~/.mutt/muttrc to setup mutt. Except using that, I received the error message 'No such file or directory'. In the end, all I care is that, at the end of the day, I end up with a working email from my Ubuntu SMP OS. Suggestions? Fixes? Thanks in advance.

Last edited by ArcticWind; 03-29-2021 at 01:08 PM. Reason: clarity, syntax error after post
 
Old 03-30-2021, 03:27 AM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Quote:
Originally Posted by ArcticWind View Post
I got the advice to use
touch ~/.mutt/muttrc to setup mutt. Except using that, I received the error message 'No such file or directory'.
Code:
mkdir ~/.mutt&&touch ~/.mutt/muttrc
You don't need ssmtp (or any MTA) in order to configure mutt to use GMail. There are plenty of info on this subject on the net.

Start with MuttWiki.

Also see How to install, configure, and use mutt with a gmail account on Linux at linuxconfig.org and Mutt+Gmail.

Last edited by shruggy; 03-30-2021 at 03:33 AM.
 
Old 03-30-2021, 04:12 PM   #3
ArcticWind
LQ Newbie
 
Registered: Mar 2021
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thank you. Fixed most of my problems, but I'm still having issues sending anything. Tried without smpt, get exit child error 127. Configed with smpt and gmail with the recommendations on all the links, keep getting invalid SMPT URL error despite changing syntax. Made sure sendmail was installed, etc, despite creating a .config file and making sure installed, I also get a cannot open mail:25 error. Not sure if connected or not but in my research there was something about mutt using sendmail. Not sure where to go from here.
 
Old 03-30-2021, 09:28 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
As shruggy has posted you need to configure your .muttrc file as shown in the links provided. You might need to configure your gmail account to accept connections from mutt with ouath2.
The default configuration file for mutt is ~/.muttrc

To send email from the command line using mutt
Code:
mutt  -s "testing" user@whereever.com < message.txt
Where -s is the subject and the contents of your email is message.txt
 
Old 03-31-2021, 02:36 PM   #5
ArcticWind
LQ Newbie
 
Registered: Mar 2021
Posts: 3

Original Poster
Rep: Reputation: Disabled
I did that already. I STARTED with configuring the muttrc file as described in the posts, then went looking on the web for additional help when I got everything to work except the smpt configuration. Even tried taking that out of the file and several syntax variations. Was wondering if anyone else had that problem in there muttrc file and how they solved it if they did.

I get mail:25 error with the command you described. When I go into mutt, then y for send, I get smtp invalid error, despite using the recommended syntax.
I'm having a similar problem as the person in this post https://unix.stackexchange.com/quest...ng-smtp-server
Except the recommended fix (using my user name of course) doesn't fix the problem. Thanks.

Last edited by ArcticWind; 03-31-2021 at 03:18 PM.
 
  


Reply

Tags
mutt, muttrc



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Install WebMail Lite PHP based Webmail Client on Debian 9.1 LXer Syndicated Linux News 0 11-13-2017 07:09 PM
Utility for Disk Usage / Treesize utility teknoratti Linux - Software 1 06-08-2011 02:53 AM
MUA: Webmail Which is better Webmail to IMAP Server? borgesbruno Linux - Server 2 01-15-2010 08:00 PM
"multiboot utility" and "dell utility partition" on dell i5150 xround Linux - Laptop and Netbook 5 04-21-2005 09:19 AM
Help on open webmail sanjibgupta Linux - Newbie 0 09-04-2003 11:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration