Loggin mail transfer


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Loggin mail transfer
# 1  
Old 08-07-2001
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  
Old 08-07-2001
Which MTA are use using? Sendmail?
# 3  
Old 08-07-2001
Sorry, I forgot to mention my MTA is sendmail.
# 4  
Old 08-07-2001
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  
Old 08-08-2001
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
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Not able to drop single mail transfer for different conditions.

. /apps01/wls01/Oracle/Middleware/user_projects/domains/soadomain/bin/setDomainEnv.sh > /dev/null cd /apps01/wls01/Oracle/Middleware/wlserver_10.3/common/bin java weblogic.WLST ServerStatus.py > a.log TEST=`cat a.log | grep WARN | wc -l` if ; then `grep "WARN" a.log > 1.txt` mail... (1 Reply)
Discussion started by: kiran_j
1 Replies

2. UNIX for Dummies Questions & Answers

Minimal Mail Server Setup for Local Mail Transfer

I am trying to get stored mail out of an old mail client. I figured that the easiest way to do it is with IMAP by logging in with both clients. I can copy the mail to the server from the old mail client, and back down into the new mail client. Rather than using a real mail account on the... (2 Replies)
Discussion started by: nixie
2 Replies

3. Red Hat

Loggin SFTP activity for chrooted (rssh) users

Hi, I need to log the activity of my SFTP (RHEL 5.4). I have this in /etc/sshd/sshd_config: Subsystem sftp /usr/libexec/openssh/sftp-server -f LOCAL5 -l VERBOSE And this in /etc/syslog.conf: LOCAL5.* /var/log/sftp.log When I log in... (1 Reply)
Discussion started by: Tr0cken
1 Replies

4. Shell Programming and Scripting

loggin in using different user from with in the shell script

Hi, I want to login using different login credentials from with in the shell script. I need to do this so that I can run a second script which can be run using only by that user. eg. #!/bin/bash #login using new user username: password: sh script.bash #logout above... (2 Replies)
Discussion started by: shishirkotkar
2 Replies

5. UNIX for Advanced & Expert Users

loggin remote computer as a super user.

hello all, can i loggin remote computer as a super user(i know root user/passwd) and change his access controlle list. if yes please tell me how to do it, i am new to linux. thank you. (6 Replies)
Discussion started by: zius_oram
6 Replies

6. Solaris

NIS - Client Not loggin in

Friends n Gurus I am creating an NIS farm(Solaris only) in my office. I have successfully configured the NIS master and slave servers and a few NIS clients. However i am not able to log into a few of my NIS clients. The commands "ypcat passwd" is displaying the NIS user. However when i try to... (5 Replies)
Discussion started by: Renjesh
5 Replies

7. AIX

loggin incoming ftp connections in syslog

Hello, we recently configured syslog on one of our machines with the following line in /etc/syslog.conf *.info /audit/syslog.log rotate time 1d compress However it does not seem to be logging incoming ftp connections, only outgoing ftp connections? Is there a way to log incoming ftp... (2 Replies)
Discussion started by: zuessh
2 Replies

8. Solaris

Restricting Multiple loggin sessions

Any idea as to how multiple loggin sessions by the same user (using Hyper terminal/Telnet) be restricted in Sun Solaris 8. Rgds Naushi (10 Replies)
Discussion started by: Naushi
10 Replies

9. Linux

mail transfer

Hi all! How do I transfer mail already stored in /var/spool/mail/xxx to another host ? (without using ftp, rcp or any other kind of copy/archiving utility :) I'm using linux/sendmail Any idea would be greatly appreciated!!! (3 Replies)
Discussion started by: andryk
3 Replies
Login or Register to Ask a Question