9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm unable to send email from my Linux server despite SMTP port 25 Active and Listening.
# hostname
TechX
I checked the mail log ( /var/log/maillog ) and found the below error.
I'm sharing all the ".cf" files seen in the error log.
1.
# more /etc/postfix/main.cf
# postfix... (0 Replies)
Discussion started by: mohtashims
0 Replies
2. Red Hat
I am trying to setup the postfix email server on Redhat Linux 6.5 running as an EC2 instance in AWS. I can do reverse port mapping to open a port
from our internal network to the AWS linux server, so we should be able to get to our mail server, even though it is a one way path from our internal ... (1 Reply)
Discussion started by: gandolf989
1 Replies
3. UNIX for Advanced & Expert Users
Hello,
We have 2 servers, server A and Server B in same domain. I have already configured the Serevr A to send an email to the internet (outside domain) by opening the port 25 to the internet.
Now I need to send an email to the outside domain from Server B using server A. I have opened the... (1 Reply)
Discussion started by: sathishbabu89
1 Replies
4. UNIX for Dummies Questions & Answers
im able to install postfix on my ubuntu server. no issues. but ican't send mail.
i dont know what to put for the "relayhost". i've googled this endlessly but i'm clueless. isn't there a general smart host i can use that'll allow me to send?
i dont care for receiving mail. i just want to be... (1 Reply)
Discussion started by: SkySmart
1 Replies
5. Emergency UNIX and Linux Support
i have configured mail server with postfix with dovecot with no encryption:
When connecting with Thunderbird imap is working fine. when sending email from another domain to this domain again it is fine. but when i want to send mail frommy domain to another it gives me error and this is... (3 Replies)
Discussion started by: majid.merkava
3 Replies
6. IP Networking
hi all.
Am using smtpd_recipient_restrictions & check_recipient_access in postfix.
The hash file looks like this:
emailaddress1 HOLD
emailaddress2 HOLD
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
0 Replies
7. Ubuntu
We have a redhat enterprise linux 4 server.we have configured postfix as our MTA.squirrel mail as webmail and apache is configured for webserver.We configured outlook as mail client.The mail server is working and our users ae saving a copy of mail in the linux server.Our problem is whenever the... (0 Replies)
Discussion started by: ramjimh
0 Replies
8. UNIX for Dummies Questions & Answers
Hi folks!
I have a Postfix email server running on my MacOs x box.
I would like to customize this automatic message to portuguese language:
============
This is the Postfix program at host myserver.com.
I'm sorry to have to inform you that the message returned
below could not... (4 Replies)
Discussion started by: fundidor
4 Replies
9. UNIX for Dummies Questions & Answers
I am getting a "connection to the server has failed" error when trying send out internal email. this will be like this for maybe four hours then it will start working for no reason. then it will stop again. the only constant i have is if i reboot the server the send mail will work for about an... (1 Reply)
Discussion started by: jrblanton
1 Replies
Net::Server::Mail::ESMTP::XFORWARD(3pm) User Contributed Perl Documentation Net::Server::Mail::ESMTP::XFORWARD(3pm)
NAME
Net::Server::Mail::ESMTP::XFORWARD - A module to add support to the XFORWARD command in Net::Server::Mail::ESMTP
SYNOPSIS
use Net::Server::Mail::ESMTP;
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::ESMTP socket => $conn;
# activate some extensions
$esmtp->register('Net::Server::Mail::ESMTP::XFORWARD');
# adding some handlers
$esmtp->set_callback(RCPT => &validate_recipient);
$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) && $session->get_forwarded_addr != "10.1.1.1")
{
return(0, 554, "$recipient: Recipient address rejected: Relay access denied");
}
return(1);
}
DESCRIPTION
When using a Net::Server::Mail::ESMTP script inside a MTA and not in front of Internet, values like client IP address are not accessible to
the script and when the script returns mail to an other instance of smtpd daemon, it logs "localhost" as incoming address. To solve this
problem, some administrators use the XFORWARD command. This module gives the ability to read and store XFORWARD informations.
METHODS
These methods return the values set by the upstream MTA without modifying them so they can be set to undef or "[UNVAILABLE]". See Postfix
documentation for more.
o get_forwarded_values : returns a hash reference containing all values forwarded (keys in lower case).
o get_forwarded_name : returns the up-stream hostname. The hostname may be a non-DNS hostname.
o get_forwarded_address : returns the up-stream network address. Address information is not enclosed with []. The address may be a non-IP
address.
o get_forwarded_source : returns LOCAL or REMOTE.
o get_forwarded_helo : returns the hostname that the up-stream host announced itself. It may be a non-DNS hostname.
o get_forwarded_proto : returns the mail protocol for receiving mail from the up-stream host. This may be an SMTP or non-SMTP protocol
name of up to 64 characters.
SEE ALSO
Net::Server::Mail::ESMTP, <http://www.postfix.org/XFORWARD_README.html>
AUTHOR
Xavier Guimard, <x.guimard@free.fr>
COPYRIGHT AND LICENSE
Copyright (C) 2006 by Xavier Guimard
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.6.4 or,
at your option, any later version of Perl 5 you may have available.
POD ERRORS
Hey! The above document had some coding errors, which are explained below:
Around line 167:
You forgot a '=back' before '=head1'
perl v5.10.0 2007-04-09 Net::Server::Mail::ESMTP::XFORWARD(3pm)