Search
j0ke.net Open Build Service
>
Projects
>
server:mail
>
qmail-spp-plugins
> authlogger.c
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File authlogger.c of Package qmail-spp-plugins
/* * * Tomislav Randjic 20060926 * */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> int main(int argc, char **argv) { char *user = getenv("SMTPAUTHUSER"); int ppid = getppid(); if (user != NULL && strlen(user) > 0) { fprintf(stderr, "authlogger: pid %d - smtp user authenticated as %s\n", ppid, user); } return 0; }