Hi all, I've now setup squirrelmail-v1.4.23 from SVN and it's working properly. I've also configured squirrel_logger, and that's working properly, but I have a few questions. It's logging actions such as login, logout, and massmailing, but not events such as regular outgoing mail and subject/sender info. I hoped someone could look at my config and see if there's something I'm doing wrong? I'd also like to know if it's possible to format the date similar to something like "Mar 26 22:53:09". It seems fail2ban doesn't recognize any of the default choices listed in the config, and I hoped someone was more familiar with how PHP date functions work. Also, how do I access the show_stats.php that's included with the plugin? The SM is at /webmail/ but trying to access the /plugins/ directory from there doesn't work. My squirrel_logger config is included here. <?php global $sl_logs, $sl_log_events, $data_dir, $sl_logfile, $sl_namelookups, $sl_dateformat, $sl_send_alerts, $sl_mass_mail_limit, $sl_alert_to, $sl_alert_cc, $sl_alert_bcc, $sl_alert_subject_template, $sl_log_mass_mailing_show_recipients, $sl_log_mass_mailing_show_message_body, $sl_dsn, $sl_insert_event_query, $sl_use_GMT, $sl_fail_silently, $skip_domains, $only_log_domains, $sl_log_outgoing_messages_show_recipients, $sl_log_outgoing_messages_show_message_body, $sl_useSendmail, $sl_smtpServerAddress, $sl_smtpPort, $sl_sendmail_path, $sl_sendmail_args, $sl_pop_before_smtp, $sl_log_mass_mailing_show_reply_to, $sl_log_mass_mailing_show_from, $sl_alert_from, $sl_log_mass_mailing_show_subject, $sl_log_outgoing_messages_show_reply_to, $sl_log_outgoing_messages_show_from, $sl_log_outgoing_messages_show_subject, $sl_encode_header_key, $sl_smtp_auth_mech, $sl_smtp_sitewide_user, $sl_smtp_sitewide_pass; $sl_log_events = array( 'LOGIN', 'LOGOUT', 'TIMEOUT', 'OUTGOING_MAIL', 'MASS_MAILING', 'LOGIN_ERROR', 'ERROR', ); $sl_logs = array( 'SYSTEM:LOG_INFO:LOG_MAIL' => array( 'LOGIN' => "Successful webmail login: by %2 (%3) at %4 on %6: %7", 'LOGOUT' => "Webmail logout: by %2 (%3) at %4 on %6: %7", 'TIMEOUT' => "Webmail session timed out: by %2 (%3) at %4 on %6: %7", 'OUTGOING_MAIL' => "Message sent via webmail: by %2 (%3) at %4 on %6: %7", 'MASS_MAILING' => "Possible outgoing spam: by %2 (%3) at %4 on %6: %7", 'LOGIN_ERROR' => "Failed webmail login: by %2 (%3) at %4 on %6: %7", 'ERROR' => "Webmail error: by %2 (%3) at %4 on %6: %7", ), 'SYSTEM:LOG_ALERT:LOG_AUTH' => array( 'MASS_MAILING' => "Possible outgoing spam: by %2 (%3) at %4 on %6: %7", ), 'FILE' => array( 'LOGIN' => "%6 [%1] %2 (%3) from %4: %7\n", 'LOGOUT' => "%6 [%1] %2 (%3) from %4: %7\n", 'TIMEOUT' => "%6 [%1] %2 (%3) from %4: %7\n", 'MASS_MAILING' => "%6 [%1] %2 (%3) from %4: %7\n", 'LOGIN_ERROR' => "%6 [%1] %2 (%3) from %4: %7\n", 'LOGIN_ERROR' => "%6 [INVALID] %2 (%3) from %4: %7\n", 'ERROR' => "%6 [%1] %2 (%3) from %4: %7\n", ), 'SQL' => array( ), ); $sl_send_alerts = array( ); $sl_mass_mail_limit = 20; $sl_alert_to = array( 'MASS_MAILING' => 'postmaster', 'LOGIN_ERROR' => 'postmaster', 'ERROR' => 'postmaster', ); $sl_alert_cc = array( ); $sl_alert_bcc = array( ); $sl_alert_from = 'noreply@%1'; $sl_alert_subject_template = '[WEBMAIL ALERT] %1 - %2'; $sl_useSendmail = NULL; $sl_smtpServerAddress = NULL; $sl_smtpPort = NULL; $sl_sendmail_path = NULL; $sl_sendmail_args = NULL; $sl_pop_before_smtp = NULL; $sl_encode_header_key = NULL; $sl_smtp_auth_mech = NULL; $sl_smtp_sitewide_user = NULL; $sl_smtp_sitewide_pass = NULL; $sl_log_mass_mailing_show_recipients = 0; $sl_log_mass_mailing_show_from = 1; $sl_log_mass_mailing_show_reply_to = 0; $sl_log_mass_mailing_show_subject = 1; $sl_log_mass_mailing_show_message_body = 0; $sl_log_outgoing_messages_show_recipients = 1; $sl_log_outgoing_messages_show_from = 1; $sl_log_outgoing_messages_show_reply_to = 0; $sl_log_outgoing_messages_show_subject = 1; $sl_log_outgoing_messages_show_message_body = 0; $sl_logfile = $data_dir . 'squirrelmail_access_log'; #$sl_dateformat = 'm/d/Y H:i:s'; $sl_dateformat = 'D M j Y H:i:s T'; $sl_use_GMT = 1; $sl_namelookups = 0; $sl_fail_silently = 1; $sl_insert_event_query = "INSERT INTO user_activity (event, username, domain, remote_address, date, comments) VALUES ('%1', '%2', '%3', '%4', '%5', '%6')"; $only_log_domains = array( 'ERROR' => array('example.com'), ); $skip_domains = array( 'LOGIN' => array('example.com', 'example2.org'), 'LOGOUT' => array('example.com', 'example2.org'), ); Thanks, Alex ------------------------------------------------------------------------------ Own the Future-Intel® Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition, cash, and the chance to get your game on Steam. $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d ----- 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