LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-11-2005, 11:34 AM   #1
waquner
LQ Newbie
 
Registered: Dec 2005
Posts: 2

Rep: Reputation: 0
"Trigger" when fetching mails via pop


Hi,

Im currently using courier as POP3 server to get my mails from my server and thinking about doing something like the GMX spamreport.
I don't if you "not german" guys know gmx, so i'll describe the spamreport shortly: gmx is a mail service and the first time per day you ask for mails via pop, an spamreport is generated an send to you along with "normal" mails. so you only get one every day.

Im wondering how this works and want to do a similar thing for a project of mine. So how can you start a program wenn somebody ask the server for mails via pop3?
When receiving emails with postfix you can easily set

Code:
mailbox_command = procmail ...
and procmail then does what you told it to do. How can this be done with an POP server like courier?

thanks in advice!

Greets from austria,
waquner

Last edited by waquner; 12-11-2005 at 11:35 AM.
 
Old 12-16-2005, 02:34 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Well, I would start by reading the courier docs and see if there is a hook for it there like postfix...

You can also write a wrapper script to call the command. For example:

I use popper on my system so, I move popper to popperX and create a bash script called popper:
Code:
#!/bin/bash
# run your gmx program
/usr/bin/gmx
# now run the 'real' popper
/usr/bin/popperX
However, this will not work if you run your pop3 in server mode, rather than from xinetd or whatever.
 
  


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
unable to send mails via KMail: "no worthy mechs" hbruhn Linux - Networking 5 12-24-2006 07:56 PM
Amavis "makes SPAM" of my Mails liqui Linux - Software 1 12-02-2005 03:44 AM
"trigger" required when a host joins the WLAN or leaves (newbie) deepesh8214 Linux - Wireless Networking 0 09-14-2004 02:15 AM
Fedora first update hangs on "Fetching rpm header: glibc-2.3.2-101.4" Darthomir Fedora 24 04-10-2004 11:53 AM
Fedora first update (with RH NetW) hangs on "Fetching rpm header: glibc-2.3.2-101.4" Darthomir Red Hat 5 03-15-2004 05:04 PM

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

All times are GMT -5. The time now is 05:36 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