>>> 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.
>>> I have modified login.php according to our needs, but it is not able
>>> to log failed logins in /var/log/maillog.
>>
>>i did not read the code.
>>i think it check the uid/pwd by the imap server.
>
> I got failed logging fix with logger command
>
> 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");
Where did you put this code? You don't need any of it. Just use
Squirrel Logger and it will put login failures into your 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 can be configured to write to them.
--
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: [email protected]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options):
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users