LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-05-2004, 01:27 AM   #1
pembo13
Member
 
Registered: May 2003
Location: Caribbean
Distribution: Fedora Core2
Posts: 403

Rep: Reputation: 30
run command with maildrop


Hello,

I would like to know if it is possible to run a command, with parameters (a wget actually) based on what address an email was sent to.

I'm running Postfix+Courier-IMAp+MySQL with a virtual mail setup, and based on what I've seen in my configs, I'm usign maildrop for local delivery to my maildirs.

I can't seem to locate a maildroprc file however.

Please advise.
Thank you.
 
Old 03-08-2005, 04:27 PM   #2
Ateo
Member
 
Registered: Sep 2004
Location: Long Beach, CA
Distribution: FreeBSD,Ubuntu,Gentoo,MacOS
Posts: 139

Rep: Reputation: 15
Maildrop will deliver mail with or without maildroprc. If it doesn't exist, it'll deliver the message without any filtering. This file can be created so that you can filter. I'm not sure where your particular instance of maildrop checks for maildroprc (you'll need to find that out) but you'll need to create it there. And yes, you can run commands from this script. It's syntax is much like perl but it's *not* perl.

Commands would be typed out as you would in a bash script except it needs to be encapsulated with back ticks. EX: `wget URL_PATH`
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Command to run another command against a list of files psweetma Linux - General 3 11-09-2005 05:29 PM
Postfix, Maildrop help Dasha Linux - General 3 03-08-2005 04:22 PM
problem with maildrop I think jrafalek Linux - Software 1 03-08-2005 03:40 PM
Spamassassin & Maildrop Dasha Linux - General 0 10-06-2004 12:08 AM
Maildrop is giving me a headache LiquidKernel Linux - Software 2 09-15-2004 07:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration