# import the standard smtplib libraryimport smtplibfrom eventlet import patcherpatcher.monkey_patch(all=False, socket=True) # patch socket and sslimport eventletimport sysimport emailimport getoptdef local_property(func): return property(**func())class SMTPRelayServer(object): def __init__(self, host=None, port=None, ssl=False, listen_addr=('0.0.0.0', 6000)): """host is the ip address of the server
Using Phpmailer to send messages uses an unencrypted SMTP server, and the SMTP server used this time is connected using SSL (secure Sockets Layer, Secure Sockets Layer).
Fortunately, Phpmailer support SSL SMTP server, online data
By default, Windows opens many service ports on your computer. Hackers often use these ports to intrude. Therefore, mastering port knowledge is essential for secure Internet access.
I. Common ports and their classification
Computers need to use the TCP/IP protocol to communicate with each other over the Internet. According to the TCP/IP protocol, the computer has 256x256 (65536) ports, these ports can be divided into TCP
glacier default connection port is 7626, WAY 2.4 is 8011, Netspy 3.0 is 7306, Yai virus is 1024 and so on.
(ii) By type of agreement:
Can be divided into ports such as TCP, UDP, IP, and ICMP (Internet Control Message Protocol). The following are mainly about TCP and
UDP port.
(1) TCP port
The TCP port, the Transmissio
provided these services, the port (toilet) must be opened. When someone goes to the toilet, a link is established on these ports. If the restroom is occupied, it indicates that the port number is occupied by the service. If the public restroom service is unavailable one day, the restroom is removed, naturally, there is no port number. In fact, a more vivid examp
Control
Application Layer Gateway Service
23
Tcp
Telnet
Telnet
25
Tcp
Smtp
Simple Mail Transfer Protocol
25
Tcp
Smtp
Exchange Server
42
Tcp
WINS replication
Windows Internet Name Service
42
Udp
WINS replication
Windows Internet Name Service
you reside behind a restrictive firewall which does not allow Outgoing SMTP connections failed t to a designated mail server. you want to connect to a different mail server,mail.example.net, On port 25. You have an SSH account on a machineshell.example.org, Which does not reside within the restrictive firewall and can
Today, the client told me that he had a server to send mail to the Domino server via SMTP, but his server could not access the Domino server's 25 port anyway, so let me go over there to help resolve the process Step One: Check 172.1.1.208 25
Today, a small email message, all the parameters are set, the server is not responding.At first the suspicion was that the mail server was not set up, and the mail server and Outlook were found to be consistent.Suspect port number 25 is incorrect. Most of the information is said to be 25.。。。Later found this page, saidU
The first line starting with no # In master. cf should be SMTP Inet n-n -- smtpdThis line indicates the SMTP process andSMTP 25/tcp mailSMTP 25/udp mailCounterpartAppend a row to the end and modify the previous name, as shown in figureSmtp2 Inet n--smtpd,After saving, add a server process port number in/etc/services, f
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.