smtpd | Go package to handle the server side

 by   siebenmann Go Version: Current License: No License

kandi X-RAY | smtpd Summary

kandi X-RAY | smtpd Summary

smtpd is a Go library. smtpd has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

smtpd is a go package for handling the server side of the smtp protocol. it does not handle high level details like what addresses should be accepted or what should happen with email once it has been fully received; those decisions are instead delegated to whatever is driving smtpd. smtpd's purpose is simply to handle the grunt work of a reasonably rfc compliant smtp server, taking care of things like proper command sequencing, tls, and basic correctness of some things. (the standard library net/smtp package handles only the client side of smtp; it makes no attempt to provide the facilities you'd need to write a server.). smtpd sort of comes with a 'sinkhole' smtp server that simply takes in email (perhaps) and doesn't do anything with it beyond perhaps writing it to disk. this is obviously not suitable for production usage but it does make a potentially useful sink for spammers (which is what the author uses it for). this once was cmd/sinksmtp.go, but has become so large and complicated that it has moved out to its own repository, because of its origin as the core engine of a sinkhole smtp server, smtpd is pretty casual about a lot of things in the smtp protocol and in what information it hands to higher layers; for example, it basically ignores smtp parameters on mail from and rcpt
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              smtpd has a low active ecosystem.
              It has 94 star(s) with 21 fork(s). There are 6 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 1 open issues and 3 have been closed. On average issues are closed in 15 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of smtpd is current.

            kandi-Quality Quality

              smtpd has 0 bugs and 0 code smells.

            kandi-Security Security

              smtpd has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              smtpd code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              smtpd does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              smtpd releases are not available. You will need to build from source code and install.

            Top functions reviewed by kandi - BETA

            kandi has reviewed smtpd and discovered the below as its top functions. This is intended to give you an instant insight into smtpd implemented functionality, and help decide if they suit your requirements.
            • Next returns the next command event .
            • ParseCmd parses a command line and returns a ParsedLine .
            • NewConn returns a new Conn .
            • isall7bit checks if b is a 7 - bit character
            • fmtBytesLeft formats the number of bytes left to max .
            • mimeParam returns true if the line is a mime .
            Get all kandi verified functions for this library.

            smtpd Key Features

            No Key Features are available at this moment for smtpd.

            smtpd Examples and Code Snippets

            No Code Snippets are available at this moment for smtpd.

            Community Discussions

            QUESTION

            PHP's mail relay via OpenSMTPD returns error Message is not RFC 2822 compliant
            Asked 2022-Apr-04 at 00:52

            I have the following setting in my php.ini

            ...

            ANSWER

            Answered 2022-Apr-01 at 13:00

            RFC2822 says Date: and From: headers are required (section 3.6)

            Source https://stackoverflow.com/questions/71706100

            QUESTION

            Python C API Undefined symbols for architecture x86_64
            Asked 2022-Jan-01 at 16:23

            I'm trying to compile a file that makes use of Python's C API. I'm working in a conda enviroment, running on macOS Monterey. I'm compiling using GCC as following:

            ...

            ANSWER

            Answered 2022-Jan-01 at 06:20

            This command: gcc file.o -o a.out does not link to a python library.

            You need to add (append) -lpython3 and possibly -L${CONDA_PREFIX}/lib/python3.9 to it.

            Source https://stackoverflow.com/questions/70545558

            QUESTION

            Docker-compose error -- panic: runtime error: index out of range [1] with length 1
            Asked 2021-Aug-27 at 21:29

            I've been trying to get Docker working with Postgres and Flask and I was having issues with Postgres password and docker not being able to find my entry.sh file. This seemed to be an issue with docker not updating properly, but now after updating, I am getting "go" errors when I run docker-compose up, and I don't know what they mean.

            Here's the error log:

            ...

            ANSWER

            Answered 2021-Aug-27 at 21:29

            TLDR: I guess I had containers in the background that were binding ports.

            Simple fix:

            Source https://stackoverflow.com/questions/68900909

            QUESTION

            Django 3 - password reset - not generating email
            Asked 2021-Aug-24 at 16:21

            I've followed multiple sources on how to set this up. Now everything seems working (no error) but I just don't see the email.

            gmail - Allow less secure apps: ON

            url.py

            ...

            ANSWER

            Answered 2021-Aug-24 at 16:21

            The code was fine. Something was off with the email formatting. I didn't experiment enough, but ".com" ending seems fine, ".me" isn't.

            Source https://stackoverflow.com/questions/68908018

            QUESTION

            SSL_accept error in log while using Postfix
            Asked 2021-Aug-07 at 06:55

            So I set up a mail server on my VPS with cyberpanel and I can send emails manually through rainloop. I also have a program based on the lettre crate for Rust which runs perfectly fine on my own devices and correctly sends emails out through code. However when I try to run the program on my VPS, I get the following messages in my syslog.

            ...

            ANSWER

            Answered 2021-Aug-07 at 06:55

            globalfun postfix/smtps/smtpd[24656]: warning TLS library problem: error 14094418:SSL routines:ssl3_resl3_read_bytes: tlsv1 alert unknown ca:../ssl/rec/layer_s3.c:1543:SSL alert number 48:

            Your client refuses to connect to your mail server since it does not trust the CA which issued the mail servers certificate. It notifies the server about this problem by sending a unknown ca TLS alert.

            There can be various reasons for this. Typically it is either the use of a CA which is not trusted by the client which need to be fixed at the client (trust this CA) or at the server (use a certificate from a CA trusted by the client). Or the root CA is actually trusted but the server is not sending the intermediate certificates needed by the client to build the trust chain to this trusted root CA. This need to be fixed at the server.

            Source https://stackoverflow.com/questions/68688634

            QUESTION

            PEAR Mail in php:apache Docker container
            Asked 2021-Jun-07 at 05:37

            I have two servers. A Postfix mail server with Dovecot that, otherwise, works fine. I can send mail through it using Gmail client (So, yes there is a valid certificate installed there). The other server is my app server, which has the php:7.4-apache image running. I've installed the PEAR Mail library into that container/image, and I'm trying to send mail from the app through the mail server, but the PEAR Mail client keeps hanging up after it sends STARTTLS. Questions:

            What am I doing wrong?

            Maillog on the mail server says only this:

            ...

            ANSWER

            Answered 2021-Jun-03 at 15:25

            Since the very problem here is TLS not working, any suggestion that you should edit Mail.php

            Source https://stackoverflow.com/questions/67809099

            QUESTION

            Manually/locally installed python packages dont show up in visual studio
            Asked 2021-Apr-16 at 07:38

            So I manually installed a locally downloaded python package by going into the folder directory and using the cmd command:

            python setup.py install

            After that it just installed itself normally. Using the python function help("modules") in cmd also confirmed that it was installed correctly as I can see the name being given out. The two modules are called binance_d and binance_f

            ...

            ANSWER

            Answered 2021-Apr-16 at 07:38

            I followed this document and I can get what I want. The most importance thing is that the command does not copy the generated files into the pyhton 3.9.4 folder automatically. You have to copy them manually.

            1) first download the project under this link and then unpack the file.

            Run these under cmd:

            Source https://stackoverflow.com/questions/67115466

            QUESTION

            Postfix not using given ssl certificate
            Asked 2021-Apr-10 at 15:31

            I'm getting errors, such as the one below, in my /var/log/mail.log file.

            ...

            ANSWER

            Answered 2021-Apr-10 at 15:31

            So, turns out, when I updated my certificate locations when I changed the method of acquiring them (certbot vs acme.sh), I got a typo in one of the filenames. /etc/dovecot/conf.d/10-ssl.conf was correct and so was /etc/postfix/main.cf, but /etc/postfix/vmail_ssl.map had a typo which I didn't see previously - and so was throwing a certificate error.

            Source https://stackoverflow.com/questions/67025067

            QUESTION

            Postfix not receiving mail. Helo command Unauthorized
            Asked 2021-Mar-03 at 14:41

            OS: Ubuntu 12.04

            Mail version: Postfix 2.9.6

            The sender is able to receive emails from us, but the emails are not showing up in our mailboxes, and I do not understand why.

            ...

            ANSWER

            Answered 2021-Mar-03 at 14:24

            I found it! In /etc/postfix/helo_access.pcre, there was this regex pattern:

            /.*\.co$/ DISCARD Unauthorized-2015-240

            which matched the message in the logs:

            Helo command Unauthorized-2015-240

            So I added regex to allow that specific domain:

            /.*o1.ptr3680.wellable.co$/ OK

            then reloaded Postfix and the emails were received upon trying again.

            Source https://stackoverflow.com/questions/66447425

            QUESTION

            AWK to pick FQDN hostname conditionally from the File
            Asked 2021-Feb-25 at 07:39

            Experts I came again after reading how to provide minimal reproducible example, I am placing the question again.

            I want to filter the fully qualified hostname(eg: dtc4028.ptc.db01.delta.com) and count the repetition on an individual host.

            Below is my raw data:

            ...

            ANSWER

            Answered 2021-Feb-25 at 07:12

            Based on your shown samples, could you please try following. Written and tested in GNU awk.

            Source https://stackoverflow.com/questions/66363733

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install smtpd

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/siebenmann/smtpd.git

          • CLI

            gh repo clone siebenmann/smtpd

          • sshUrl

            git@github.com:siebenmann/smtpd.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link