Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Please what will it take me to write a perl full functioning program to filter emails for specific rules? Will that be possible?
Please this is very urgen I need ideas.
The actual thing am trying to get is to write a perl program and attach to a mail server so that, when the mails come in, the perl script get call and then the perl program will let another external program that is not on the server run and check or filter the mails.
But is any other ideas are there, please they are all invited thank you.
Please what will it take me to write a perl full functioning program to filter emails for specific rules? Will that be possible?
Yes, very possible. Although, writing one from scratch seems very pointless, since there are so many programs out there already, that do exactly this.
Quote:
Please this is very urgen I need ideas.
Nope, not urgent for anyone here.
Quote:
The actual thing am trying to get is to write a perl program and attach to a mail server so that, when the mails come in, the perl script get call and then the perl program will let another external program that is not on the server run and check or filter the mails.
But is any other ideas are there, please they are all invited thank you.
What 'other ideas' do you want?? Perl can easily do all of this, and has modules specifically written for POP/IMAP mail handling. Regex handling is built in. But when you say "mails come in, the perl script get a call"....not going to happen. The mail server isn't going to run your perl (or whatever other) program for you....that's why there are many mail-checking applications already out there. You can write that as part of your perl program, to check your incoming emails every so often, and do what you want if new ones come in.
Thank you for the reply. But what I am looking for is not a spam program, though that is also good.
When you look at MDaemon, there is a content filter rule that, if a mail header contain to:someone@thisdomain then run a program. Their is an external program and I am looking for a way to put in a rule that, ok let this program run when a match is found.
I hope you got the ideas?
Thank you for the reply. But what I am looking for is not a spam program, though that is also good.
When you look at MDaemon, there is a content filter rule that, if a mail header contain to:someone@thisdomain then run a program. Their is an external program and I am looking for a way to put in a rule that, ok let this program run when a match is found.
I hope you got the ideas?
Sorry, what you wrote makes no sense.
You say yourself that mdaemon has a content filter rule, that if a condition is met, an external program runs. Which is what you're asking for, but you say that mdaemon won't work. (????)
Mdaemon already does what you're wanting, as would ANY other spam filter. Spam is filtered by many means, regex being one of them. Define your own conditions, and you're done.
I am only base my idea on what MDaemon has. There is a program in another box that will run to see if the incoming mail sender is in the database or not.
So I am looking for a way to make the mail server run that external program and base on the result to take action.
I am only base my idea on what MDaemon has. There is a program in another box that will run to see if the incoming mail sender is in the database or not.
So I am looking for a way to make the mail server run that external program and base on the result to take action.
As previously said, mail servers do not run external programs. If you want it to, then grab the source code for postfix/sendmail/whatever, and add your functionality into it.
Otherwise, the mail servers CAN work with anti-virus/spam filter programs, which already have what you're looking for. Again, what you're wanting to do has already been done, numerous times.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.