I want to write a script to check for the password expiration date in each server for the user by logging to each server and notify user through mail. If password is about to expire or if already expired , it should also be notified to user by mail. Any help or idea to build this will be very much appreciative.
remove the "mail.com" and put your mail domain name there.....
you can set this script as a cron job in the server's and it will send mail's accordingly to the user's by verifying their password expiration date.
Edit the message according to your desire. if you placing the message in other directories, don't forget to mention the path..