The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to forward mail in /var/mail/username to external mail unitipon SUN Solaris 2 05-27-2008 01:20 AM
Bourne Shell script - log for users loggin on and off noodlesoup Shell Programming and Scripting 14 09-08-2006 11:30 PM
loggin incoming ftp connections in syslog zuessh AIX 2 05-31-2006 06:07 PM
Restricting Multiple loggin sessions Naushi SUN Solaris 10 06-09-2005 08:13 PM
mail transfer andryk Linux 3 08-27-2004 09:09 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-07-2001
Ben Ben is offline
Registered User
  
 

Join Date: Aug 2001
Posts: 3
Loggin mail transfer

Hi Folks,

I'm trying to log incoming and outgoing messages on my Solaris box.

I thought I could use 'mail.info /var/log/maillog' in my syslog.conf but it doesn't give any output. mail.debug does but only seems to log client connections to the server and the odd message ID.

Is there a way to log each mail transaction that comes through the server?

Cheers, Ben
  #2 (permalink)  
Old 08-07-2001
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,731
Which MTA are use using? Sendmail?
  #3 (permalink)  
Old 08-07-2001
Ben Ben is offline
Registered User
  
 

Join Date: Aug 2001
Posts: 3
Sorry, I forgot to mention my MTA is sendmail.
  #4 (permalink)  
Old 08-07-2001
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,731
syslog.conf example

This syslog.conf file logs sendmail transactions just fine for us:

Quote:
# /etc/syslog.conf
# For info about the format of this file, see "man syslog.conf" (the BSD man
# page), and /usr/doc/sysklogd/README.linux.
#

*.=info;*.=notice /usr/adm/messages
*.=debug /usr/adm/debug

# We don't log messages of level 'warn'. Why? Because if you're running
# a news site (with INN), each and every article processed generates a
# warning and a disk access. This slows news processing to a crawl.
# If you want to log warnings, you'll need to uncomment this line:
#*.warn /usr/adm/syslog
*.err /usr/adm/syslog

#
# This might work instead to log on a remote host:
# * @hostname
~

  #5 (permalink)  
Old 08-08-2001
Ben Ben is offline
Registered User
  
 

Join Date: Aug 2001
Posts: 3
Thanks for that Neo.

I don't know why it didn't work in the first place as that's what I already had.

I think I just needed to 'touch maillog'.

Cheers, Ben
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:43 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0