/[smeserver]/rpms/e-smith-email/sme8/e-smith-email-5.2.0-HeloHost.patch
ViewVC logotype

Contents of /rpms/e-smith-email/sme8/e-smith-email-5.2.0-HeloHost.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Mon Dec 21 16:37:51 2009 UTC (14 years, 5 months ago) by filippocarletti
Branch: MAIN
CVS Tags: e-smith-email-5_2_0-24_el5_sme, e-smith-email-5_2_0-14_el5_sme, e-smith-email-5_2_0-16_el5_sme, e-smith-email-5_2_0-10_el5_sme, e-smith-email-5_2_0-13_el5_sme, e-smith-email-5_2_0-9_el5_sme, e-smith-email-5_2_0-15_el5_sme, e-smith-email-5_2_0-6_el5_sme, e-smith-email-5_2_0-5_el5_sme, e-smith-email-5_2_0-12_el5_sme, e-smith-email-5_2_0-22_el5_sme, e-smith-email-5_2_0-7_el5_sme, e-smith-email-5_2_0-18_el5_sme, e-smith-email-5_2_0-19_el5_sme, e-smith-email-5_2_0-17_el5_sme, e-smith-email-5_2_0-20_el5_sme, e-smith-email-5_2_0-21_el5_sme, e-smith-email-5_2_0-27_el5_sme, e-smith-email-5_2_0-26_el5_sme, e-smith-email-5_2_0-8_el5_sme, e-smith-email-5_2_0-11_el5_sme, e-smith-email-5_2_0-28_el5_sme, e-smith-email--, e-smith-email-5_2_0-4_el5_sme, e-smith-email-5_2_0-23_el5_sme, e-smith-email-5_2_0-25_el5_sme, HEAD
* Mon Dec 21 2009 Filippo Carletti <filippo.carletti@gmail.com> 5.2.0-4.sme
- Use HeloHost (if present) in smtp-auth-proxy.pl [SME: 5680]

1 diff -up e-smith-email-5.2.0/root/usr/local/sbin/smtp-auth-proxy.pl.HeloHost e-smith-email-5.2.0/root/usr/local/sbin/smtp-auth-proxy.pl
2 --- e-smith-email-5.2.0/root/usr/local/sbin/smtp-auth-proxy.pl.HeloHost 2008-03-11 18:03:25.000000000 +0100
3 +++ e-smith-email-5.2.0/root/usr/local/sbin/smtp-auth-proxy.pl 2009-12-21 21:57:02.000000000 +0100
4 @@ -29,6 +29,8 @@ sub options {
5 $prop->{SystemName} = $config->get_value('SystemName');
6 $prop->{DomainName} = $config->get_value('DomainName');
7 $prop->{PeerPort} = $smtp_proxy_rec->prop('PeerPort') || 25;
8 + $prop->{Helo} = $config->get('smtpd')->prop('HeloHost') ||
9 + "$prop->{SystemName}.$prop->{DomainName}";
10 }
11
12 esmith::SMTPAuthProxy->run(
13 @@ -52,6 +54,7 @@ sub process_request
14 my $user = $self->get_property('user');
15 my $domain_name = $self->get_property('DomainName');
16 my $system_name = $self->get_property('SystemName');
17 + my $helo = $self->get_property('Helo');
18 my $name = $self->get_property('Userid');
19 my $pass = $self->get_property('Passwd');
20 my $debug = (($self->get_property('Debug') || 'disabled') eq 'enabled')
21 @@ -74,7 +77,7 @@ sub process_request
22
23 my $class = ($port == 465) ? 'Net::SMTP::SSL' : 'Net::SMTP';
24 my $smtp = $class->new($smarthost,
25 - Hello => "${system_name}.${domain_name}",
26 + Hello => Hello => $helo,
27 Debug => $debug,
28 Port => $port,
29 );

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed