Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mail::milter::wrapper(3pm) [debian man page]

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)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

bad file descriptor?

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)
Discussion started by: ftb
1 Replies

2. Shell Programming and Scripting

E-Mail from command line for UNIX and Perl??

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)
Discussion started by: jy2728
4 Replies

3. Shell Programming and Scripting

Reference two dimensional array in Perl sub

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)
Discussion started by: photon
5 Replies

4. UNIX for Dummies Questions & Answers

Sendmail

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)
Discussion started by: Jody
2 Replies

5. Shell Programming and Scripting

perl function call tracking

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)
Discussion started by: thumper
1 Replies

6. UNIX for Dummies Questions & Answers

Configuring Sendmail

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)
Discussion started by: summerpeh
3 Replies

7. Red Hat

Sendmail Issue.

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)
Discussion started by: Hari_Ganesh
8 Replies

8. Shell Programming and Scripting

Wrapper Script Help With Perl Scripts

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)
Discussion started by: kooshi
8 Replies

9. UNIX for Advanced & Expert Users

Sendmail virtual domain problem

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)
Discussion started by: andyt22
2 Replies

10. Shell Programming and Scripting

sending mail in perl.. No errors and also no output

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)
Discussion started by: giridhar276
1 Replies

11. AIX

Allow unresolveable domain in AIX5.3/Sendmail 8.13.4

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)
Discussion started by: epearson1
1 Replies

12. Shell Programming and Scripting

[Solved] Permission problem, programming advice needed, Perl

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)
Discussion started by: zaxxon
7 Replies

13. UNIX and Linux Applications

Sendmail

Hi All, What is Sendmail.cf? What is it's significance? (2 Replies)
Discussion started by: rafa_fed2
2 Replies

14. IP Networking

Wrapper functions like SuSEFirewall2

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)
Discussion started by: Lost in Cyberia
3 Replies

15. Shell Programming and Scripting

Sendmail - Attachments & Subjects

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)
Discussion started by: dakelly
3 Replies