Yikes - that looks like some major overkill. :) How about a cron entry such as... * * * * * /usr/bin/egrep -i denied /var/log/maillog | /usr/bin/mail -s "mail-relaying `date`" root ? --Jo On Friday 05 March 2004 02:38 pm, Jeffrey Morse wrote: > Here is a very simple scirpt I wrote that checks for mail relaying > attempts against one of my mail servers, the output of the script is > piped to root and roots mail is directed to me via the aliases file. > The script is run daily by cron. > > Hope this helps. > > -jeff > > -----start script----- > > #!/usr/bin/perl -w > > # Run this script daily to check > # for relaying attempts made against > # mail server and mail the results > # to root > > use strict; > > my $log = "/var/log/maillog"; > system( "egrep -i denied $log |mail -s \"mail-relaying `date`\"root"); > > -----end script------ - : send the line "unsubscribe linux-admin" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html