zeldor.biz

Linux, programming and more

Copyright © 2023
Log in

SMTP debugging for Humans

January 30, 2020 by Igor Drobot Leave a Comment

A lot of different tools are around the internet which can be useful to determine different SMTP troubles.

The most of them are very useful but they are all reachable over the internet and don’t provide any kind of API for integration of monitoring or complex integration in (pre)deployment pipelines.
This is a short overview of some command line tools for developers and administrators, to check the e-mail flow during developing, emulate and intercept outgoing emails and afterwards for maintaining the setups.

SWAKS

swaks -s 127.0.0.1 -p 2025 -t kiwi@zeldor.biz

smtpd

Native python smtpd-library which is accessible from each python installation. smtpd-library starts a development smtp-proxy

python3 -m smtpd -n -c DebuggingServer -d 127.0.0.1:2025

For more debugging output, can be use the -d flag which Turn on the debugging prints.

dsmptd

dsmtpd is a small python-tool to help the developer without a running smtp server to debug the email flows, which gets generated from the code.

Name: dsmtpd
Version: 0.2.2
Summary: Simple SMTP Server for debugging
Home-page: https://github.com/matrixise/dsmtpd

Installation works for any platform with python support:

pip3 install dsmtpd

Start dsmtpd on port 2025 and bind to localhost.

dsmtpd -p 2025 -i 127.0.0.1

Filed Under: Linux, Programming, Python Tagged With: Debug, Python, SMTP

Categories

Archives

Tags

apache2 Apple arduino ARM Automation backup bash Cisco Cluster Corosync Database Debian Debian squeeze DIY DNS Fedora FTP Fun Icinga Ipv6 KVM Linux LVM MAC OS X Monitoring MySQL Nagios Nginx openSUSE OpenVPN PHP Proxy Python python3 qemu RAID rsync Samba security ssh Ubuntu virtualization Windows Windows 7 Wordpress

Leave a Reply

Your email address will not be published. Required fields are marked *