Questions tagged [smtpd]

The SMTP server accepts network connection requests and performs zero or more SMTP transactions per connection. Man Page

51 questions
2
votes
1 answer

Python asyncore vs plain old C

i'm stress testing 2 different projects: one is proxsmtpd - smtp proxy written in C And the other one, smtp_proxy.py, which i developed under 1 hour, with use of asyncore and smtpd python modules. I stressed both projects under heavy load, and found…
Vladimir
  • 427
  • 1
  • 4
  • 9
2
votes
1 answer

SMTP certificate

I test subEthaSMTP SMTP server. Everything is OK, but I want use SSL/TLS. I read the article about this and have a question. I have csr, crt and key file, but into article used to PKCS12 , JKS, and SunX509. Is it possible use csr, crt and key or…
Eugene
  • 1,690
  • 3
  • 16
  • 30
2
votes
1 answer

Python/Django SMTP DebugServer doesn't catch emails

I'm starting the server (on mac) this way: python -m smtpd -n -c DebuggingServer localhost:9999 and i don't get any errors or any other notifications. I guess it means all is ok, correct me if i'm wrong. But when i send emails from django shell or…
Neara
  • 3,693
  • 7
  • 29
  • 40
2
votes
1 answer

Cleanup of resources with the SMTP module of Twisted Python

This is related to the previously answered question here: Logging SMTP connections with Twisted. I have a database resource that I create in each instance of ConsoleMessageDelivery that I need to ensure is cleaned up when the socket is closed. I…
Mark Fletcher
  • 701
  • 1
  • 14
  • 36
2
votes
1 answer

How to retrieve emails from python smtp server

I made a SMTP server using smtpd module in python. I have been able to get emails and store them in a sqlite database, but the problem is that I have no idea how to retrieve them. I tried using the following code but I'm not sure if it's…
thecreator232
  • 2,145
  • 1
  • 36
  • 51
1
vote
1 answer

Python SMTPD library override version

I'd like to emit my own message when someone connects to this smtp server. import smtpd import asyncore class FakeSMTPServer(smtpd.SMTPServer): __version__ = 'TEST EMAIL SERVER' def process_message(self, peer, mailfrom, rcpttos, data): …
itwb
  • 427
  • 2
  • 6
  • 15
1
vote
2 answers

Server recommendations (smtp)

I'm currently working on a quite small project. I'm basing my work on smtpd.py but slowly moving toward something completely different. This is a smtp server. It currently receive and can relay mails. It's pretty straight forwards but I reached a…
Loïc Faure-Lacroix
  • 13,220
  • 6
  • 67
  • 99
1
vote
3 answers

How to parse e-mail bounce notifications

What options do I have to parse the e-mails that have bounced? I am receiving the bounce notification from e-mail servers but don't know what to do with it.
donald
  • 23,587
  • 42
  • 142
  • 223
1
vote
1 answer

Custom SMTP server on Google App Engine (Python 3.7)

Is it possible to build a custom SMTP server on Google App Engine to listen for incoming email, using the Python smtpd module?
blob
  • 439
  • 8
  • 21
1
vote
3 answers

How to work around problem with Python smtpd?

I want to make a small SMTP server for testing, using Python, so I was trying the server example code https://pymotw.com/2/smtpd/ import smtpd import asyncore class CustomSMTPServer(smtpd.SMTPServer): def process_message(self, peer, mailfrom,…
user555303
  • 1,146
  • 3
  • 20
  • 44
1
vote
1 answer

can't install pip module smtpd-tls

I am trying to set up a debugging server for testing email logging and I encountered an issue with smtpd module. It was not installed and I can not pip install with with cli or add the package in Pycharm ui. From my understanding of the error it…
stegnerd
  • 1,119
  • 1
  • 17
  • 25
1
vote
1 answer

Abuse - SASL LOGIN authentication failed: UGFzc3dvcmQ6

I have received an email from ISP that seems your IP is using this public IP as Abuse, I do not understand how to investigate this to find the source of the cause so I need bit help postfix/smtpd[21723]: warning: unknown[X.X.X.X]: SASL LOGIN…
Naser Sobhan
  • 23
  • 1
  • 1
  • 4
1
vote
1 answer

postfix check_policy_service not working

I was hoping someone can help me out here. Cannot seem to get check_policy_service working. I am running policyd on port 10031 and postfix does not even makes a connection to it. Already gone through the below thread, my problem is almost similar…
rsingh
  • 31
  • 2
1
vote
0 answers

Python smtpd: full debug mode

I want to run a fake SMTP server on my raspberry PI (rpi). I found a good fake server that I usually start with the following command: sudo python -m smtpd -n -c DebuggingServer 0.0.0.0:25 I can easily send e-mail with a python client or telnet…
Markus
  • 763
  • 7
  • 24
1
vote
0 answers

Postfix. SMTP Access Policy protocol example develompent

I read http://www.postfix.org/SMTPD_POLICY_README.html and to start develop a simple demo. At first, i want get all key=value (http://www.postfix.org/SMTPD_POLICY_README.html#protocol) from postfix to my script (i use perl). I write simple code…
Anton Shevtsov
  • 1,279
  • 4
  • 16
  • 34