Tag Archives: mail

Network: Forwarding SNMP Traps by mail with snmptrapd and snmptt

Hi,

this post describes a simply way to forward all traps by E-Mail received via SNMP.

This process is splited in several steps

  • Receive the traps => snmptrapd
  • snmptrapd calls the trapshandler script after each received trap. The trap details are handed over to the script by STDIN
  • The trap handler is /usr/sbin/snmptthandler. This script spools all traps to /var/spool/snmptt
  • The snmptt gets the traps from the spool folder, translate them in a human readable format and calls a custum script defined by snmptt.conf

Continue reading Network: Forwarding SNMP Traps by mail with snmptrapd and snmptt

Mail: Connect TLS encrypted to a smtp server by telnet

Hi,

the SMTP protocol is ASCII based. In the past, the SMTP protocol goes unencrypted over the wire means you can simply send emails by connecting to the SMTP port 25 and enter some SMTP commands via telnet:

michael@debdev ~ # telnet smtp.yourdomain.org 25
EHLO test.example.com
MAIL FROM:info@yourdomain.org
RCPT TO:receiver@receiversdomain.org
DATA
Subject: Testmessage
<ENTER>
<ENTER>
This is a test message. End with <ENTER><ENTER> and point

.
QUIT

Continue reading Mail: Connect TLS encrypted to a smtp server by telnet

Mail: Generator for mail subject line with Emoji, Pictographs and Symbols

Hi,

to show emoji,Pictographs or symbols in email subject line this line must be UTF8 encoded.

For example a heart. A heart has the Unicode Heart Unicode UTF8(Hex) Code 0xE2 0x99 0xA5.
Continue reading Mail: Generator for mail subject line with Emoji, Pictographs and Symbols