Sponsored Content
Full Discussion: UNIx junk emails
Top Forums UNIX for Dummies Questions & Answers UNIx junk emails Post 302099890 by silicate on Thursday 14th of December 2006 12:56:59 PM
Old 12-14-2006
How does the email getting sent to the junk folder look? Does it contain, subject, properly formatted body, from, to , and return path? The server is going to check the message for these things and others depending on the configuration and if they are missing or certain keywords pop it will consider the message spam, or junk in this case.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Sending Emails to a unix process

Hi , I need to have a unix process which is setup to read all incoming mail for some user and process the same. How tough it is to code the same.Is there any way that we can download some shell scripts for the same from some internet site Kindly help. (2 Replies)
Discussion started by: xsriniva
2 Replies

2. UNIX for Advanced & Expert Users

Unix emails in Windows

Hello, How can I convert Unix emails w/attachments to a Outlook PST file? (3 Replies)
Discussion started by: dti650
3 Replies

3. Shell Programming and Scripting

Identify records having junk characters in unix

Hi Friends, I need to have a command in Unix which output all teh records havingg junk characters in a file.... I know a command cat -tv <Filename> which opens the file and we can check for any junk character in it. But my requirement is to fetch ONLY THOSE records having junk characters.... (6 Replies)
Discussion started by: sureshg_sampat
6 Replies

4. UNIX for Dummies Questions & Answers

Sending Outgoing Emails from Unix Server

the server i have here is a Ubuntu server. it has nagios on it. after setting up nagios and having it work as it should, i realized at the very end of all my work that obviously nagios will also need to send out email alerts to a set of email addresses that it has in its database. my problem... (1 Reply)
Discussion started by: SkySmart
1 Replies

5. AIX

Need help on sending emails to Lotus Notes from Unix

Hi, I am new to UNIX and any help is greatly appreciated. Requirement: Need to check the directory and if the directory has some files then an email needs to be sent to the email ID on Lotus Notes. I need help on sending an email to email ID on Lotus Notes notifying that the files... (3 Replies)
Discussion started by: neetutg
3 Replies

6. UNIX for Dummies Questions & Answers

XML file shows Junk Characters in UNIX

Hello sir, I have generated XML file from VS 2005. It works well in windows but it shows some junk characters in unix. Can any help me with this problem. Thank you in advance. Hema (6 Replies)
Discussion started by: hemavenkatesh
6 Replies

7. Shell Programming and Scripting

Mailx Emails are going to Junk, How to stop them?

I wrote a shell script, the result to be Emailed. So I used mailx command in my Script. But the mail was going to Junk folder. Is there any troubleshoot for this? the mail was coming as username@hostname.com (3 Replies)
Discussion started by: karumudi7
3 Replies

8. UNIX for Dummies Questions & Answers

Archived Emails in UNIX Executable Files

Hello, A while back someone"archived" my emails for me, so I didn't have to worry about my email account filling up with emails. I need to get back into those emails and view them. When I opent the folder it has several files. The largest being an "mbox", which I am assuming has all of... (3 Replies)
Discussion started by: shaffer1921
3 Replies

9. UNIX for Dummies Questions & Answers

Parsing UNIX emails

Hi all, I am new to unix and I have a requirement to develop a shell script which does the following:- Check for email from a particular user If found, copy the attachment in the mail to a particular directory. Delete the email. Any help, pointers are really appreciated. Thanks (3 Replies)
Discussion started by: esgovi1234
3 Replies
YAMPLE(1)						User Contributed Perl Documentation						 YAMPLE(1)

