LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 09-26-2004, 07:37 AM   #1
pembo13
Member
 
Registered: May 2003
Location: Caribbean
Distribution: Fedora Core2
Posts: 403

Rep: Reputation: 30
How to run a command on new mail for a user?


Hello,

I have a simple Postfix+MySQL virtual mailbox setup with a virtual transport system. I've not yet setup content filtering (i'm waitng for updated amavis-new and spamassassin rpms for FC2) nor do I comprehend it yet. I'm setting up a php mailinglist app (Mailgust) which requires that url (php script) be called every time mail comes in for the mailgust email account, a logical requirement.

However they only provided a sample with procmail as the local delivery agent with a script as one as bellow:

:0 c
* ^TO.*mglist@mailgust.org
| /usr/bin/wget -O /dev/null http://www.mailgust.org/forum/index.php?method=cron&

Based on my understanding, maildrop is very much like procmail and can be used with Postfix. So I switched my trasport from virtual to maildrop, but maildrop was not recognizing my users. Fair enough since my users are virtual and so are in a MySQL table.

So then, what's the easiest way to get this functionality with postfix and the virtual trasnport? I've considered a simple cron job, but that solution is over simple to the point of wasted cpu usage, and as such is my last resort.

Please advise
Arturo
 
  


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
run command as user BFEINZIMER Linux - Newbie 9 08-24-2005 10:21 PM
run mount command as user paul_mat Linux - Newbie 1 12-14-2004 06:28 PM
Switch to another user, get his env and run a command 'under his name' ganninu Linux - General 2 05-25-2004 02:26 PM
run command as alternate user joeca Linux - General 1 08-06-2003 04:31 PM
Is their a way to run a command as root..or another user.. in php BaerRS Programming 2 04-25-2002 02:38 PM


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

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration