how to automate incoming mail processing


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers how to automate incoming mail processing
# 1  
Old 11-03-2008
how to automate incoming mail processing

Hi All,

I require to develop some script which will continuously be looking for mails from some specific mail addresses on AIX server. Once any such mail arrives, the process will look into the mail subject and mail body to search for some keywords like success or failure, filename etc. Depending on the success or failure, the processing of some other script, already present on server, will be kicked off.

Can you please guide me how to develop such script. Any help will be greatly appreciated.
Thanks
Vivek
# 2  
Old 11-04-2008
Have a look into fetchmail and procmail maybe.
# 3  
Old 11-13-2008
I cant find both of these on my systems. I am using AIX 5.2.
Is there any way to do it using mailx and shell scripts. Thank You.
# 4  
Old 11-13-2008
Fetchmail package for AIX:
AIX PDSLIB Package: fetchmail

Procmail package for AIX:
AIX PDSLIB Package: procmail

Or compile the sources yourself. You can also have a look at IBM's repository if they offer compiled versions too (don't have the link at hand - they change twice a day anyway Smilie Smilie )
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Programming

awk processing / Shell Script Processing to remove columns text file

Hello, I extracted a list of files in a directory with the command ls . However this is not my computer, so the ls functionality has been revamped so that it gives the filesizes in front like this : This is the output of ls command : I stored the output in a file filelist 1.1M... (5 Replies)
Discussion started by: ajayram
5 Replies

2. Debian

Forward a specific incoming mail to a user

Hi There Not sure if this is the correct place for this. I'm running Sendmail on a Debian box and want to do the following. e-mail comes in from userk@domain.co.za and is destined for usera@mydomain.co.za, but i want all mail from userk@domain.co.za to go to userb@mydomain.co.za. Sendmail... (3 Replies)
Discussion started by: linuxjunkie
3 Replies

3. Shell Programming and Scripting

How to make parallel processing rather than serial processing ??

Hello everybody, I have a little problem with one of my program. I made a plugin for collectd (a stats collector for my servers) but I have a problem to make it run in parallel. My program gathers stats from logs, so it needs to run in background waiting for any new lines added in the log... (0 Replies)
Discussion started by: Samb95
0 Replies

4. Linux

incoming mails not coming

I am using Linux box. i am able to send mails through sendmail to local and other domains. i am not receving any incoming mails. dovecot service is running. (4 Replies)
Discussion started by: harishindn
4 Replies

5. Shell Programming and Scripting

mail script to automate

Hi, Here below the logs from the mail server: less /var/log/messages: Sep 6 04:03:31 server-59 out: 1252227811|webmaster@zilia.com|antonino.granata@gmail.com|2175|success|1 Sep 6 04:03:33 server-59 in: 1252227813|news@tarot.com|junk@thess.com|30376|success|1 Sep 6 04:03:35 server-59... (8 Replies)
Discussion started by: gsiva
8 Replies

6. Shell Programming and Scripting

Incoming mail Alert !!

Hi, If I am getting any new mail in my mail box I need an alet message . Please help me to get the script .. (1 Reply)
Discussion started by: pranabrana
1 Replies

7. IP Networking

handling incoming messages

I have a few clients connecting to the server(which is using select()) and theyre trying to send messages to each other. How do I wait for input on stdin and at the same time I wait for data to being sent from the server? Should I use select() in my client too? How exactly though? (1 Reply)
Discussion started by: charlitos
1 Replies

8. UNIX for Dummies Questions & Answers

Check incoming mail to sendmail

I'm trying to find a command to check what mail is being sent to my sendmail server... Can't seem to find it... anyone know how to do this? (1 Reply)
Discussion started by: kingdbag
1 Replies

9. Shell Programming and Scripting

Processing inbound mail

Hi All Has anyone written any script that would listen for inbound mail and based on its subject process the body ? Thx J (3 Replies)
Discussion started by: jhansrod
3 Replies
Login or Register to Ask a Question