Current time: 11-27-2024, 10:31 AM Hello There, Guest! (LoginRegister)


Post Reply 
script help please
Author Message
Knut Offline
Member
***

Posts: 736
Joined: Nov 2006
Reputation: 10
Post: #2
RE: script help please
short and untested:

Code:
#!/bin/bash

FOLDER="/var/mail/virtual/"

for domain in $(ls $FOLDER); do
  if test -d /var/www/virtual/$domain/htdocs; then
    echo "Report for Domain $domain"
    cat /var/log/syslog | grep $domain |postgreyreport --nosingle_line -check_sender=mx,a --show_tries > /var/www/virtual/$domain/htdocs/postgrey.log
  fi

done

Knut
(This post was last modified: 11-14-2009 03:53 PM by Knut.)
11-14-2009 03:53 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
script help please - ChrisJones - 11-14-2009, 04:35 AM
RE: script help please - Knut - 11-14-2009 03:53 PM
RE: script help please - ChrisJones - 11-15-2009, 02:51 PM
RE: script help please - Knut - 11-15-2009, 03:27 PM
RE: script help please - ChrisJones - 11-16-2009, 09:59 PM
RE: script help please - Knut - 11-16-2009, 10:02 PM
RE: script help please - ChrisJones - 11-16-2009, 10:37 PM

Forum Jump:


User(s) browsing this thread: 4 Guest(s)