10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I configured Solaris 10 server to send all mails to our exchange server via D{MTAHost} in submit.cf. but now I don't get internal messages like cron output.
what can I do? (2 Replies)
Discussion started by: amozofer
2 Replies
2. UNIX for Dummies Questions & Answers
I am using Sendmail 8.13.1
My sendmail issues 'EHLO aaa.mydomain.com' to another MTA during sending mails.
aaa.mydomain.com is hostname of my server.
I want to set another domain( bbb.mydomain.com ) in this hello messgae. I tried to change this in sendmail configuration and failed.
O... (1 Reply)
Discussion started by: hcliff
1 Replies
3. Solaris
Hello all,
On my solaris 9 I have this process running
smmsp 29138 1 0 Apr 17 ? 0:00 /usr/lib/sendmail -Ac -q15m
root 29137 1 0 Apr 17 ? 0:00 /usr/lib/sendmail -q15m
if i use the command /usr/bin/mconnect
connecting to host localhost (127.0.0.1), port... (0 Replies)
Discussion started by: Hugues
0 Replies
4. Solaris
Yes Folks,
Quick question. Is it possible to send multiple attachments with sendmail and if so how? Thinking here in terms of sending multiple .pdf files as attachments. I can do it with one but how do I do it for multiples.
Slainte, (1 Reply)
Discussion started by: KenLynch
1 Replies
5. Solaris
Hi Guys,
Quick question re sendmail and mail queues.
If the sendmail deamon is stopped i.e. set up to execute and stop at certain intervals from crontab, and the sendmail command is invoked the mail is queued in the clientmqueue directory. Then the next time sendmail is executed the mails... (2 Replies)
Discussion started by: KenLynch
2 Replies
6. UNIX for Dummies Questions & Answers
Hello to all,
I configured sendmail on a solaris 9 system the same as another server that the one I configured will replace. I transferred all the required files from the original system to the new one as well ar the /var/mail directory. The sendmail daemon is running however when I try to... (4 Replies)
Discussion started by: GLJ@USC
4 Replies
7. Solaris
Hi,
I have sendmail configured on my SOLARIS 10 server. But right now, it uses
by default root@mysun.localdomain.
I wanted to change the default from field to a outside ISP address, so that I can send email to any outside internet email address without changing the FROM field...... because... (5 Replies)
Discussion started by: callingrohit
5 Replies
8. UNIX for Dummies Questions & Answers
I apologize for asking what I'm sure is a basic question, but I have an automated script that will send a file using sendmail to a list of e-mail accounts.
When one or more of those e-mail accounts is bad, it bounces the message back to the account that is executing the script.
How can I... (2 Replies)
Discussion started by: Jake513
2 Replies
9. UNIX for Advanced & Expert Users
How would I configure sendmail so that the INTERN group can only send email locally to xyz.com, while the EXTERN group can send email anywhere.
Thanks for your help! (5 Replies)
Discussion started by: Malbeuf
5 Replies
10. UNIX for Dummies Questions & Answers
I'm using sendmail to send a attachment which works good. I send the To Cc Subject Attachment. Question is does anyone know how to put a voting botton in the script when sending the email I want the Approve;Reject button. (2 Replies)
Discussion started by: Dan Savarino
2 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)