Please do not top post. >> I wanted to know with part of squirrelmail will check for user and >> password.If its correct then it goes to redirect.php.If incorrect >> which part of the code will be executed. src/redirect.php itself checks the username and password -- it does so by using the credentials to log into the IMAP server. The login call itself will print out the failed login message if the credentials are bad. >> I have modified login.php according to our needs, but it is not able >> to log failed logins in /var/log/maillog. You need to install the Squirrel Logger plugin. > I got failed logging fix with logger command I cannot understand what this means. > Following is the code for the same. > > $username = $_POST['login_username']; > $ip = getenv('REMOTE_ADDR'); > $output = shell_exec('logger -p mail.error Login Failed for user ' > .$username. ' from IP Address ' .$ip. ' [Password Incorrect]'); > echo ("alert('Password Incorrect');\n"); Why are you calling an external logging command instead of using the Squirrel Logger plugin to log to syslog? > O/P format in maillog is : > Jul 10 12:25:46 postfix logger: Login Failed for user binny.mandvia from IP > Address 10.10.0.67 [Password Incorrect] > > Can any one tell if squirrel_logger reads specific log format for failed > login ?? Right now it is not able to log failed logins in squirrel_logger. Squirrel Logger doesn't read your logs. It writes to them. It does in fact log failed logins, but it has nothing to do with the code you create above. >>i did not read the code. >>i think it check the uid/pwd by the imap server. -- Paul Lesniewski SquirrelMail Team Please support Open Source Software by donating to SquirrelMail! http://squirrelmail.org/donations.php ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge ----- squirrelmail-users mailing list Posting guidelines: http://squirrelmail.org/postingguidelines List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx List archives: http://news.gmane.org/gmane.mail.squirrelmail.user List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users