|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Andreas Winkelmann (ml
awinkelmann.de)
Date: Tue May 06 2008 - 14:47:59 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Montag, 21. April 2008, rahul
synovel.com wrote:
> I am right now using PAM authentication through saslauthd for SMTP
> authentication. Currently the PAM service name which postfix uses is
> "smtp". Is it possible to change this service name which is being sent to
> PAM via saslauthd?
Only with changing the Postfix Source-Code, this name is static in Postfix.
.../src/smtpd/smtpd_sasl_glue.c
...
/* smtpd_sasl_connect - per-connection initialization */
void smtpd_sasl_connect(SMTPD_STATE *state, const char *sasl_opts_name,
const char *sasl_opts_val)
{
...
/*
* Set up a new server context for this connection.
*/
#define SMTPD_SASL_SERVICE "smtp"
if ((state->sasl_server =
xsasl_server_create(smtpd_sasl_impl, state->client,
SMTPD_SASL_SERVICE, *var_smtpd_sasl_realm ?
var_smtpd_sasl_realm : (char *) 0,
sasl_opts_val)) == 0)
msg_fatal("SASL per-connection initialization failed");
...
Change the "smtp" in the #define to what you need.
--
Andreas
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]