10 More Discussions You Might Find Interesting
1. IP Networking
hi all. and sorry for the random question, but this sparkled a raging flame-war at work and i want more points of view
a router, with linux of some sort,
dhcp client requesting for ip in wan1 (as usual with wan ports)
dhcp server listening in lan1, and assigning ip (as usual... (9 Replies)
Discussion started by: broli
2. UNIX and Linux Applications
I have a mailserver with postfix
i want to alias all mail for email@example.com
I have the aliases configured,and i did newliases
but doesn't work.
How to did this?Postfix is configured for virtual domain on ad server. (2 Replies)
Discussion started by: Linusolaradm1
3. Shell Programming and Scripting
My script work on Linux but not work in sun os.
failMessage=":: $(tput bold)Log not update$(tput rmso) = "
arr=($logFiles)... (7 Replies)
Discussion started by: ooilinlove
4. UNIX for Dummies Questions & Answers
One of our clients have a problem with sending email to a certain domain. No matter what we try, the mails just dont get delivered.
What I did then, is created a new connector on their Exchange server, pointing all mail sent to their client at "domain1" to relay to our Postfix mail... (0 Replies)
Discussion started by: wbdevilliers
5. IP Networking
Am using smtpd_recipient_restrictions & check_recipient_access in postfix.
The hash file looks like this:
The aim is to place email from these recipients in the hold directory,check them then reinject them back in postfix on some... (0 Replies)
Discussion started by: coolatt
6. UNIX for Dummies Questions & Answers
I have a strange problem
I have a solaris 8 machine which sends me an email to my outlook every night about the status of the system. The end of this script looks like this
mailx -s "$TITLE" firstname.lastname@example.org < $TMPF
and it is working fine
My problem is
when i just use mailx... (1 Reply)
Discussion started by: Tirmazi
when I telnet to my machine on port 25 and send an email to myself, the machine sends the email to the old corporate mail server instead of the new corporate mail server.
how to change that so that any email sent from my linux box goes directly to the new mail server?
thx (2 Replies)
Discussion started by: melanie_pfefer
8. UNIX for Dummies Questions & Answers
I have a shell script RemoveFiles.sh
Inside this file, it only has two commands as below:
rm -f ../../reportToday/temp/*
rm -f ../../report/*
My problem is that when i execute this script, nothing happened. Files remained unremoved. I don't see any error message as it... (2 Replies)
Discussion started by: cheongww
9. UNIX for Advanced & Expert Users
When I use the postalias command I am getting an error that says no mapping in /etc/mail/mailer.conf. I am running FreeBsd 6.1 and in my main.cf I have my alias database is alias_maps= hash:/etc/mail/aliases
I tried the command two different ways /usr/local/sbin/postalias /etc/mail/aliases... (2 Replies)
Discussion started by: rbizzell
10. UNIX for Advanced & Expert Users
I can send email. I just can't receive email I am getting and error
Permanent Failure: 554_Transaction_failed. All the services are running. I can telnet to 110 25 143. I am also running Imap. I can send and receive email internally I can send email outside of my network I can't receive emails... (3 Replies)
Discussion started by: rbizzell
Net::Server::Mail::LMTP(3pm) User Contributed Perl Documentation Net::Server::Mail::LMTP(3pm)
Net::Server::Mail::LMTP - A module to implement the LMTP protocole
my @local_domains = qw(example.com example.org);
my $server = new IO::Socket::INET Listen => 1, LocalPort => 25;
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);
my($session, $recipient) = @_;
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");
my($session, $data) = @_;
my $sender = $session->get_sender();
my @recipients = $session->get_recipients();
return(0, 554, 'Error: no valid recipients')
my $msgid = add_queue($sender, @recipients, $data)
return(1, 250, "message queued $msgid");
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.
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.
Same as ESMTP EHLO, please see Net::Server::Mail::ESMTP.
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.
Please, see Net::Server::Mail, Net::Server::Mail::SMTP and Net::Server::Mail::ESMTP.
Olivier Poitrey <email@example.com>
Available on CPAN.
anonymous SVN repository:
svn co https://emailproject.perl.org/svn/Net-Server-Mail
SVN repository on the web:
Please use CPAN system to report a bug (http://rt.cpan.org/).
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 (C) 2002 - Olivier Poitrey, 2007 - Xavier Guimard
perl v5.10.0 2007-04-10 Net::Server::Mail::LMTP(3pm)