A)
look in /etc/mail, save the file sendmail.cf:
edit with vi sendmail.cf and look for this stanza:
and modify accordingly
So you append to DS the fullname of your exchange mail server.
B)
1) stop star the sendmail in /sbin/init.d
2) set environnment variables:
export charset=iso8859-1
export encoding=8bits
to put in file=>.mailrc? ( I put a .mailrc in home directories of the people having right to use the mail)
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)
I've got a question regarding setting up mail between two unix boxes. Is it possible to setup two boxes conected via a hub and allow them to send mail using the Netscape Messenger. I know that I can be done so using the UNIX sendmail but I need to connect them via Messenger as my ultimate goal is... (0 Replies)
Hi all,
I need to send mail to a particular email id using a local mail server.This mail shall contain the content of a file. I don't have any idea how to do it. Can anyone guide me ,where to start proceeding for it. Any guide or study material would appreciated. (1 Reply)
Hi All,
I'm unable to send out email using mailx command in a new server. I guess the server has to be configured for this. I searched a lot and everywhere it was asked to check /etc/sendmail.cf (I don't have this file in that path.)
And I don't have a folder called host or hosts in /etc... (6 Replies)
we have an exchange server in company as excmailbocx.company.com
i wanna send mail using sendmail from redhat to my exchange mail account
how can it be possible? (1 Reply)
Hi,
I need to send email notifications from Unix/Linux box to users using mailx.
In these Unix/Linux boxes mail is not configured however we are having mail server configured in our LAN.
Could you please provide instructions to configure relay in these boxes so that we can relay our mails... (3 Replies)
i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail.
actually i am trying to automate the high... (2 Replies)
Hi all,
I want to send a mail for my business needs from outlook account to an unix server (HP-UX) but I don't send any mail. While I can send from the unix server to my outlook account, I can't send from outlook to unix.
How can I achieve this ? How can I send a mail from my outlook or other... (2 Replies)
Discussion started by: igelegin
2 Replies
LEARN ABOUT DEBIAN
net::server::mail::lmtp
Net::Server::Mail::LMTP(3pm) User Contributed Perl Documentation Net::Server::Mail::LMTP(3pm)NAME
Net::Server::Mail::LMTP - A module to implement the LMTP protocole
SYNOPSIS
use Net::Server::Mail::LMTP;
my @local_domains = qw(example.com example.org);
my $server = new IO::Socket::INET Listen => 1, LocalPort => 25;
my $conn;
while($conn = $server->accept)
{
my $esmtp = new Net::Server::Mail::LMTP socket => $conn;
# adding some handlers
$esmtp->set_callback(RCPT => &validate_recipient);
$esmtp->set_callback(DATA => &queue_message);
$esmtp->process();
$conn->close()
}
sub validate_recipient
{
my($session, $recipient) = @_;
my $domain;
if($recipient =~ /@(.*)>s*$/)
{
$domain = $1;
}
if(not defined $domain)
{
return(0, 513, 'Syntax error.');
}
elsif(not(grep $domain eq $_, @local_domains))
{
return(0, 554, "$recipient: Recipient address rejected: Relay access denied");
}
return(1);
}
sub queue_message
{
my($session, $data) = @_;
my $sender = $session->get_sender();
my @recipients = $session->get_recipients();
return(0, 554, 'Error: no valid recipients')
unless(@recipients);
my $msgid = add_queue($sender, @recipients, $data)
or return(0);
return(1, 250, "message queued $msgid");
}
DESCRIPTION
This class implement the LMTP (RFC 2033) protocol.
This class inherit from Net::Server::Mail::ESMTP. Please see Net::Server::Mail::ESMTP for documentation of common methods.
EVENTS
Descriptions of callback who's can be used with set_callback method. All handle takes the Net::Server::Mail::ESMTP object as first argument
and specific callback's arguments.
LHLO
Same as ESMTP EHLO, please see Net::Server::Mail::ESMTP.
DATA
Overide the default DATA event by a per recipient response. It will be called for each recipients with data (in a scalar reference) as
first argument followed by the current recipient.
SEE ALSO
Please, see Net::Server::Mail, Net::Server::Mail::SMTP and Net::Server::Mail::ESMTP.
AUTHOR
Olivier Poitrey <rs@rhapsodyk.net>
AVAILABILITY
Available on CPAN.
anonymous SVN repository:
svn co https://emailproject.perl.org/svn/Net-Server-Mail
SVN repository on the web:
http://emailproject.perl.org/svn/Net-Server-Mail/
BUGS
Please use CPAN system to report a bug (http://rt.cpan.org/).
LICENCE
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
COPYRIGHT
Copyright (C) 2002 - Olivier Poitrey, 2007 - Xavier Guimard
perl v5.10.0 2007-04-10 Net::Server::Mail::LMTP(3pm)