Skip to content

A Linux PAM module to authenticate users against an SMTP server

License

Notifications You must be signed in to change notification settings

robot-dot-win/pam_smtp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

DESCRIPTION

pam_smtp is a Linux PAM module which provides a way to authenticate users against an SMTP server.

On success it returns PAM_SUCCESS, otherwise it returns PAM_AUTH_ERR, PAM_SERVICE_ERR, PAM_BUF_ERR or PAM_PERM_DENIED.

No credentials are awarded by this module.

BUILD

The source program is a single C++17(and newer) file.

Requires: pam-devel, libcurl-devel

$ g++ pam_smtp.cpp -o pam_smtp.so -shared -lpam -lcurl -fPIC

USAGE

pam_smtp.so <server[:port]> [starttls|tls] [@domain_name]

If @domain_name is not omitted, username against the SMTP will be PAM_USER@domain_name.

Example:

auth   required   pam_smtp.so   smtp-mail.outlook.com:587  starttls  @live.cn

LICENSE

pam_smtp is licensed under the GPLv3 license.

About

A Linux PAM module to authenticate users against an SMTP server

Resources

License

Stars

Watchers

Forks

Languages