Questions tagged [saslauthd]

saslauthd is a daemon process that handles plaintext authentication requests on behalf of the SASL library.

saslauthd is binary shipped in cyrus SASL bundle. It's functioned as a background process who checks passwords using a variety of mechanisms. This server fulfills two roles

  1. It isolates all code requiring superuser privileges into a single process
  2. It can be used to provide proxy authentication services to clients that do not understand SASL based authentication.

This binary accept several parameters, for example

  • -m path : Specify pathname to the named socket to listen on for connection requests.
  • -c : Enable cacheing of authentication credentials

The important parameter is -a to specify authentication mechanism used by saslauthd. The mechanism is dependent upon the facilities provided by the underlying operating system. The example of them is

  • getpwent -- use the getpwent() library function
  • kerberos5 -- use Kerberos 5
  • pam -- use Pluggable Authentication Modules (PAM)
  • rimap -- use a remote IMAP server specified in -O parameter
  • shadow -- use the local shadow password file
  • sasldb -- use the local sasldb database file
  • ldap -- use LDAP (configuration is in /etc/saslauthd.conf)

testsaslauthd binary was used as test utility for the SASL authentication server. Specify an additional -f /path/to/socketdir/mux if saslauthd establishes the UNIX-domain socket in a non-default location. The example shows the response when authentication is successful:

% testsaslauthd -u username -p password
0: OK "Success."

For further references:

109 questions
0
votes
1 answer

535 5.7.8 Error: authentication failed: no mechanism available

I'm using Debian 7, with postfix/courier. When I attempt to login using SMTP I get the following error telnet localhost 25 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 mail.mydomain.com ESMTP Postfix (Debian/GNU) ehlo…
Sbx
  • 79
  • 1
  • 2
  • 5
0
votes
2 answers

sendmail & sasl auth on CentOS 6

I'm moving a mail server from one CentOS 6 to another. I use sendmail with sasl pam authentication. When I try to send mail it fails because the user is not authenticated and the mail client does not require password. All the configurations files…
NickSoft
  • 278
  • 6
  • 23
0
votes
1 answer

Postfix with SASL

I'm getting crazy configuring POSTFIX + DOVECOT + Authenticated SMTP (SASL for now). Pop/imap accounts works well to get the mailbox, but I cannot login to smtp using sasl: Here: [root@mail postfix]# telnet localhost smtp Trying ::1... telnet:…
0
votes
1 answer

Postfix and saslauthd on Debian Wheezy not working after upgrade

Since upgrading to Wheezy I've been unable to send emails via my own mail server which used to have a functioning combination of Dovecot, saslauthd and postfix using pam. Now, running testsaslauthd as root worked fine: $ sudo testsaslauthd -s smtp…
mludd
  • 101
  • 2
0
votes
2 answers

Postfix and dovecot auth

So I am trying to get my head around how this works in relation to how people can send credentials to authenticate via smtp and send mail. With a typical default set up of postfix and dovecot (with something like…
Peter
  • 1,450
  • 2
  • 17
  • 27
0
votes
1 answer

saslauthd + PostFix producing password verification and authentication errors

So I'm trying to setup PostFix while using SASL (Cyrus variety preferred, I was using dovecot earlier but I'm switching from dovecot to courier so I want to use cyrus instead of dovecot) but I seem to be having issues. Here are the errors I'm…
Aram Papazian
  • 133
  • 1
  • 3
  • 10
0
votes
1 answer

Postfix ignoring SASL with dovecot -how to debug?

I recently upgraded my server (Ubuntu 12.03) and today I noticed that SMTP is not offering authentication anymore. My setup is using virtual mailboxes + MySQL. Telnet session: telnet mail.mydomain.net 25 Connected to mail.mydomain.net. Escape…
Einar
  • 225
  • 2
  • 11
0
votes
3 answers

"SQL engine 'mysql' not supported"

I'm having some trouble with postfix and SASL when using a MySQL backend on an Ubuntu server. auth.log Oct 12 13:25:21 lvps92-60-121-255 postfix/smtpd[28508]: sql auxprop plugin using mysql engine Oct 12 13:25:21 lvps92-60-121-255…
Ross
  • 173
  • 2
  • 11
0
votes
1 answer

How to log saslauthd crashes

Is it possible to log saslauthd crash? I had some crashes recently and there is messages that can't be found saslauth mechanisms.
Somebody
  • 364
  • 1
  • 6
  • 17
0
votes
0 answers

postfix secure & insecure connections

I have configured postfix SMTP server for mail sending only with below configurations, I've used cyrus-sasl to authenticate with openLDAP, I want to achieve SMTP port 25 to use insecure connections while on port 587 to make secure TLS…
csx4
  • 101
  • 1
0
votes
2 answers

Postfix smtpd_sender_restrictions with logical AND

I am using postfix, I need to configure sender based restrictions so nobody that is not authenticated & not part of mynetworks can send mail through this server, this is my smptd sender restrictions: smtpd_sender_restrictions = permit_mynetworks,…
csx4
  • 101
  • 1
0
votes
0 answers

SASL authontication is not working in postfix SMTP

Here my details mantech@mail:/etc/pam.d$ ls chfn common-session-noninteractive login runuser chpasswd cron newusers runuser-l chsh cups other …
0
votes
1 answer

testsaslauthd giving "No such file or directory" error

I'm trying to setup a postifix server with virtualmin and while doing so I ran into a SASL error that said "No such file or directory". So I tried testing it with "testsaslauthd -u username -p password", but this also gave me the "No such file or…
Jasper
  • 1
  • 2
0
votes
1 answer

Relay access denied on VPS (error 554 5.7.1)

I'm trying to figure out how to solve a problem on my VPS, maybe you can help me :D Long story short: this is the first time I operate on a Bare Metal VPS, and I'm trying to setup the mail server. After a couple of tries I manage to setup the…
0
votes
1 answer

Fail2Ban - Posfix-SASL not working

i have a problem that my fail2ban will not ban sasl authentications against my postfix. This is an example log entry from /var/log/syslog: Jul 31 13:42:21 v50428 postfix/smtps/smtpd[635398]: warning: xxxx.de[xx.xx.xx.98]: SASL LOGIN authentication…
nils50122
  • 21
  • 1
  • 7