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
1
vote
1 answer

Postfix SMTP+saslauthd autentication failure

I try to implement SMTP authentication with postfix and saslauthd on Ubuntu. My IP is W.X.Y.Z, and my VPS IP is W'.X'.Y'.Z'. My user is JohnDoe and my hostname is server. It doesn't work, here are the log file /var/mail/log. When I try to…
Micky75
  • 11
  • 1
  • 3
1
vote
2 answers

Have Saslauthd working fine for port 25; can't get it working on port 587

I uncommented the "submission" section in /etc/postfix/master.cf, and my firewall is open on port 587. I get the following error when trying to submit a message via port 587 with TLS: Sep 30 13:41:05 mailer postfix/smtpd[7577]: warning: SASL…
neezer
  • 810
  • 3
  • 12
  • 29
1
vote
1 answer

imapd-ssl: admin: No such file or directory

I am trying to set up my VPS so I can use Thunderbird IMAP to manage my mails. First, I installed postfix and followed this guide to create an SSL certificate. Then I installed sasl2-bin and courier-imap-ssl and found this (German) guide to set up…
Niklas R
  • 123
  • 1
  • 11
1
vote
1 answer

Postfix sasl/tls username password ubuntu14.04 only sender

Anybody can suggest me a good tutorial to configure postfix as a secure smtp. I've installed it by this command sudo apt-get install mail-stack-delivery but I can't use it. In particular I haven't a domain but I've a direct ip and I would use my…
Claudio Pomo
  • 113
  • 5
1
vote
0 answers

Postfix + Saslauthd + Kerberos 5 + CentOS 7 not working

I've almost got saslauthd checking against Kerberos but seeing some last issues on CentOS 7. When postfix talks to saslauthd, it sends a lowercased domain and it's not corrected. I tried to fix things in /etc/krb5.conf using [domain_realms] but…
1
vote
0 answers

Diagnose SASL LOGIN authentication failure with postfix and sasldb

I am trying to configure a Postfix SMTP server on my personal machine (ubuntu server) using sasldb2. So far what I have set up works well with the test command: testsaslauthd (however it may be worth noticing that I have to do a chmod+x on…
user3484865
  • 27
  • 1
  • 3
1
vote
1 answer

PAM won't authenticate with mysql (make_scrambled_password deprecated)

I have spent some time searching for this and it seems I'm the only one having problem with PAM not authenticating through mysql due to current updates so I thought I will post my problem here and if I find solution I will post here as well for…
Greg0ry
  • 107
  • 1
  • 12
1
vote
1 answer

/var/run/saslauthd changing permissions on restart

On saslsauthd restart I keep getting following permissions on /var/run/saslauthd dir: drwx--x--- This makes e.g. Exim unable to talk to saslauthd. If I change permissions like this: chmod o+x /var/run/saslauthd ..Exim can talk to saslauthd again.…
LetMeSOThat4U
  • 1,371
  • 2
  • 17
  • 35
1
vote
0 answers

Postfix - SASLAuthentication Problems Cram-MD5 with StartTLS

Recently I configured my mail server which uses Postfix and Courier. Everything works except for the authentication when sending mail via my Postfix server(running on port 587) which has StartTLS enabled and uses SASLAuthentication with virtual…
Martin
  • 111
  • 1
1
vote
3 answers

Postfix smtpd won't talk to saslauthd

I have an saslauthd setup to authenticate against PAM. It seems to do its stuff: root@sasltest:~# testsaslauthd -u quest -p #### -s smtp 0: OK "Success." I have libsasl 2.1.23, postfix 2.7.1. I have a postfix configured thus: smtpd_sasl_type =…
Bittrance
  • 3,070
  • 3
  • 24
  • 27
1
vote
1 answer

Ubuntu 12.10 - Can't find my logs

Up until few days ago, my Ubuntu 10.04 worked like a clock. Then I switched to Ubuntu 12.10 and things don't work the same way with this setup. First, the new system wasn't logging any mail activity, so I had to edit /etc/rsyslog.d/50-default.conf…
bearcat
  • 163
  • 1
  • 4
1
vote
2 answers

Postfix+Dovecot+saslauthd can't recieve email from external domians

On my Linode I followed this doc to setup a mail server. Now I can send email to any domain but can't receive from other domains! I mean 001@mydomain.com can recieve from 002@mydomain.com but can't recieve any mail from xxx@gmail/yahoo/...com. I…
Amir Latifi
  • 175
  • 7
1
vote
1 answer

saslauthd and PAM: "Too many open files" error - saslauthd restart fixes this - what is wrong?

I have a Postfix mail server running Debian Squeeze. SASL authentication for secure SMTP is supported by saslauthd which relies on pam, which relies on winbind. This pattern seems to be reoccuring every couple of weeks: Initially, there are no…
labradort
  • 1,169
  • 1
  • 8
  • 20
1
vote
1 answer

Postfix and Cyrus auth again AD

i try to setup a new Mailsystem and configure Postfix for smtp and Cyrus for IMAP, Authentication should be work over SASLAUTHD again Active Directory. I install following Versions: Cyrus 2.2 Postfix: 2.5.5 Debian GNU/Linux 5.0 Authentication…
kockiren
  • 886
  • 3
  • 14
  • 37
1
vote
3 answers

Postfix+sasslauthd+PAM How can I deny/allow specific users from authenticating?

I have a simple postfix installation on RedHat that's been running fine for years and uses TLS/saslauthd/PAM to allow users to authenticate to relay mail from the external network. All users are local linux accounts, so the saslauthd method using…
OpenSkeptic
  • 11
  • 1
  • 2