Jump to content

Photo

Terminal notification of new email


  • Please log in to reply
4 replies to this topic

#1 klamathh

klamathh

    Member

  • Members
  • 18 posts

Posted 17 September 2017 - 10:23 PM

Hi,

need to know when new system email are present

usually in linux you have been notified in terminal when new email arrives

but in bodhi it does not happens

 

installed postfix, configured and created /var/mail/root

mails arrives but there is no terminal notification

 

added 

 

export MAILPATH=/var/mail/root
MAILCHECK=10
 
in .bashrc, but nothing changes
 
any clue ?




A big thank you to everyone who contributes to Bodhi Linux


#2 DOOMguy

DOOMguy

    Member

  • Members
  • 252 posts

Posted 19 September 2017 - 03:00 PM

couple of things you could try. 

 

What is your email address? I will send you a question, and if you reply back then I will know this email address exists and your setup with postfix is fully functional. It will be a real world test, and no one will know what the question is-- only the sender, and its recipient. Give a different answer, and maybe someone else is trying to reach you at the same time, which may not be a bad thing.

 

After adding those lines in .bashrc, did you source it? Source it with this command (for the sake of anyone reading this) ". ~/.bashrc" without the double quotes. And yes, that is a dot followed by a space.

 

And I will only ask this once: Must it be root?


Unsolicited advice for learning linux, that won't cost you anything


#3 klamathh

klamathh

    Member

  • Members
  • 18 posts

Posted 19 September 2017 - 04:24 PM

couple of things you could try. 

 

What is your email address? I will send you a question, and if you reply back then I will know this email address exists and your setup with postfix is fully functional. It will be a real world test, and no one will know what the question is-- only the sender, and its recipient. Give a different answer, and maybe someone else is trying to reach you at the same time, which may not be a bad thing.

 

After adding those lines in .bashrc, did you source it? Source it with this command (for the sake of anyone reading this) ". ~/.bashrc" without the double quotes. And yes, that is a dot followed by a space.

 

And I will only ask this once: Must it be root?

 

Well ...... I did not undestood what do you mean .....

 

I will explain more in details and give some other clues

 

I found in internet a script to put in .bashrc that alert me with an email when someone login ( as root or as user )

I put the script in root's .bashrc and user's .bashrc.The email for both login are now sent to my user mbox. 

 

The script works because the email arrives but I was waiting during my terminal works the messagge

 

"You have new mail"

 

but for those email this does not happens.

 

Tried to send a test email from root to my username and: the email arrives too and in this case

I have the terminal notification



#4 DOOMguy

DOOMguy

    Member

  • Members
  • 252 posts

Posted 19 September 2017 - 04:39 PM

I was also going to send email to you, so that you will know that it works for external email (like from gmail) as well. If you feel that is not necessary then that is entirely up to you.


Unsolicited advice for learning linux, that won't cost you anything


#5 klamathh

klamathh

    Member

  • Members
  • 18 posts

Posted 19 September 2017 - 08:16 PM

I was also going to send email to you, so that you will know that it works for external email (like from gmail) as well. If you feel that is not necessary then that is entirely up to you.


Cannot receive from outside, I configured postfix to send and receive only local emails ....




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users