[Ilugc] Using $MAILPATH variable across machines

  • From: bhuvanbk@xxxxxxxxxxxxxxxxx (Bhuvan A)
  • Date: Tue, 16 Jul 2002 09:43:32 +0530 (IST)

Hi,

As we know $MAILPATH environment variable in bash can be used to intimate
the user on new mail arrival and it is useful when the mails are received
in the same machine.

Short Description:

Here we have seperate mailserver for our incoming mails. But users
normally work in mainserver. Both are linux servers.

My doubt is, Is it possible to set the $MAILPATH variable in mainserver to
intimate whenever a new mail is arrived in mailserver? Or is there any
other way?

Long Description:

Something like, 

Normally we have an entry something like or similar to
  export MAILPATH=/var/spool/mail/$USER?hi $USER, you have new mail.
in /etc/bashrc

Should we able to change this entry to
 export MAILPATH=mailserver:/var/spool/mail/$USER?hi $USER, you have
new mail.

??

Valuable suggestions are very welcome.
        
                    regards, bhuvaneswaran


Other related posts: