Skip to content

Instantly share code, notes, and snippets.

@mrballcb
Last active August 29, 2015 14:05
Show Gist options
  • Save mrballcb/93dc046a442b818b1660 to your computer and use it in GitHub Desktop.
Save mrballcb/93dc046a442b818b1660 to your computer and use it in GitHub Desktop.
Possible authenticator construction
${if and
{
{!eq{$1}{}}
{!eq{$2}{}}
{crypteq
{$2}
{${extract
{2}
{:}
{${lookup{$1}nis{passwd.byname}{$value}{*:*}}}
}
}
}
{${lookup
{$auth1}
lsearch{/path/to/exim/invalid-users.txt}
{no}{yes}fail
}
}
}
{1} {0}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment