10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi,
I am using sendmail.
I need to do the following: Send all internal emails to one relay, send to a particular external domain via a relay that required authentication.
Could someone please advise on configuration? I tried one possibility but it failed.
Posting "Does not work" without... (2 Replies)
Discussion started by: mojoman
2 Replies
2. UNIX for Dummies Questions & Answers
We are running sendmail-8.13.4 on AIX.
I need to update the configuration and make sendmail act as a relay client only, meaning it will only be used to send mail out of the host and NOT accept mail.
Here is my client.mc config:
include(`/usr/samples/tcpip/sendmail/m4/cf.m4')... (5 Replies)
Discussion started by: c3rb3rus
5 Replies
3. UNIX for Dummies Questions & Answers
I want to configure and run sshd server on my unix box. I already have that installed.
# yum -y install openssh-server openssh-clients
Loaded plugins: fastestmirror, presto, refresh-packagekit
Loading mirror speeds from cached hostfile
* base: centos.mirror.constant.com
* epel:... (1 Reply)
Discussion started by: nitalchandel
1 Replies
4. Cybersecurity
Can someone please posts the steps needed to configure a UNIX server to authenticate with a TACACS+ server or point me in the right direction been googling for 2 days now. Thanks (1 Reply)
Discussion started by: supadee718
1 Replies
5. Shell Programming and Scripting
Hi,
I have a script which check for the health of an application. In the end I want to attache a file to send the information to the user using sendmail.
How to configure sendmail in linux?How to attach a file and send it as a mail from script?
Ahamed. (3 Replies)
Discussion started by: ahamed
3 Replies
6. HP-UX
Hi,
I would like to change the domain name using sendmail.
For example, currently mails are sent like user@domain1.com
I would like to change it to user@domain2.com
How this can be done from HP-UX?
Your help is highly appreciated.
Thanks in advance. (0 Replies)
Discussion started by: smuthuvel
0 Replies
7. UNIX for Advanced & Expert Users
I am new to UNIX shell script programming. I have coded one korn shell script used on solaris 10 for Oracle database rman cold backup. The first part of script is working. But only following part is not working. Please help me to point out the problem and errors in my code. Thanks a lot.
# the... (2 Replies)
Discussion started by: duke0001
2 Replies
8. UNIX for Dummies Questions & Answers
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
9. UNIX for Dummies Questions & Answers
Hello
Please someone guide me to configure sendmail.cf on AIX 5.3
The sendmail.cf version is 1.74( bos53A src/bos/usr/sbin/sendmail/sendmail.cf 1.74)
Thanks
Amruta (0 Replies)
Discussion started by: Amruta Pitkar
0 Replies
10. HP-UX
Hi all,
I have installed a software on a local machine running UNIX .
Using NetBatch utility, In the COMMUNICATION file on this Local UNIX machine I have added:
remote_machine_name:OS: Description:Type
so that I can use this remote machine running UNIX to complete jobs which are... (0 Replies)
Discussion started by: molly81
0 Replies
Log::Handler::Output::Sendmail(3pm) User Contributed Perl Documentation Log::Handler::Output::Sendmail(3pm)
NAME
Log::Handler::Output::Sendmail - Log messages with sendmail.
SYNOPSIS
use Log::Handler::Output::Sendmail;
my $email = Log::Handler::Output::Sendmail->new(
from => 'bar@foo.example',
to => 'foo@bar.example',
subject => 'your subject',
);
$email->log(message => $message);
DESCRIPTION
With this output module it's possible to log messages via "sendmail".
METHODS
new()
Call "new()" to create a new Log::Handler::Output::Sendmail object.
The following options are possible:
from
The sender address (From).
to The receipient address (To).
cc Carbon Copy (Cc).
bcc Blind Carbon Copy (Bcc)
subject
The subject of the mail.
sender
This option is identical with "sendmail -f".
header
With this options it's possible to set your own header.
my $email = Log::Handler::Output::Sendmail->new(
from => 'bar@foo.example',
to => 'foo@bar.example',
header => 'Content-Type: text/plain; charset= UTF-8',
);
Or
my $email = Log::Handler::Output::Sendmail->new(
header => {
From => 'bar@foo.example',
To => 'foo@bar.example',
Subject => 'my subject',
'Content-Type' => text/plain; charset= UTF-8',
}
);
Or
my $email = Log::Handler::Output::Sendmail->new(
header => [
'From: bar@foo.example',
'To: foo@bar.example',
'Subject: my subject',
'Content-Type: text/plain; charset= UTF-8',
]
);
sendmail
The default is set to "/usr/sbin/sendmail".
params
Parameters for "sendmail".
The default is set to "-t".
maxsize
Set the maximum size of the buffer in bytes.
All messages will be buffered and if "maxsize" is exceeded the buffer is flushed and the messages will be send as email.
The default is set to 1048576 bytes.
Set 0 if you want no buffering and send a mail for each log message.
debug
Set 1 if you want to enable debugging.
The messages can be fetched with $SIG{__WARN__}.
log()
Call "log()" if you want to log a message as email.
$email->log(message => "this message will be mailed");
If you pass the level then its placed into the subject:
$email->log(message => "foo", level => "INFO");
$email->log(message => "bar", level => "ERROR");
$email->log(message => "baz", level => "DEBUG");
The lowest level is used:
Subject: ERROR ...
You can pass the level with "Log::Handler" by setting
message_pattern => '%L'
flush()
Call "flush()" if you want to flush the buffered messages.
validate()
Validate a configuration.
reload()
Reload with a new configuration.
errstr()
This function returns the last error message.
DESTROY
"DESTROY" is defined and called "flush()".
PREREQUISITES
Carp
Params::Validate
EXPORTS
No exports.
REPORT BUGS
Please report all bugs to <jschulz.cpan(at)bloonix.de>.
If you send me a mail then add Log::Handler into the subject.
AUTHOR
Jonny Schulz <jschulz.cpan(at)bloonix.de>.
COPYRIGHT
Copyright (C) 2007-2009 by Jonny Schulz. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-11-21 Log::Handler::Output::Sendmail(3pm)