LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mail not working on DietPi (https://www.linuxquestions.org/questions/linux-newbie-8/mail-not-working-on-dietpi-4175578973/)

Entropy1024 05-04-2016 06:04 AM

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

cliffordw 05-04-2016 07:51 AM

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?

Entropy1024 05-04-2016 11:20 AM

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 (Post 5540405)
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?



All times are GMT -5. The time now is 07:55 PM.