Networking Forums

Networking Forums > Computer Networking > Linux Networking > log of rejected messages

Reply
Thread Tools Display Modes

log of rejected messages

 
 
PiEmme
Guest
Posts: n/a

 
      11-03-2003, 11:33 AM
On a Linux Suse server I have a list of senders to REJECT in /etc/mail/access
Where is the log of rejected messages?
 
Reply With Quote
 
 
 
 
ynotssor
Guest
Posts: n/a

 
      11-03-2003, 03:05 PM
"PiEmme" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om

> On a Linux Suse server I have a list of senders to REJECT in
> /etc/mail/access Where is the log of rejected messages?


Usually, in Linux it's /var/log/maillog with a standard /etc/syslog.conf.
You can find all messages that match a particular string, such as "reject"
or "from=username" by using this simple script, invoked as (e.g.) "findmail
reject":

#!/usr/bin/env bash
logfile=`awk '/^mail\./ {print $2}' /etc/syslog.conf`
if [ `grep -l $1 $logfile` ]; then
egrep "`grep $1 $logfile | grep -v pop3d | \
cut -d':' -f 4 | sed -e 's/ //g' | sort | \
uniq | paste -s -d'|' -`" $logfile
else echo "No matches found in $logfile ..."
fi
#########


tony

--
use hotmail com for any email replies



-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
 
Reply With Quote
 
David Efflandt
Guest
Posts: n/a

 
      11-03-2003, 11:08 PM
On 3 Nov 2003 04:33:46 -0800, PiEmme <(E-Mail Removed)> wrote:
> On a Linux Suse server I have a list of senders to REJECT in /etc/mail/access
> Where is the log of rejected messages?


In SuSE the mail log is usually /var/log/mail, or at least that is true
for sendmail 8.11 in 7.3, sendmail 8.12 in 8.0, and postfix in 8.2
(although, postfix also has mail.err, mail.info, and mail.warn).

Try: ls /var/log/mail*

If you are attempting to control worms or spam, rejecting senders is least
reliable, since they are almost always random/forged.

--
David Efflandt - All spam ignored http://www.de-srv.com/
http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
http://cgi-help.virtualave.net/ http://hammer.prohosting.com/~cgi-wiz/
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Onetel webmail log in rejected again since Friday Gel Broadband 0 07-02-2007 02:04 PM
Onetel webmail log in rejected again at mid day Gel Broadband 0 06-07-2007 04:49 PM
Find out why ADSL rejected? db Broadband 4 12-01-2004 12:51 AM
Booo, manual order rejected. Dave Broadband 0 02-25-2004 02:53 PM
iptables: ESTABLISHED,RELATED but some ACK or RST rejected Emmanuel CHANTREAU Linux Networking 1 09-17-2003 08:47 PM



1 2 3 4 5 6 7 8 9 10 11