LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 12-07-2005, 02:17 PM   #1
thew00t
LQ Newbie
 
Registered: Feb 2004
Distribution: Slackware 9.1 and BSD 5.2
Posts: 28

Rep: Reputation: 16
Question Running commands through recieved e-mail


Hi all, I have an idea but I'm not sure what software supports what I'm trying to do:
I want to have e-mails come into my server and when a particular address (say, foo@bar.com) recieves a message, I want the POP3 server to catch that and send the contents of the message as arguments to a command-line application. Also, for security reasons, I want foo@bar.com to only be able to recieve e-mail from one address, dummy@somewhere.com. Is this possible? If so, what software should I be using. I just downloade SurgeMail (from the makers of DMail) and a look around suggests that it doesn't have this ability.
 
Old 12-07-2005, 03:39 PM   #2
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
In a similar vein was an article in the most recent 2600 Magazine called "reverse remote access," which talked about a client executing a few commands when the proper email was received, allowing an SSH shell to open up, getting around their work's SSH blocks.

I know it's not exactly what you're looking for, but it may give you some ideas
 
Old 12-07-2005, 07:16 PM   #3
chuckbrunson
LQ Newbie
 
Registered: Sep 2003
Location: Colorado
Posts: 1

Rep: Reputation: 0
kicking stuff off via email

I do this all the time and can send you a shell script that'll
show you what to do.

Send me your email address and I'll send it to you.
 
Old 12-08-2005, 02:21 AM   #4
heema
Senior Member
 
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 47
Quote:
Originally Posted by chuckbrunson
I do this all the time and can send you a shell script that'll
show you what to do.

Send me your email address and I'll send it to you.
why dont you post it here ? so that every body can see it

including me
 
Old 12-08-2005, 07:07 AM   #5
Sepero
Member
 
Registered: Jul 2004
Location: Tampa, Florida, USA
Distribution: Ubuntu
Posts: 734
Blog Entries: 1

Rep: Reputation: 33
Yes, I would be interested in a quick eyeball at this script as well.
 
Old 12-08-2005, 08:20 AM   #6
thew00t
LQ Newbie
 
Registered: Feb 2004
Distribution: Slackware 9.1 and BSD 5.2
Posts: 28

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by chuckbrunson
I do this all the time and can send you a shell script that'll
show you what to do.

Send me your email address and I'll send it to you.
I'd be interested to see how this works so expect my address soon.
 
Old 12-08-2005, 01:23 PM   #7
schentor
Member
 
Registered: Jul 2005
Distribution: RHEL, Mint, Ubuntu
Posts: 32

Rep: Reputation: 15
In sendmail you can put an entry in the /etc/aliases file that pipes email addressed to foo to a program or script that can then parse the email. The line would look something like:

foo: "| myprogram"

I'm not sure how this would work with POP, though.
 
  


Reply



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
Incoming mail not recieved in Exim on Debian frappman Linux - Networking 1 11-27-2004 02:27 PM
Running Commands blazted Linux - Newbie 6 11-13-2004 03:49 PM
running commands ./ ?? greendemon Linux - Newbie 4 08-04-2003 09:54 AM
Running commands linuxnewbie001 Linux - Newbie 6 08-01-2003 04:28 PM
automatically running commands... lhoff Linux - General 9 02-21-2002 02:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:49 AM.

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