Deprecated: Use of MediaWiki\Parser\Parser::$mTemplatePath was deprecated in MediaWiki 1.42. [Called from MediaWiki\Extension\DynamicPageList3\Parse::parse in /home/httpd/vhosts/unix.fish/raysoft.ch/w/extensions/DynamicPageList3/includes/Parse.php at line 105] in /home/httpd/vhosts/unix.fish/raysoft.ch/w/includes/debug/MWDebug.php on line 372 Deprecated: Asking for a replica from groups except dump/vslow is deprecated: dpl [Called from Wikimedia\Rdbms\LoadBalancer::getConnectionInternal in /home/httpd/vhosts/unix.fish/raysoft.ch/w/includes/libs/rdbms/loadbalancer/LoadBalancer.php at line 805] in /home/httpd/vhosts/unix.fish/raysoft.ch/w/includes/debug/MWDebug.php on line 372 Deprecated: Caller from MediaWiki\Extension\DynamicPageList3\Query::buildAndSelect - Simple_Mail_Transfer_Protocol ignored an error originally raised from MediaWiki\Extension\DynamicPageList3\Query::buildAndSelect - Simple_Mail_Transfer_Protocol: [1054] Unknown column 'ecl1.cl_to' in 'where clause' in /home/httpd/vhosts/unix.fish/raysoft.ch/w/includes/debug/MWDebug.php on line 372 Deprecated: Caller from MediaWiki\Page\PageStore::getPageByNameViaLinkCache ignored an error originally raised from MediaWiki\Extension\DynamicPageList3\Query::buildAndSelect - Simple_Mail_Transfer_Protocol: [1054] Unknown column 'ecl1.cl_to' in 'where clause' in /home/httpd/vhosts/unix.fish/raysoft.ch/w/includes/debug/MWDebug.php on line 372 Simple Mail Transfer Protocol - RaySoft Jump to content

Simple Mail Transfer Protocol

From RaySoft

Simple Mail Transfer Protocol (SMTP) is an Internet standard for electronic mail (e-mail) transmission across Internet Protocol (IP) networks. SMTP was first defined by RFC 821 (1982), and last updated by RFC 5321 (2008) which includes the extended SMTP (ESMTP) additions, and is the protocol in widespread use today. SMTP uses TCP port 25.[1]

While electronic mail servers and other mail transfer agents use SMTP to send and receive mail messages, user-level client mail applications typically only use SMTP for sending messages to a mail server for relaying. For receiving messages, client applications usually use either the Post Office Protocol (POP) or the Internet Message Access Protocol (IMAP) or a proprietary system to access their mail box accounts on a mail server.[1]

Documentation

Request for Comments (RFC)

Implementations

Server

Extension:DynamicPageList3 (DPL3), version 3.6.4: Error: Error 1054: Unknown column 'ecl1.cl_to' in 'where clause' Function: MediaWiki\Extension\DynamicPageList3\Query::buildAndSelect - Simple_Mail_Transfer_Protocol Query: SET STATEMENT max_statement_time=10 FOR SELECT DISTINCT IFNULL(cl1.cl_sortkey, REPLACE(CONCAT(CASE `wp_page`.page_namespace WHEN 1 THEN 'Talk:' WHEN 2 THEN 'User:' WHEN 3 THEN 'User_talk:' WHEN 4 THEN 'RaySoft:' WHEN 5 THEN 'RaySoft_talk:' WHEN 6 THEN 'File:' WHEN 7 THEN 'File_talk:' WHEN 8 THEN 'MediaWiki:' WHEN 9 THEN 'MediaWiki_talk:' WHEN 10 THEN 'Template:' WHEN 11 THEN 'Template_talk:' WHEN 12 THEN 'Help:' WHEN 13 THEN 'Help_talk:' WHEN 14 THEN 'Category:' WHEN 15 THEN 'Category_talk:' END, `wp_page`.page_title), '_', ' ')) AS `sortkey`,`wp_page`.page_namespace AS `page_namespace`,`wp_page`.page_id AS `page_id`,`wp_page`.page_title AS `page_title` FROM `wp_page` `wp_page` JOIN `wp_categorylinks` `cl1` ON ((`wp_page`.page_id = cl1.cl_from AND cl1.cl_to = 'Simple_Mail_Transfer_Protocol')) JOIN `wp_categorylinks` `cl2` ON ((`wp_page`.page_id = cl2.cl_from AND (cl2.cl_to = 'Suite' OR cl2.cl_to = 'Server'))) LEFT OUTER JOIN `wp_categorylinks` `ecl1` ON ((`wp_page`.page_id = ecl1.cl_from AND ecl1.cl_to ='Component')) WHERE `wp_page`.page_is_redirect = 0 AND `wp_page`.page_namespace = 0 AND ecl1.cl_to IS NULL ORDER BY sortkey ASC LIMIT 500

