Search
j0ke.net Open Build Service
>
Projects
>
server:mail
>
qmail-spp-plugins
> authrequired.c
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File authrequired.c of Package qmail-spp-plugins (Revision 6)
Currently displaying revision
6
,
show latest
/* * * Tomislav Randjic 20060929 * */ #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) { puts("E550 SMTP AUTH required"); fprintf(stderr, "authrequired: pid %d - message rejected, SMTP AUTH required.\n", ppid); } return 0; }