NAME
Yample - Yet Another Mail Processing Language. DESCRIPTION
Yample is an MDA - a mail delivery agent. It accepts a message via standard input and stores this message in a maildir or in a mbox. Yample tries to incorporate the power of Perl and Mail::Internet, Mail::Spamassassin and the other Mail modules whilst maintaining an friendly syntax. Yample was written due to a personal conflict with Procmails syntax. Look at the following lines, taken from "man procmailex"; :0 c * ^From.*peter * ^Subject:.*compilers ! william@somewhere.edu :0 A petcompil This can be implemented like this in Yample; sender(peter) and subject(compilers) unseen resend(william@somewhere.edu) sender(peter) and subject(compilers) mbox(petcompil) OPTIONS
--help Help! --mailbase <maildir> This option is prepended to any destinations you have. Default is ~/Maildir/. --logfile Yamples logfile. Default is ~/.yample/log. --loglevel <0-4> Loglevel. 4 - Debug, 3 - info, 2 - warnings, 1 - errors, 0 - nothing. --spamassassin Load Mail::Spamassassin and run the mail through it. --spamc Run the message through spamc. Yample will look for spamc in the $PATH unless you set --spamc-path. --spamc-path /path/to/spamc Where spamc resides. --dubdb <file> The message id database - used for duplicate suppression. --rules <file> The rule file. FILES
~/.yample/rules This file contains the rules which Yample uses to sort mail. Yample reads the mail from STDIN and then processes the rules, one by one. The rules consists of two parts; condition(s) and target. There is an implicit if .. then .. else between every rule. Please see the exam- ples futher down. In the conditions which take a regular expression as a parameter you can use grouping to extract parts of the text and utilize this in the sorting. Like this: "subject((.*)) and rcpt(user@foo.org): reject(Your message with subject $1 was rejected)". Cool, eh? NOTE: We replace "/" and "." with "_" in grouped strings to make sure there won't be any funny business. Yample::Rules This package contains subroutines which handle the individual rules. The rules are transformed into perl code which will call these methods to decide what to do with the message. dup() Detects duplicates. rcpt() The rcpt rule matches against the To- and Cc-headers. sender() The sender rule matches against the From-header. subject() Matches on the subject of the message. list() If Yample can load Mail::Listdetect then list() can be used to match against the name of the mailing list (unless the mailing list server is completely lame). You can use this rule like this: list((.*)): maildir(.lists.$1) head() Match against a arbitrary header. Note the caret (^) head(^X-Spam-Flag: YES): maildir(.junk.spam) head(^X-Infected:): maildir(.junk.virii) spam() If Yample loads Spamassassin (and runs the message through it) you can use spam() to determine the status of the message. perl() Run arbitrary perl code. Unless you are some sort of pervert you would not use this for anything but testing and debugging Yample. Yample::Actions Action dispatcher class. All the targets are defined here. maildir() Stores the message in a UW-style maildir more or less as defined per RFCXXXX. mbox() Delivers mail to a standard Unix mailbox. Parameters: The mailbox where the message is to be delivered. resend() Parameters: Where the message is to be forwarded. reject() Reject the message. This normally forces your mail server to create a bounce and mail this to the original sender. Parameters: Error message. This message will probably be included in the bounce generated. ignore() Ignore the message silently. Parameters: none reply() Reply to the message. Parameters: The body of the reply. pipe() Parameters: The command which is message is to be piped into. Executed through "/bin/sh -c". ~/.yample/dupdb Yamples database of message IDs. Yample uses this to supress dupicate messages (see dup() rules). ~/.yample/log Your own personal logfile. You might want to use logrotate or similar programs to make sure it does not grow to big. ~/.forward Usually, your mail server looks for a file in your home directory called ".forward". This file contains information how your mail server should deliver your mail. If you want Yample as your MDA your .forward should look like this: |/full/path/to/yample EXAMPLES
# throw away virii head(^X-Infected:): ignore() # throw away spam with a score higher than 8 head(^X-Spam-Score: d+.d+ (+{8,}) # The rest of the spam, tagged by spamassassin head(^X-Spam-Flag: YES): maildir(.junk.spam) dup(): maildir(.junk.duplicates) # auto-sort lists - requires Mail::Listdetect list((.*)): maildir(.lists.$1) sender(@fjase.net) and subject(Backup report): maildir(.backup_reports) # catch-all perl(1): maildir() VERSION
Yample 0.30 AUTHOR
Per Andreas Buer <perbu (at) linpro.no> PREREQUSITES
Yamples needs the following perl modules. Please download from CPAN, Yamples home page or other sources. Mail::Internet Mail::Send Text::Balanced Yample also uses these modules - but they are in the Perl distribution so they should always be there. Pod::Usage POSIX Sys::Hostname IO::File IPC::Open2 BUGS
Yample with Spamassassin, Mail::ListDetector and the other bells and whistles is quite heavy. Please report bugs and functionality requests to the author. Yample lacks (as of now) LMTP and IMAP support. Both should be fairly easy to implement. COPYRIGHT
Copyright (C) 2003 Per Andreas Buer This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU- LAR PURPOSE. SEE ALSO
Mail::Internet (3), Mail::SpamAssassin (3), Mail::ListDetector (3). perl v5.8.2 2004-01-13 YAMPLE(1)
All times are GMT -4. The time now is 07:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy