Mail::Milter::Wrapper(3pm) User Contributed Perl Documentation Mail::Milter::Wrapper(3pm)NAME
Mail::Milter::Wrapper - Perl extension for wrappering milter objects
SYNOPSIS
use Mail::Milter::Wrapper;
my $milter = ...;
my $wrapper = new Mail::Milter::Wrapper($milter, &foo);
use Sendmail::Milter;
...
Sendmail::Milter::register('foo', $wrapper, SMFI_CURR_ACTS);
DESCRIPTION
Mail::Milter::Wrapper wraps another milter, allowing for interception of the passed arguments and/or return code of the contained milter.
METHODS
new(MILTER, CODEREF[, CALLBACK ...])
Creates a Mail::Milter::Wrapper object.
MILTER is the milter to wrap, which may be a plain hash reference or an instance of a hashref object such as "Mail::Milter::Object".
CODEREF is the wrapper subroutine. CALLBACKs, if specified, are named callbacks which are needed by the wrapper, even if the contained
milter does not use them.
The wrapper subroutine will be called with the following arguments, in this order:
* reference to the wrapper
* name of callback
* subroutine reference to call into the wrapped milter
* arguments for the callback (>= 0)
This subroutine should ALWAYS pass the "close" callback through to the contained milter. Failure to do so may corrupt the contained
milter's state information and cause memory leaks.
As an example, a simple subroutine which just passes the callback through might be written as:
sub callback_wrapper {
shift; # don't need $this
my $cbname = shift;
my $callback_sub = shift;
&$callback_sub(@_);
}
AUTHOR
Todd Vierling, <tv@duh.org> <tv@pobox.com>
SEE ALSO
Mail::Milter, Sendmail::Milter
perl v5.8.8 2004-02-26 Mail::Milter::Wrapper(3pm)
Check Out this Related Man Page
Mail::Milter::Wrapper::DecodeSRS(3pm) User Contributed Perl Documentation Mail::Milter::Wrapper::DecodeSRS(3pm)NAME
Mail::Milter::Wrapper::DecodeSRS - milter wrapper to decode SRS-encoded return path
SYNOPSIS
use Mail::Milter::Wrapper::DecodeSRS;
my $milter = ...;
my $wrapper = new Mail::Milter::Wrapper::DecodeSRS($milter);
my $wrapper2 = &DecodeSRS($milter); # convenience
DESCRIPTION
Mail::Milter::Wrapper::DecodeSRS is a convenience milter wrapper which decodes MAIL FROM: return paths which have been encoded by the
Sender Rewrite Scheme, SRS. (More information: http://www.libsrs2.org/) This wrapper internally understands both the SRS0 and SRS1 encod-
ing schemes documented by the Mail::SRS author.
The decoded address is made available to the contained milter via the "envfrom" callback, in the same way that a raw address would.
NOTE: If the address is not SRS encoded, the contained milter is NOT called for the duration of the message; instead, SMFIS_ACCEPT is
returned. This is because the milter writer is expected to use this wrapper in a chain that also includes the contained milter without
wrapping, in order to prevent a malicious sender from using SRS to bypass access checks.
For instance, the following is a proper usage of this wrapper in a chain:
my $envfrommilter = ...;
my $combinedmilter = new Mail::Milter::Chain(
new Mail::Milter::Wrapper::UnwrapSRS($envfrommilter),
$envfrommilter
);
This behavior can also be used if, e.g., the MTA already does one form of MAIL FROM: check, and the contained milter repeats that same
database check against SRS rewritten addresses. (A good example would be a milter emulating Sendmail's access_db map.)
AUTHOR
Todd Vierling, <tv@duh.org> <tv@pobox.com>
SEE ALSO
Mail::Milter::Wrapper
perl v5.8.8 2004-02-26 Mail::Milter::Wrapper::DecodeSRS(3pm)
Ok, I'm sure this is a total newbie question, but I think I'm in the right place, no?
I'm trying to call a perl module from a cgi script - Mail::Sendmail - and my web host installed the module in a directory that doesn't seem to be accessible, at least not the way I'm trying. But I thought you... (1 Reply)
Hi
Is there any way to use UNIX and Perl to automate sending e-mail. I got a dynamic changing file that send out to people in my mailing list and want to experinment to see if Perl and UNIX can send it out for me when the content is change. I found a Perl source code but dont really know how to... (4 Replies)
I am trying to reference a two dimensional array in a
subroutine and can't seem to figure this one out in Perl.
Does anybody know? Please enlighten me.
#!/usr/bin/perl -w
use constant DIM => 4;
sub Shift_elements_right{
my (@Input, @Output) = @_;
for ($i = 0 ; $i <= DIM ;... (5 Replies)
I have a Sendmail (Red Hat 9.0, Sendmail 8.12.8-4)server set up on the local network. I am able to send mail just fine, and when I copy error messages from the root mail account to my test user, I can download those to Outlook just fine. My problem is that I cannot send messages to my testaccount... (2 Replies)
Assuming the following code
sub foo {
dosomething {...}
else { foo }
is the number of times foo has been called kept track of internally and how could I access that count? (1 Reply)
Hi anyone knows how to Configuring Sendmail on /usr/lib/mail/cd on solaris 9?
i cannot find the sendmail.mc file and i not able to use m4 to compile!
Pls help Thanks
Summer (3 Replies)
Hi Gurus,
I have been tampering around with sendmail for the past one week and seem to make little progress. Given below is an abstract of the issue.
I have a Fedora 12 server(A VM on vitual Box bridged with a Windows XP host) which has to act as a SMTP server and have accordingly put up the... (8 Replies)
I have tried looking through wrapper scripts throughout the forum, but I don't think they were able to answer my question (either that or I'm just confused).
Basically, I have a Perl script that I want to run in parallel 4 times with parameters, wait for all of them to finish, then run another... (8 Replies)
For a long time we have successfully been running mail servers using sendmail+ClamAV+clamav-milter+SpamAssassin+smf_spamd-milter on Solaris both as a mail server for several domains with local users getting their mail using POP and IMAP and also as a message filtering relay for other domains where... (2 Replies)
Hi folks,
I am trying to send an email in Perl script with the below code.
I have written the code in Padre IDE and installed all the required modules(Mail::Sendmail) and executed the code.
It is neither showing errors nor giving the output. I havnt received an mail after running the below... (1 Reply)
Is there a way in AIX5.3 with Sendmail 8.13.4 to accept a sender address with an unresolvable domain? I've read about the option:
FEATURE(`accept_unresolvable_domains')
But can't seem to confirm if that option is available in this version of Sendmail.
If it that feature is not available... (1 Reply)
Hi all,
I have written a wrapper script in Perl which will be used on AIX, Linux and Windows and I do not want to change any code for the needs for a specific OS if avoidable.
It works fine so far on all 3 OSes, not blowing up any stacks any more, but I am unsure how to handle writing log files... (7 Replies)
Hey everyone, I have a question. I'm administering a linux machine that runs openSuSE. A few of the functions that I'd normally do manually, have programs that take over the task. For example, I wanted to add a few rules to my iptables. I then found out that there is an openSuse tool... (3 Replies)
Hi All,
Not been around in a while. However I have been all over tinternet (google) for days looking for a solution.
Where I work has decided to use Sendmail on our Linux and Unix estate for sending emails via scripts. So I am hoping to eventually get a working solution for Sendmail and not... (3 Replies)