smtp-worker

command
v0.0.0-...-d850007 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 14 Imported by: 0

README

SMTP worker

The SMTP worker

Redirect SMTP request to local hook program.

Usage

Usage of smtp-worker:
  -addr string
    	SMTP listen address
  -on-request string
    	SMTP request handler
  -tls-cert-file string
    	TLS Certificate file
  -tls-key-file string
    	TLS Key file
  -username string
    	Username (default "user")
  -password string
    	Password (default "pass")
On Request

Equivalent to:

<body> | hook-program <to-address> <from-address>

Environments:

Field Name Type
SMTP_FROM string
SMTP_FROM_USERNAME string
SMTP_FROM_DOMAIN string (fqdn)
SMTP_TO string
SMTP_TO_USERNAME string
SMTP_TO_DOMAIN string (fqdn)
SMTP_TO_DOMAIN_TYPE string
SMTP_HOSTNAME string
SMTP_LOCAL_ADDR string (ip address)
SMTP_REMOTE_ADDR string (ip address)
SMTP_UTF8 boolean
SMTP_REQUIRE_TLS boolean
SMTP_BODY_TYPE string
SMTP_BODY_SIZE interge

SMTP_TO_DOMAIN_TYPE:

  • DISPOSABLE_MAIL, disposable email provides
  • FREE_MAIL, free email provides
  • SWOT_MAIL, education email domains
  • DDNS, dynamic dns provides

SMTP_BODY_TYPE:

  • 7BIT, 7bit, e.g: UTF-7, Base64 or Quoted-Printable Encoding
  • 8BITMIME, 8bit MIME
  • BINARYMIME, Binary MIME

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL