8 More Discussions You Might Find Interesting
1. AIX
Hi,
I need to send alert mail from AIX to mail server.
My mail server IP is 192.168.0.10
so I've add /etc/hosts as below
192.168.0.10 mydomain1.com
the I try to send mail to myname@mydomain1.com it's OK
Then I need to send mail to myname@mydomain2.com too.
so I've... (1 Reply)
Discussion started by: oakmojo
1 Replies
2. UNIX for Dummies Questions & Answers
Hi all,
I am new to Linux kernel.
we have a c file that counts the no. of sends and received packets in each interface, and indicate the user about the error/drop ration of incoming and outgoing packets.
in our Linux box , the incoming packets are dropped at random interval.
we have our... (1 Reply)
Discussion started by: kannandv
1 Replies
3. UNIX for Advanced & Expert Users
hi all,
i need to email the output of a command to a google or yahoo account.
am using debian lenny 5.
can someone please help me on this ? (5 Replies)
Discussion started by: coolatt
5 Replies
4. Windows & DOS: Issues & Discussions
Dear Expert,
i have linux box that is running in the windows domain, BUT did not being a member of the domain. as I am not the System Administrator so I have no control on the server in the network, such as modify dns entry , add the linux box in AD and domain record and so on that relevant.
... (2 Replies)
Discussion started by: regmaster
2 Replies
5. UNIX for Advanced & Expert Users
Hi,
I suppose, Yahoo is running Unix servers for Yahoo Mail and other services.
The key issue is,
Yahoo Mail is
1-level sign in,
2-level sign out
unfortunately, other Yahoo Service accessed with the same login / password are 1-level sign out, 1-level sign in.
The following are my... (0 Replies)
Discussion started by: jack2
0 Replies
6. Shell Programming and Scripting
hi,
im very new to perl and im having problems with a module. my comptuer is behind a firewall and i dont know how to work this problem out. i tried passing my proxy parameters (ip, port, user, pass) to my environment variables but it doesnt seem to work. heres the almost exact code from the... (0 Replies)
Discussion started by: marcpascual
0 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
I am new to unix. I want to know what are the steps to do in order to configure a unix server (Solaris 8) to send mails to the outside world. I also want to send attachments in the mail.
Thanks in advance
Zing (2 Replies)
Discussion started by: zing
2 Replies
8. UNIX for Dummies Questions & Answers
hi, Gurus,
I need some help with sending mail out from my UNIX server:
It is running Solaris 2.6 and the sendmail version is 8.8.
Output of :/usr/lib/sendmail -d0.1 -bt < /dev/null
Version 8.8.8+Sun
Compiled with: LOG MATCHGECOS MIME7TO8 MIME8TO7 NAMED_BIND NDBM NETINET
... (5 Replies)
Discussion started by: b5fnpct
5 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)