04-09-2012
Scan all mail messages through the server and save a copy into file system following a rule
In our company we work for our customer with a job# philosophy, managing all the informations about a job in a share with directories whose name is starting with job number. Under this entry point we have a standard structure of folders, comprising a "communications" folder.
When we send emails concerning a job, in the subject we put first of all 4 digits representing the job number. I need to save automatically a copy of these messages into the correct place, despite of sender or destination/s.
Now, I know the first step has to be the management of messages passing the smtp (postfix) analizing the subject to find the four digits. First idea could be modify the spamassassin filters/rules to get the work done, but something is telling me it's not a so good idea. So, here the first question: what's the correct place to interact with postfix having the message dubbing? Also thought about aliases, but I'm not sure it's possible messages dubbing instead of redirecting.
After this, a perl or php script can surely do what I need, but this will be next novel.
Thanks to anyone could be interested in this trial.
Ciao, Roberto
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi
I am newbie for unix. I want to copy few line opened in vi editor (not whole file) and save it some where else. It is like copy and paste but data is quite big . Is there any command i can use in vi to copy data and save it somewhere else.
Thanks
ukadmin (3 Replies)
Discussion started by: ukadmin
3 Replies
2. Shell Programming and Scripting
Hello!
Please, help me to find or write this simple bash-script.
I have first folder
/tmp/work/folder1
with such files:
name1.txt
name2.txt.1
name2.txt.2
name3.txt
name4.txt
name4.txt.1
name4.txt.2
name4.txt.3
etc..
I need to copy all files from folder1
to folder... (1 Reply)
Discussion started by: optik77
1 Replies
3. UNIX and Linux Applications
Hello, everybody!
I have a MX server (sendmail) and old pop3 server, I installed a zimbra server and I want to receive mail traffic to several mail server (old and Zimbra). How I do it on Postfix(Zimbra if will be a MX for my domain) or Sendmail? (0 Replies)
Discussion started by: Rezonans
0 Replies
4. Shell Programming and Scripting
Hi Guys
I want to write a script which search mail with subject line and after that I want the mail content in a file
please help guys.
Thanks
Atul Singh (3 Replies)
Discussion started by: atul9806
3 Replies
5. UNIX for Dummies Questions & Answers
Hi all,
So I am on server 1, and I want to grab the newest file from a particular directory on server 2, and place this in a directory on server 1.
I am trying to use: ls -tr | tail -1
This works, and gets me the newest file in a particular directory. Using svn `ls -tr | tail -1` etc I... (1 Reply)
Discussion started by: Lexx87
1 Replies
6. UNIX Desktop Questions & Answers
Hi All,
I' m having a pretty strange issue, when I sent an outlook email that is forwarded by rule for example (email sent every day at certain time) to the server is not going through, i cant see it arriving at the Maildir or i have also a procmail rule log that also not reaching... could... (0 Replies)
Discussion started by: Skyline88
0 Replies
7. Shell Programming and Scripting
Hi ,
Is there any script to copy a files (weblogic bianary + silent.xml ) from one server (linux) to another servers and then execute the copy file.
We want to copy a file on multiple servers and run the installation.
Thanks (1 Reply)
Discussion started by: Nawrajesh
1 Replies
8. Red Hat
Hi
Please I dont have a lot of redhat skills, but I need some help on creating a file system.
I need to rescan for this new LUN, so I try to check existing LUNs:
fdisk -l
Disk /dev/sda: 299.4 GB, 299439751168 bytes
255 heads, 63 sectors/track, 36404 cylinders
Units = cylinders of... (8 Replies)
Discussion started by: fretagi
8 Replies
9. Shell Programming and Scripting
Hi
What I'm trying to do(manually) is logging into the server
and running the below mentioned commands
ls /sys/class/scsi_device/ | while read i; do echo "- - -" > /sys/class/scsi_device/$i/device/rescan;done
lsblk
echo -e "o\nn\np\n1\n\n\nw" | fdisk /dev/sdd
partx -a /dev/sdd1... (7 Replies)
Discussion started by: James0806
7 Replies
LEARN ABOUT DEBIAN
globus-job-clean
GLOBUS-JOB-CLEAN(1) GRAM5 Commands GLOBUS-JOB-CLEAN(1)
NAME
globus-job-clean - Cancel and clean up a GRAM batch job
SYNOPSIS
globus-job-clean [-r RESOURCE | -resource RESOURCE]
[-f | -force] [-q | -quiet] JOBID
globus-job-clean [-help] [-usage] [-version] [-versions]
DESCRIPTION
The globus-job-clean program cancels the job named by JOBID if it is still running, and then removes any cached files on the GRAM service
node related to that job. In order to do the file clean up, it submits a job which removes the cache files. By default this cleanup job is
submitted to the default GRAM resource running on the same host as the job. This behavior can be controlled by specifying a resource
manager contact string as the parameter to the -r or -resource option.
By default, globus-job-clean prompts the user prior to canceling the job. This behavior can be overridden by specifying the -f or -force
command-line options.
OPTIONS
The full set of options to globus-job-clean are:
-help, -usage
Display a help message to standard error and exit.
-version
Display the software version of the globus-job-clean program to standard output.
-version
Display the software version of the globus-job-clean program including DiRT information to standard output.
-resource RESOURCE, -r RESOURCE
Submit the clean-up job to the resource named by RESOURCE instead of the default GRAM service on the same host as the job contact.
-force, -f
Do not prompt to confirm job cancel and clean-up.
-quiet, -q
Do not print diagnostics for succesful clean-up. Implies -f
ENVIRONMENT
If the following variables affect the execution of globus-job-clean.
X509_USER_PROXY
Path to proxy credential.
X509_CERT_DIR
Path to trusted certificate directory.
University of Chicago 03/18/2010 GLOBUS-JOB-CLEAN(1)