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


Post Reply 
script help please
Author Message
ChrisJones Offline
Newbie
*

Posts: 9
Joined: Nov 2009
Reputation: 0
Post: #1
script help please
this is what i want to do...
generate a greylist logfile for each domain , this is what the current manual command looks like.
Code:
cat /var/log/syslog | grep domain.co.uk |postgreyreport --nosingle_line --check_sender=mx,a --show_tries --separate_by_subnet=.:===========================================================​====================================\n. >/var/www/virtual/domain.co.uk/htdocs/postgrey.log

i think a command something like this could work
Code:
cat /var/log/syslog | grep $domain |postgreyreport --nosingle_line --check_sender=mx,a --show_tries --separate_by_subnet=.:===========================================================​====================================\n. >/var/www/virtual/$domain/htdocs/postgrey.log

the output really shouldnt be in a public folder unless protected. but im not very good at scripting tbh

at the moment i currenly have a command that lists all domains.
any help would be appreciated
11-14-2009 04:35 AM
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: 2 Guest(s)