LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 05-04-2016, 07:04 AM   #1
Entropy1024
Member
 
Registered: Dec 2012
Location: UK
Distribution: Ubuntu 14 & 15
Posts: 73

Rep: Reputation: Disabled
Mail not working on DietPi


I have been using the terminal command 'mail' on my Ubuntu PC to send emails. To get it working I installed it using:
Code:
sudo apt install mailutils
Then I can send an email using:
Code:
mail -s "Hello Friend" myaddress@gmail.com
This all works fine.
I tried the same install on my Raspberry Pi running DietPi and although it appears to install OK and I do not get an error message when I send an email, it never works.

Is there a different way to get it installed/working on DietPi?

Many thanks
Tim
 
Old 05-04-2016, 08:51 AM   #2
cliffordw
Member
 
Registered: Jan 2012
Location: South Africa
Posts: 481

Rep: Reputation: 179Reputation: 179
Hi there,

The installation steps should be fine.

Have you looked at the logs (most likely in /var/log/mail)? This should tell you whether the message was delivered to the destination server or not.

Also, have you checked whether the mail might still be stuck in the local queue? Check by running "sudo mailq".

Lastly, did you check that it is not perhaps filtered as spam at the destination?
 
Old 05-04-2016, 12:20 PM   #3
Entropy1024
Member
 
Registered: Dec 2012
Location: UK
Distribution: Ubuntu 14 & 15
Posts: 73

Original Poster
Rep: Reputation: Disabled
Thanks for the reply.
The mail queue is empty.
I cant see any mail logs under /var/log/ would it be anywhere else?

Many thanks for the help
Tim

Quote:
Originally Posted by cliffordw View Post
Hi there,

The installation steps should be fine.

Have you looked at the logs (most likely in /var/log/mail)? This should tell you whether the message was delivered to the destination server or not.

Also, have you checked whether the mail might still be stuck in the local queue? Check by running "sudo mailq".

Lastly, did you check that it is not perhaps filtered as spam at the destination?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LAN mail clients cannot send mail (receiving mail is working) rnturn Linux - Server 2 07-23-2015 12:53 AM
[SOLVED] Mail forwarders are bouncing but mail sent from server is working. jim.thornton Linux - Server 5 11-20-2012 02:29 PM
problem with Evoution mail working with ubunto linux system senting mail dan1369 Linux - Newbie 1 06-14-2009 12:55 PM
"mail" program not working to mail a user working at other host. stalin.varanasi Linux - Networking 5 09-16-2008 11:12 AM


All times are GMT -5. The time now is 02:37 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration