Sign inSign up

jkroepke/openshift-mta

By jkroepke

Updated over 6 years ago

MTA in a docker primary designed for Red Hat's secure Openshift environment.

Image
1

100K+

jkroepke/openshift-mta repository overview

Docker Pulls Docker Stars

openshift-mta

MTA in a docker primary designed for Red Hat's secure Openshift environment.

This MTA based on the powerful, efficient, and scalable Mail Transport Agent sendmail. 🎉

Variants

I'm currently testing some other variants like postfix, exim and some other ugly MTAs.

You can find the current status here: https://github.com/jkroepke/openshift-mta/blob/master/VARIANTS.md

Configuration

Volumes

NamePath
persistent sendmail queue/var/spool/mqueue/

Environment Variables

Generic Variables
NameResults in ...
SENDMAIL_FEATURE_*FEATURE\(\`$name'\)dnl on sendmail.mc
SENDMAIL_DEFINE_*define(\`$name', \`$value')dnl on sendmail.mc
SENDMAIL_DROP_BOUNCE_MAILSDrop bounce mails
SENDMAIL_LISTENForce sendmail to listen on specific address
SENDMAIL_LISTEN_MODIFIERConfigure daemon modifier. See: http://www.sendmail.org/~gshapiro/8.10.Training/DaemonPortOptions.html
SENDMAIL_DISABLE_SENDER_RDNSRemove sender ip lookup. Required on container based environments
SENDMAIL_ACCESSAdditional sendmail access.db setting
SENDMAIL_ROOT_ALIASDefine alias for local root (Mail or /dev/null)
SENDMAIL_SMART_HOST_USERRelayhost authentification user
SENDMAIL_SMART_HOST_PASSWORDRelayhost authentification password
SENDMAIL_FORCE_TLS_VERIFYTLS verify must be valid.
SENDMAIL_FORCE_SENDER_ADDRESSRewrite FROM header in all messages
SENDMAIL_FORCE_RECEIVER_ADDRESSSend all messages to this mailbox. Useful for qa environments
SENDMAIL_RAW_PREPENDRaw configuration prepends to the sendmail.mc
SENDMAIL_RAW_APPENDRaw configuration appends to the sendmail.mc
SENDMAIL_LOCAL_CONFIGLOCAL_CONFIG configuration appends to the sendmail.mc
SENDMAIL_QUEUE_INTERVALsendmail's -q flag specifies how often a sub-daemon will run the queue.
SENDMAIL_EXCLUDE_LOG_PATTERNExclude logs from console output.
SENDMAIL_AUTH_USERAUTH user to forward mails.
SENDMAIL_AUTH_PASSWORDAUTH password to forward mails.
SENDMAIL_CLIENT_OPTIONSSendmail CLIENT_OPTIONS.
Default settings
NameValue
SENDMAIL_ACCESSConnect:10 RELAY\nConnect:127 RELAY\nConnect:172 RELAY\nConnect:192.168 RELAY
SENDMAIL_ROOT_ALIAS/dev/null
SENDMAIL_FEATURE_nouucpnospecial
SENDMAIL_FEATURE_nocanonifytrue
SENDMAIL_FEATURE_authinfotrue
SENDMAIL_DEFINE_STATUS_FILE/dev/null
SENDMAIL_DEFINE_ALIAS_FILE/etc/mail/aliases
SENDMAIL_DEFINE_QUEUE_DIR/var/spool/mqueue
SENDMAIL_DEFINE_confLOG_LEVEL9
SENDMAIL_DEFINE_confMIN_QUEUE_AGE0
SENDMAIL_DEFINE_confREFUSE_LA0
SENDMAIL_DEFINE_confQUEUE_LA0
SENDMAIL_DEFINE_confCACERT_PATH/etc/pki/tls/certs/ca-bundle.trust.crt
SENDMAIL_DEFINE_confCACERT/etc/pki/tls/certs
SENDMAIL_DEFINE_confPID_FILE/tmp/sendmail.pid
SENDMAIL_DEFINE_confDONT_BLAME_SENDMAIL`GroupReadableSASLDBFile,GroupWritableAliasFile,GroupReadableKeyFile,GroupWritableDirPathSafe'
SENDMAIL_DEFINE_confSERVER_SSL_OPTIONS+SSL_OP_NO_SSLv2 +SSL_OP_NO_SSLv3 +SSL_OP_CIPHER_SERVER_PREFERENCE
SENDMAIL_DEFINE_confCLIENT_SSL_OPTIONS+SSL_OP_NO_SSLv2 +SSL_OP_NO_SSLv3
SENDMAIL_DEFINE_confCIPHER_LISTHIGH:MEDIUM:!aNULL:!eNULL@STRENGTH
SENDMAIL_DEFINE_confRUN_AS_USERopenshift:root
SENDMAIL_DEFINE_confAUTH_MECHANISMSLOGIN PLAIN CRAM-MD5 DIGEST-MD5 NTLM
SENDMAIL_DEFINE_confPRIVACY_FLAGSneedmailhelo
SENDMAIL_FORCE_TLS_VERIFYtrue
SENDMAIL_LISTEN_MODIFIERCE
SENDMAIL_CLIENT_OPTIONSFamily=inet
Advanced Variables
NameResults in ...
SENDMAIL_DEBUGEnable debug in sendmail
ENTRYPOINT_DEBUGEnable debug in entrypoint.sh
LIBLOGFAF_SENDTOPipe all log from syslog to LIBLOGFAF_SENDTO

liblogfaf

This is a smail library that should be preloaded with LD_PRELOAD. The wraps the functions syslog and __syslog_chk to send messages to stdout or whatever you want.

Source: https://github.com/jkroepke/liblogfaf

Tag summary

Content type

Image

Digest

Size

73.5 MB

Last updated

over 6 years ago

docker pull jkroepke/openshift-mta