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
2
votes
1 answer

NO [ALERT] Unexpected response from remote authentication server

is what I see when I run testsaslauthd inside an strace socket(PF_LOCAL, SOCK_STREAM, 0) = 3 connect(3, {sa_family=AF_LOCAL, sun_path="/var/run/saslauthd/mux"}, 110) = 0 writev(3, [{"\0\34a.chaouche@domain.tld\0\fxxx\0\4imap\0\0", 52}], 1) =…
ychaouche
  • 262
  • 4
  • 15
2
votes
1 answer

Ubuntu: Postfix and Cyrus expecting saslauthd PID file in different locations

I'm running postfix and cyrus in parallel on my server, as far as I understand this is a quite common think to do. Both daemons use sasl authorization. However, postfix is looking for the saslauthd pid file in /var/spool/postfix/var/run/saslauthd…
Stefan
  • 21
  • 1
2
votes
2 answers

postfix error: 535 5.7.8 Error: authentication failed: authentication failure

I need to connect to Dyn mail relay and I'm using their KB. I'm trying to connect to my postfix server with telnet to port 25. This is the postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases command_directory =…
edotan
  • 1,876
  • 13
  • 39
  • 57
2
votes
2 answers

Postfix omits realm (@domain) when checking for smtpd pam+mysql authentication

I've trying to configure Postfix so users can send email through SMTP having a username and password. And I'm trying to store credential within a MySQL database. I've taken the path of saslauthd and pam and I'm stuck in the midway. Enabling the pam…
Mehran
  • 519
  • 1
  • 5
  • 20
2
votes
1 answer

Mail Server Memory buffer error

From time to time, my mail server stops sending any new mails. When this happened, I find the below error log, Jun 22 23:10:18 myserver saslauthd[3967]: DEBUG: auth_pam: pam_authenticate failed: Memory buffer error Jun 22 23:10:18 myserver…
MohammedSimba
  • 369
  • 2
  • 4
  • 15
2
votes
0 answers

How to pass full user name to saslauthd from postfix

I'm trying to configure postfix for SMTP Auth using Cyrus saslauthd and an rimap configuration. I have it working, except for the fact that, due to virtual domains, the auth username for my IMAP installation uses full email addresses…
Flimzy
  • 2,454
  • 18
  • 26
2
votes
1 answer

searching for the correct way to compile postfix

I am experiencing issues while compiling latest version of postfix from source code. At the moment I'm trying to compile version 3 because Debian 7 and latest Ubuntu 14,10 (version 2,9 and 2,11 for postfix) are buggy for configuring virtual…
blurstream
  • 139
  • 3
2
votes
1 answer

saslauthd on Red Hat 6.5 NO "authentication failed"

I'm trying to authorize an user of an active directory in a red hat linux 6.5. To do that I am using saslauthd. This is its configuration: /etc/saslauthd.conf: ldap_servers: ldap://activeDirectoryHost.us-west-2.compute.amazonaws.com ldap_use_sasl:…
Adrian
  • 141
  • 1
  • 6
2
votes
2 answers

Debugging a Postfix Saslauthd PAM-PGsql authentication failure

I've set up pam-pgsql to lookup passwords in my database for Postfix via Saslauthd. I can test credentials using the command line: $ sudo testsaslauthd -u user@email.com -p password 0: NO "authentication failed" Authentication will fail, and I…
jonallard
  • 261
  • 2
  • 8
2
votes
1 answer

SASL authentication failure: Password verification failed (postfix + cyrus + saslauthd)

We're having difficulties authenticating over smtp, running postfix + cyrus on centos 7. When I try to telnet to port 25 (or 587) locally and auth plain, I get the following errors in the mail log: Sep 25 10:25:00 blabla postfix/smtpd[3858]:…
sdragnev
  • 211
  • 2
  • 3
  • 6
2
votes
1 answer

SASL accepts "wrong" passwords

I setup an mailserver with Postfix and configured it to use Cyrus SASL to authenticate my users. It worked perfectly, until I found out that I can login with shorter passwords than they actually are. For example the Password should be uhuh1234h22 i…
Matthias Dunkel
  • 213
  • 3
  • 7
2
votes
1 answer

Postfix + SASLAUTHD + MySQL authentication problems

I've been trying to sort this out for the past 6 hours or so, this is the error message I'm facing (Running CentOS x64): /var/log/maillog: Jun 22 20:42:49 ptroa postfix/smtpd[10130]: warning: SASL authentication failure: Password verification…
Or W
  • 99
  • 3
  • 10
2
votes
1 answer

testsaslauthd - permission denied

Running: Ubuntu 12.10 32bits server version. I'm trying to connect to the saslauthd and getting the error I mentioned on the title (permission denied). $ /usr/sbin/testsaslauthd -u myuser -p mypassword connect() : Permission denied However when I…
Kleber S.
  • 131
  • 5
2
votes
1 answer

Postfix SMTP auth not working with virtual mailboxes + SASL + Courier userdb

So I've read a variety of tutorials and how-to's and I'm struggling to make sense of how to get SMTP auth working with virtual mailboxes in Postfix. I used this Ubuntu tutorial to get set up. I'm using Courier-IMAP and POP3 for reading mail which…
Greg K
  • 169
  • 3
  • 12
2
votes
5 answers

Help! Linux server under SMTP SASLAUTHD attack!

My linux sendmail server is being forced out of commission by a flood of invalid smtp saslauthd logins. Steady stream of PAM auth errors logged for saslauthd in messages. I have searched and searched for a way to determine the IP so I can block it…
xivix
  • 553
  • 2
  • 8
  • 16