Client

Extension:DynamicPageList3 (DPL3), version 3.6.4: Error: Error 1054: Unknown column 'ecl1.cl_to' in 'where clause' Function: MediaWiki\Extension\DynamicPageList3\Query::buildAndSelect - Simple_Mail_Transfer_Protocol Query: SET STATEMENT max_statement_time=10 FOR SELECT DISTINCT IFNULL(cl1.cl_sortkey, REPLACE(CONCAT(CASE `wp_page`.page_namespace WHEN 1 THEN 'Talk:' WHEN 2 THEN 'User:' WHEN 3 THEN 'User_talk:' WHEN 4 THEN 'RaySoft:' WHEN 5 THEN 'RaySoft_talk:' WHEN 6 THEN 'File:' WHEN 7 THEN 'File_talk:' WHEN 8 THEN 'MediaWiki:' WHEN 9 THEN 'MediaWiki_talk:' WHEN 10 THEN 'Template:' WHEN 11 THEN 'Template_talk:' WHEN 12 THEN 'Help:' WHEN 13 THEN 'Help_talk:' WHEN 14 THEN 'Category:' WHEN 15 THEN 'Category_talk:' END, `wp_page`.page_title), '_', ' ')) AS `sortkey`,`wp_page`.page_namespace AS `page_namespace`,`wp_page`.page_id AS `page_id`,`wp_page`.page_title AS `page_title` FROM `wp_page` `wp_page` JOIN `wp_categorylinks` `cl1` ON ((`wp_page`.page_id = cl1.cl_from AND cl1.cl_to = 'Simple_Mail_Transfer_Protocol')) JOIN `wp_categorylinks` `cl2` ON ((`wp_page`.page_id = cl2.cl_from AND cl2.cl_to = 'Application')) LEFT OUTER JOIN `wp_categorylinks` `ecl1` ON ((`wp_page`.page_id = ecl1.cl_from AND ecl1.cl_to ='Component')) WHERE `wp_page`.page_is_redirect = 0 AND `wp_page`.page_namespace = 0 AND ecl1.cl_to IS NULL ORDER BY sortkey ASC LIMIT 500

Examples

Send a email directly to a SMTP server using telnet
telnet mail.raysoft.loc 25
220 mail.raysoft.loc ESMTP

HELO oxygen.raysoft.loc
250 mail.raysoft.loc Hello oxygen.raysoft.loc [10.0.0.101]

MAIL FROM: <alex@raysoft.loc>
250 <alex@raysoft.loc> is syntactically correct

RCPT TO: <melman@raysoft.loc>
250 <melman@raysoft.loc> verified

DATA
354 Enter message, ending with "." on a line by itself
From: Alex the Lion <alex@raysoft.loc>
To: Melman the Giraffe <melman@raysoft.loc>
Subject: Who are you?

Hi Melman,
Who are you?

C U,
Alex
.
250 OK

QUIT
221 mail.raysoft.loc closing connection
Send a email directly to a SMTP server with authentication using telnet
echo -en '\0alex@raysoft.loc\0********' | openssl enc -base64

Output:

AGFsZXhAcmF5c29mdC5sb2MAKioqKioqKio=
telnet mail.raysoft.loc 25
220 mail.raysoft.loc ESMTP

EHLO oxygen.raysoft.loc
250 mail.raysoft.loc Hello oxygen.raysoft.loc [10.0.0.101]
250-SIZE 52428800
250-PIPELINING
250-AUTH PLAIN LOGIN
250-STARTTLS
250 HELP

AUTH PLAIN AGFsZXhAcmF5c29mdC5sb2MAKioqKioqKio=
235 Authentication succeeded

MAIL FROM: <alex@raysoft.loc>
250 <alex@raysoft.loc> is syntactically correct

RCPT TO: <melman@raysoft.loc>
250 <melman@raysoft.loc> verified

DATA
354 Enter message, ending with "." on a line by itself
From: Alex the Lion <alex@raysoft.loc>
To: Melman the Giraffe <melman@raysoft.loc>
Subject: Who are you?

Hi Melman,
Who are you?

C U,
Alex
.
250 OK

QUIT
221 mail.raysoft.loc closing connection

References