Hi,
>> What is the 0: that it is printing in the beginning, after the
>> hostname (email1)?
>
> Try:
>
> 'SYSTEM:LOG_INFO:LOG_MAIL:squirrelmail:LOG_ODELAY | LOG_PID'
This appears to have worked, but prints an extra datestamp at the end
of the line?
Mar 29 22:01:59 email1 squirrelmail[29529]: Successful webmail login:
by 16105 (prop.example.com) at 173.20.226.208 on Mar 29 22:01:59:
I've included my config again in case I've screwed something up:
<?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',
'RESTRICT_SENDERS',
'LOCKOUT',
);
$sl_logs = array(
'SYSTEM:LOG_INFO:LOG_MAIL:squirrelmail:LOG_ODELAY | LOG_PID' => 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",
'RESTRICT_SENDERS' => "Failed recipient limit: by %2 (%3) at
%4 on %6: %7",
'LOCKOUT' => "Webmail login page abuse: 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 j H:i:s';
$sl_use_GMT = 0;
$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'),
);
------------------------------------------------------------------------------
Own the Future-Intel(R) 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://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
-----
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