<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://tech.uvoo.io/index.php?action=history&amp;feed=atom&amp;title=Smtpd_server_python</id>
	<title>Smtpd server python - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://tech.uvoo.io/index.php?action=history&amp;feed=atom&amp;title=Smtpd_server_python"/>
	<link rel="alternate" type="text/html" href="https://tech.uvoo.io/index.php?title=Smtpd_server_python&amp;action=history"/>
	<updated>2026-04-24T19:12:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>https://tech.uvoo.io/index.php?title=Smtpd_server_python&amp;diff=5182&amp;oldid=prev</id>
		<title>Busk: Created page with &quot;``` import asyncore from smtpd import SMTPServer   class MySMTPServer(SMTPServer):     def process_message(self, peer, mailfrom, rcpttos, data):         print(f&quot;Received messa...&quot;</title>
		<link rel="alternate" type="text/html" href="https://tech.uvoo.io/index.php?title=Smtpd_server_python&amp;diff=5182&amp;oldid=prev"/>
		<updated>2024-04-08T20:52:56Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;``` import asyncore from smtpd import SMTPServer   class MySMTPServer(SMTPServer):     def process_message(self, peer, mailfrom, rcpttos, data):         print(f&amp;quot;Received messa...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;```&lt;br /&gt;
import asyncore&lt;br /&gt;
from smtpd import SMTPServer&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
class MySMTPServer(SMTPServer):&lt;br /&gt;
    def process_message(self, peer, mailfrom, rcpttos, data):&lt;br /&gt;
        print(f&amp;quot;Received message from: {mailfrom}&amp;quot;)&lt;br /&gt;
        print(f&amp;quot;Recipients: {rcpttos}&amp;quot;)&lt;br /&gt;
        print(&amp;quot;Message:&amp;quot;)&lt;br /&gt;
        print(data)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
def run_server():&lt;br /&gt;
    # Replace 'localhost' and 1025 with the desired hostname and port&lt;br /&gt;
    server = MySMTPServer(('localhost', 1025), None)&lt;br /&gt;
    print(&amp;quot;SMTP echo server running...&amp;quot;)&lt;br /&gt;
    try:&lt;br /&gt;
        asyncore.loop()&lt;br /&gt;
    except KeyboardInterrupt:&lt;br /&gt;
        print(&amp;quot;Server stopped.&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
if __name__ == &amp;quot;__main__&amp;quot;:&lt;br /&gt;
    run_server()&lt;br /&gt;
```&lt;/div&gt;</summary>
		<author><name>Busk</name></author>
	</entry>
</feed>