Server IP : 85.214.239.14 / Your IP : 3.147.49.19 Web Server : Apache/2.4.62 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.18 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /proc/2/cwd/usr/share/perl5/Amavis/In/ |
Upload File : |
# SPDX-License-Identifier: GPL-2.0-or-later package Amavis::In::Connection; # Keeps relevant information about how we received the message: # client connection information, SMTP envelope and SMTP parameters use strict; use re 'taint'; BEGIN { require Exporter; use vars qw(@ISA @EXPORT @EXPORT_OK %EXPORT_TAGS $VERSION); $VERSION = '2.412'; @ISA = qw(Exporter); } sub new { my $class = $_[0]; bless {}, $class } sub client_ip # client IP address (immediate SMTP client, i.e. our MTA) { @_<2 ? shift->{client_ip} : ($_[0]->{client_ip} = $_[1]) } sub client_port # TCP source port number (immediate SMTP client) { @_<2 ? shift->{client_port} : ($_[0]->{client_port} = $_[1]) } sub socket_ip # IP address of our interface that received connection { @_<2 ? shift->{socket_ip} : ($_[0]->{socket_ip} = $_[1]) } sub socket_port # TCP port of our interface that received connection { @_<2 ? shift->{socket_port} : ($_[0]->{socket_port} = $_[1]) } sub socket_proto # TCP/UNIX { @_<2 ? shift->{socket_proto}: ($_[0]->{socket_proto} = $_[1])} sub socket_path # socket path, UNIX sockets only { @_<2 ? shift->{socket_path} : ($_[0]->{socket_path} = $_[1])} # RFC 3848 sub appl_proto # SMTP/ESMTP(A|S|SA)/LMTP(A|S|SA) / AM.PDP/AM.CL/QMQP/QMQPqq { @_<2 ? shift->{appl_proto} : ($_[0]->{appl_proto} = $_[1]) } sub smtp_helo # (E)SMTP HELO/EHLO parameter { @_<2 ? shift->{smtp_helo} : ($_[0]->{smtp_helo} = $_[1]) } 1;