LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-21-2011, 09:15 AM   #1
Threesa
LQ Newbie
 
Registered: Mar 2011
Posts: 1

Rep: Reputation: 0
Question Cent OS run script on incoming e-mail from specific (external) mail


Hi everybody!

We are running a server (Cent OS based) that we use as an Asterisk server.

Also the server handles some mails for the telephony system etc.
Now we have a specific need, that if the server receives an incoming mail from a specific address (external address), we want a script to start, preferable would be a PHP script (PHP is installed on the server).

What would we need and what do we need to do?
The server has Dovecot running, if that might help.
What other info do you need?

Kind regards,
Dennis
 
Old 03-21-2011, 02:54 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,214
Blog Entries: 1

Rep: Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067
Hi and welcome to LQ

If you want to run the script based on the sender's address, then you should use procmail. See here for an example.

Regards
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make Sendmail forward all incoming mail to localhost port 26 (Domino mail) speedgelb Linux - Software 3 09-27-2013 11:18 AM
reading incoming mail for script angga Programming 1 09-17-2010 05:57 AM
Limit Incoming Mail to Specific Users barriger Linux - General 1 04-17-2005 11:22 PM
How to separate Incoming Mail and Outgoing Mail on SENDMAIL LiloAma Linux - Networking 1 03-22-2004 03:24 AM
Postfix mail server not accepting incoming mail from the external interface rexmundi Linux - Networking 7 12-22-2003 04:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:33 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
Open Source Consulting | Domain Registration