Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

That's great if you're talking a mail server... (was Re: A Beginner's Guide to Using Mail::Audit and Mail::SpamAssassin)

by atcroft (Monsignor)
on Jul 09, 2002 at 02:32 UTC ( #180382=note: print w/ replies, xml ) Need Help??


in reply to A Beginner's Guide to Using Mail::Audit and Mail::SpamAssassin

Great tutorial, but what if you're one of those people who aren't quite lucky enough to be able to run a mailserver to handle the mail? Is there a good way, such as a client/agent-like program that could go out and do much of the same functionality, deleting the message or leaving it, possibly sending a rejection message? I found several good modules for filtering, but it seems most all of them require local delivery....

Any suggestions? guidance? hints?

Update: hossman, thank you for responding. My experience with fetchmail has been to download mail to a local machine that could act like a mailserver, even if it wasn't visible to the outside world, although I may be mistaken in assuming it was limited only to that functionality.... I was looking for something that could possibly even work for those in windows or mac who don't have the capability, but will look again at the tutorial and docs. Again, my thanks for your reply and attention.

Update: FoxtrotUniform, your response does help. I was not aware of that aspect of Mail::Audit, although I knew about several of the POP3-related modules. My idea was more along the lines of a stand-alone agent that would only delete , delete w/ a rejection, or leave in place for acceptance that could run at intervals... if that would be a useful idea....


Comment on That's great if you're talking a mail server... (was Re: A Beginner's Guide to Using Mail::Audit and Mail::SpamAssassin)
Re: That's great if you're talking a mail server... (was Re: A Beginner's Guide to Using Mail::Audit and Mail::SpamAssassin)
by hossman (Prior) on Jul 09, 2002 at 03:05 UTC
    Nothing I saw in the tutorial requires you to be running a mail server, the author even mentions using fetchmail, which is a POP client for pulling email off of a remote server. You can configure fetchmail to POP mail on regular intervals and pass it to any filtering program you want.
Re: That's great if you're talking a mail server... (was Re: A Beginner's Guide to Using Mail::Audit and Mail::SpamAssassin)
by FoxtrotUniform (Prior) on Jul 09, 2002 at 03:25 UTC

    I'm not sure exactly how much this helps you, but Mail::Audit takes its input on STDIN, and the two usual ways for remote clients to talk to mail servers, IMAP and POP3, are represented in CPAN. It shouldn't be difficult to write a Perl script to grab your mail and run it through whatever you please... the difficulty, to my mind, would be getting your mailreader to play nicely with Mail::Audit, which AFAIK only writes to various Unixy formats of mailbox.

    Update: You should be able to download a copy of each message via IMAP, filter it through Mail::Audit and/or friends, and based on the results keep it, move it around, or delete it, also via IMAP (or more specifically, via Mail::IMAPClient).

    --
    The hell with paco, vote for Erudil!
    :wq

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://180382]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (14)
As of 2014-10-24 15:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (132 votes), past polls