9 More Discussions You Might Find Interesting
1. HP-UX
Hi,
I have reports that are generated in one server (10.61.1.108), hostname l28bi01. These reports are supposedly sent to a group of email addresses hourly via an email relay server. However, this is not happening.
In sendmail.cf in bi01, the DS Smart Relay Host ip address is:
... (3 Replies)
Discussion started by: anaigini45
3 Replies
2. UNIX for Dummies Questions & Answers
First, please forgive me for my 2nd attempt to post in a Forum!
And btw, the Code Tags tutorial has the fonts and the sizes,
but when I am editing my post none of those fonts and sizes
are not there!
SCO OpenServer(TM) Release 5 (worf.xxx.com)
Worf is our proxy & POP Server, and it... (7 Replies)
Discussion started by: Nancy L
7 Replies
3. Post Here to Contact Site Administrators and Moderators
SCO OpenServer(TM) Release 5 (worf.xxx.com)
Worf is my proxy Server, and it runs my Lan with windows PCs, wk2s & XPs. There are only two users who POP the mailbox from the Server to client, elena and me nancy! elena can POP her email mailbox is just fine.
We use Eudora and for years we... (1 Reply)
Discussion started by: Nancy L
1 Replies
4. UNIX for Dummies Questions & Answers
Hi all,I know, that this is very common issue, but I can't find where is the problem... I have Solaris 10 installed.I want to send mail to external SMTP server, like:echo "letter body"| mailx -s "subject" test@test.comBut I donno what kind of changes I have to do in /etc/hosts and sendmail.cf or... (5 Replies)
Discussion started by: nypreH
5 Replies
5. UNIX for Advanced & Expert Users
Hi folks
OS- Debian Etch
Xen
postfix
courier
perdition
perdition-mysql
MySQL
Single public IP
Dom0 - Debian Etch workstation
Server-1, domU1 for routing with perdition and perdition-mysql
installed
Server-2, domU2, mail server for domain-A
Server-3, domU3, mail server for... (2 Replies)
Discussion started by: satimis
2 Replies
6. UNIX for Dummies Questions & Answers
How do I delete all my mails in the mailbox on Solaris?
$mail
? d *
Illegal numeric
?
d * does not work. Also I want to retain the mailbox.
Thanks,
Rahul. (3 Replies)
Discussion started by: rahulrathod
3 Replies
7. What is on Your Mind?
Hi folks,
Some companies, including mine, disable the cookies on browser (I suppose) making their staffs unable to send/receive online mails other than their own. I even can't read webmails on my own server. I tried going through other proxy servers but without result. Is there anyway to... (3 Replies)
Discussion started by: satimis
3 Replies
8. Solaris
Hi, Can anyone pls. tell me how to access Active directory from solaris. I am looking at solution by which I can send mail notification from the logs generated by scripts, to the users on Exchange server. I am trying for a Perl-LDAP module , but don't realy know how to go for it (5 Replies)
Discussion started by: ganeshh
5 Replies
9. UNIX for Dummies Questions & Answers
Both A and B people has mail client to mail client interaction happily.
1) mails from A company unix server 'uuu' are being received by
A company people onto their mail client. So A company people are happy.
2) mails from A company unix server 'uuu' are not being received by B
... (4 Replies)
Discussion started by: vkandati
4 Replies
Mail::SpamAssassin::PerMsgStatus(3) User Contributed Perl Documentation Mail::SpamAssassin::PerMsgStatus(3)
NAME
Mail::SpamAssassin::PerMsgStatus - per-message status (spam or not-spam)
SYNOPSIS
my $spamtest = new Mail::SpamAssassin ({
'rules_filename' => '/etc/spamassassin.rules',
'userprefs_filename' => $ENV{HOME}.'/.spamassassin.cf'
});
my $mail = Mail::SpamAssassin::NoMailAudit->new();
my $status = $spamtest->check ($mail);
if ($status->is_spam()) {
$status->rewrite_mail ();
$mail->accept("caught_spam");
}
...
DESCRIPTION
The Mail::SpamAssassin "check()" method returns an object of this class. This object encapsulates all the per-message state.
METHODS
$isspam = $status->is_spam ()
After a mail message has been checked, this method can be called. It will return 1 for mail determined likely to be spam, 0 if it does
not seem spam-like.
$list = $status->get_names_of_tests_hit ()
After a mail message has been checked, this method can be called. It will return a comma-separated string, listing all the symbolic
test names of the tests which were trigged by the mail.
$num = $status->get_hits ()
After a mail message has been checked, this method can be called. It will return the number of hits this message incurred.
$num = $status->get_required_hits ()
After a mail message has been checked, this method can be called. It will return the number of hits required for a mail to be consid-
ered spam.
$report = $status->get_report ()
Deliver a "spam report" on the checked mail message. This contains details of how many spam detection rules it triggered.
The report is returned as a multi-line string, with the lines separated by "
" characters.
$status->rewrite_mail ()
Rewrite the mail message. This will add headers, and possibly body text, to reflect its spam or not-spam status.
The modifications made are as follows:
Subject: header for spam mails
The string "*****SPAM*****" (changeable with "subject_tag" config option) is prepended to the subject, unless the "rewrite_subject
0" configuration option is given.
X-Spam-Status: header for spam mails
A string, "Yes, hits=nn required=nn tests=..." is set in this header to reflect the filter status. The keys in this string are as
follows:
X-Spam-Report: header for spam mails
The SpamAssassin report is added to the mail header if the "report_header 1" configuration option is given.
hits=nn The number of hits the message triggered.
required=nn The threshold at which a mail is marked as spam.
tests=... The symbolic names of tests which were triggered.
X-Spam-Flag: header for spam mails
Set to "YES".
Content-Type: header for spam mails
Set to "text/plain", in order to defang HTML mail or other active content that could "call back" to the spammer.
X-Spam-Checker-Version: header for spam mails
Set to the version number of the SpamAssassin checker which tested the mail.
spam mail body text
The SpamAssassin report is added to top of the mail message body, unless the "report_header 1" configuration option is given.
X-Spam-Status: header for non-spam mails
A string, "No, hits=nn required=nn tests=..." is set in this header to reflect the filter status. The keys in this string are the
same as for spam mails (see above).
$messagestring = $status->get_full_message_as_text ()
Returns the mail message as a string, including headers and raw body text.
If the message has been rewritten using "rewrite_mail()", these changes will be reflected in the string.
Note: this is simply a helper method which calls methods on the mail message object. It is provided because Mail::Audit uses an
unusual (ie. not quite intuitive) interface to do this, and it has been a common stumbling block for authors of scripts which use Spa-
mAssassin.
$status->finish ()
Indicate that this $status object is finished with, and can be destroyed.
If you are using SpamAssassin in a persistent environment, or checking many mail messages from one Mail::SpamAssassin factory, this
method should be called to ensure Perl's garbage collection will clean up old status objects.
SEE ALSO
"Mail::SpamAssassin" "spamassassin"
perl v5.8.0 2002-09-26 Mail::SpamAssassin::PerMsgStatus(3)