"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! =-----