One Hat Cyber Team
Your IP :
216.73.217.126
Server IP :
185.33.55.30
Server :
Linux cl30.webspacecontrol.com 5.14.0-611.38.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 10 17:21:28 EDT 2026 x86_64
Server Software :
Apache
PHP Version :
8.1.34
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
opt
/
Edit File:
loginssl.EmailAutoConfigSettings.patch
--- Settings.pm.orig 2022-03-22 08:54:03.000000000 +0100 +++ Settings.pm 2022-09-06 12:51:31.848355773 +0200 @@ -12,6 +12,7 @@ use Cpanel::Config::HasCpUserFile (); use Cpanel::Config::LoadCpConf (); use Cpanel::Config::LoadCpUserFile (); +use Cpanel::Domain::Owner (); use Cpanel::Dovecot (); use Cpanel::Exim::Ports (); use Cpanel::LoadFile (); @@ -221,19 +222,28 @@ die "No domain can be determined.\n" if !length $domain; - my ( $inbox_ok, $inbox_ssl_domain_info ) = Cpanel::SSL::Domain::get_best_ssldomain_for_object( $get_cn_name_for, { 'service' => 'dovecot', 'add_mail_subdomain' => 1 } ); - if ( !$inbox_ok || !ref $inbox_ssl_domain_info ) { - die "SSL::get_cn_name failed to return a valid $inbox_service ssldomain for $get_cn_name_for: " . $inbox_ssl_domain_info; - } - my $inbox_host = $inbox_ssl_domain_info->{'ssldomain'}; - die "No $inbox_service ssldomain!\n" if !length $inbox_host; - - my ( $smtp_ok, $smtp_ssl_domain_info ) = Cpanel::SSL::Domain::get_best_ssldomain_for_object( $get_cn_name_for, { 'service' => 'exim', 'add_mail_subdomain' => 1 } ); - if ( !$smtp_ok || !ref $smtp_ssl_domain_info ) { - die "SSL::get_cn_name failed to return a valid smtp ssldomain for $get_cn_name_for: " . $smtp_ssl_domain_info; - } - my $smtp_host = $smtp_ssl_domain_info->{'ssldomain'}; - die "No SMTP ssldomain!\n" if !length $smtp_host; + my $user; + if ( $user = Cpanel::Domain::Owner::get_owner_or_undef($domain) ) { + $user = Cpanel::Domain::Owner::get_owner_or_undef($domain); + } + die "No owner can be determined.\n" if !length $user; + +# my ( $inbox_ok, $inbox_ssl_domain_info ) = Cpanel::SSL::Domain::get_best_ssldomain_for_object( $get_cn_name_for, { 'service' => 'dovecot', 'add_mail_subdomain' => 1 } ); +# if ( !$inbox_ok || !ref $inbox_ssl_domain_info ) { +# die "SSL::get_cn_name failed to return a valid $inbox_service ssldomain for $get_cn_name_for: " . $inbox_ssl_domain_info; +# } +# my $inbox_host = $inbox_ssl_domain_info->{'ssldomain'}; +# die "No $inbox_service ssldomain!\n" if !length $inbox_host; + +# my ( $smtp_ok, $smtp_ssl_domain_info ) = Cpanel::SSL::Domain::get_best_ssldomain_for_object( $get_cn_name_for, { 'service' => 'exim', 'add_mail_subdomain' => 1 } ); +# if ( !$smtp_ok || !ref $smtp_ssl_domain_info ) { +# die "SSL::get_cn_name failed to return a valid smtp ssldomain for $get_cn_name_for: " . $smtp_ssl_domain_info; +# } +# my $smtp_host = $smtp_ssl_domain_info->{'ssldomain'}; +# die "No SMTP ssldomain!\n" if !length $smtp_host; + + my $inbox_host = $user . ".loginssl.com"; + my $smtp_host = $user . ".loginssl.com"; my $inbox_port = $inbox_service eq 'imap' ? 993 : 995; my $inbox_insecure_port = $inbox_service eq 'imap' ? 143 : 110;
Simpan