command "imsconnutil -a" can't get the smtp auth log

Hi

there is the imsconnutil result

UIDIMAP last accessHTTP last access POP last access

=============================================================================== ====================

admin-NOT-RECORDED- 15/Aug/2006:20:19:19-NOT-RECORDED-

test-NOT-RECORDED- 17/Aug/2006:18:44:4718/Aug/2006:12:07:01

is there any way to find the smtp access log. any help is preciate.

[414 byte] By [jack@armsun.net] at [2007-11-26 9:33:41]
# 1

Hi Jack,

The imsconnutil command doesn't provide information on SMTP transactions - only for client pop/imap/http connections which access the mail-store. This information is stored within the SMTP logs of the server that the user uploaded the email to.

What information in particular were you after? (who logged in and when?)

I'm sure it should be fairly straight-forward to parse out the information you need. The following doco lists the various flags and their meanings. You would be looking for log lines containing A e.g. ESA - "Successful enqueue with TLS and SASL (security and authentication)"

http://docs.sun.com/app/docs/doc/819-2650/6n4u4dtv9?a=view

Cheers,

Shane.

shane_hjorth at 2007-7-7 0:21:49 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 2

Hi Cheers,

thanks very much!

> What information in particular were you after? (who

> logged in and when?)

Both who logged in and when I want.

I edtied /opt/sun/messagging/config/imta.cnf

! tcp_local

tcp_local logging smtp mx single_sys remotehost inner switchchannel identnonenumeric subdirs 20 maxjobs 7 pool SMTP_POOL maytlsserver maysaslserver saslswitchchannel tcp_auth missingrecipientpolicy 0

tcp-daemon

I can't get what i want too.

Could you tell me why ? Thanks!

jack@armsunnet at 2007-7-7 0:21:49 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 3
oh , I change imta.cnf defaults logging notices 1 2 4 7 copywarnpost copysendpost postheadonly noswitchchannel It worked and i get more I want .
jack@armsunnet at 2007-7-7 0:21:49 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 4

Hi,

You should probably also enable the following two settings (add these lines to option.dat)

LOG_USERNAME=1

LOG_CONNECTION=1

LOG_MESSAGE_ID=1

Although that add more logging they are useful to have especially if you need to debug connections etc. Explanations on each setting is available from the link I provided earlier.

Cheers,

Shane.

shane_hjorth at 2007-7-7 0:21:49 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 5

>

> LOG_USERNAME=1

> LOG_CONNECTION=1

> LOG_MESSAGE_ID=1

Hi, Cheers, you are kindly and careful. thanks!

I have fogetted wrote thes.

And and these two lines is able to obtain who login and login from where in mail.log_current

LOG_USERNAME=1

LOG_CONNECTION=1

jack@armsunnet at 2007-7-7 0:21:49 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 6

Hi,

> And and these two lines is able to obtain who login

> and login from where in mail.log_current

> LOG_USERNAME=1

> LOG_CONNECTION=1

Thats correct - the default level of logging doesn't provide this information so the additional options are required based on your original requirement to track who logged in (and from which IP).

Shane.

shane_hjorth at 2007-7-7 0:21:49 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...