saslauthd authentication errorsaslauthd and PAM: “Too many open files” error - saslauthd restart fixes this - what is wrong?Relay access denied when not send from server itselfPOSTFIX fatal: no SASL authentication mechanismsSASL authentication failure: Password verification failed (postfix + cyrus + saslauthd)Ubuntu: Postfix and Cyrus expecting saslauthd PID file in different locationsDovecot doesn't create /var/spool/postfix/private/authSMTP-SASL authentification doesn't workwarning: /usr/lib/postfix/smtpd: bad command startup — throttlingPostfix+saslauthd: pam_unix(smtp:auth): authentication failurePostfix Centos7
Why would Lupin kill Pettigrew?
What caused the tendency for conservatives to not support climate change regulations?
How to write a vulnerable moment without it seeming cliche or mushy?
Is American Express widely accepted in France?
Is there a rule that prohibits us from using 2 possessives in a row?
Are there regional foods in Westeros?
The term for the person/group a political party aligns themselves with to appear concerned about the general public
Is the capacitor drawn or wired wrongly?
Passive voice of sing someone to sleep
Bringing Food from Hometown for Out-of-Town Interview?
Opposite of "Squeaky wheel gets the grease"
Humans meet a distant alien species. How do they standardize? - Units of Measure
Is there an evolutionary advantage to having two heads?
Why does the UK have more political parties than the US?
How do I get a list of only the files (not the directories) from a package?
What are the problems in teaching guitar via Skype?
Why is Colorado so different politically from nearby states?
Is having a hidden directory under /etc safe?
Looking for an old image of designing a cpu with plan laid out / being edited on a literal floor
What does the behaviour of water on the skin of an aircraft in flight tell us?
Looking after a wayward brother in mother's will
Have powerful mythological heroes ever run away or been deeply afraid?
Is it possible to kill all life on Earth?
Singlequote and backslash
saslauthd authentication error
saslauthd and PAM: “Too many open files” error - saslauthd restart fixes this - what is wrong?Relay access denied when not send from server itselfPOSTFIX fatal: no SASL authentication mechanismsSASL authentication failure: Password verification failed (postfix + cyrus + saslauthd)Ubuntu: Postfix and Cyrus expecting saslauthd PID file in different locationsDovecot doesn't create /var/spool/postfix/private/authSMTP-SASL authentification doesn't workwarning: /usr/lib/postfix/smtpd: bad command startup — throttlingPostfix+saslauthd: pam_unix(smtp:auth): authentication failurePostfix Centos7
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
My server has developed an expected problem where I am unable to connect from a mail client.
I've looked at the server logs and the only thing that looks to identify a problem are events like the following:
Nov 23 18:32:43 hig3 dovecot: imap-login: Login:
user=, method=PLAIN, rip=xxxxxxxx,
lip=xxxxxxx, TLS Nov 23 18:32:55 hig3 postfix/smtpd[11653]:
connect from xxxxxxx.co.uk[xxxxxxx] Nov 23
18:32:55 hig3 postfix/smtpd[11653]: warning: SASL authentication
failure: cannot connect to saslauthd server: No such file or directory
Nov 23 18:32:55 hig3 postfix/smtpd[11653]: warning:
xxxxxxx.co.uk[xxxxxxxx]: SASL LOGIN
authentication failed: generic failure Nov 23 18:32:56 hig3
postfix/smtpd[11653]: lost connection after AUTH from
xxxxxxx.co.uk[xxxxxxx] Nov 23 18:32:56 hig3
postfix/smtpd[11653]: disconnect from
xxxxxxx.co.uk[xxxxxxx]
The problem is unusual, because just half an hour previously at my office, I was not being prompted for a correct username and password in my mail client. I haven't made any changes to the server, so I can't understand what would have happened to make this error occur.
Searches for the error messages yield various results, with 'fixes' that I'm uncertain of (obviously don't want to make it worse or fix something that isn't broken).
When I run
testsaslauthd -u xxxxx -p xxxxxx
I also get the following result:
connect() : No such file or directory
But when I run
testsaslauthd -u xxxxx -p xxxxxx -f
/var/spool/postfix/var/run/saslauthd/mux -s smtp
I get:
0: OK "Success."
I found those commands on another forum and am not entirely sure what they mean, but I'm hoping they might give an indication of where the problem might lie.
When I run
ps -ef|grep saslauthd
This is the output:
root 1245 1 0 Nov24 ? 00:00:00 /usr/sbin/saslauthd -a
pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5 root 1250
1245 0 Nov24 ? 00:00:00 /usr/sbin/saslauthd -a pam -c -m
/var/spool/postfix/var/run/saslauthd -r -n 5 root 1252 1245 0
Nov24 ? 00:00:00 /usr/sbin/saslauthd -a pam -c -m
/var/spool/postfix/var/run/saslauthd -r -n 5 root 1254 1245 0
Nov24 ? 00:00:00 /usr/sbin/saslauthd -a pam -c -m
/var/spool/postfix/var/run/saslauthd -r -n 5 root 1255 1245 0
Nov24 ? 00:00:00 /usr/sbin/saslauthd -a pam -c -m
/var/spool/postfix/var/run/saslauthd -r -n 5 root 5902 5885 0
08:51 pts/0 00:00:00 grep --color=auto saslauthd
If it makes any difference, I'm running Ubuntu 10.04.1, Postfix 2.7.0 and Webmin/ Virtualmin.
email postfix ubuntu-10.04 sasl saslauthd
add a comment |
My server has developed an expected problem where I am unable to connect from a mail client.
I've looked at the server logs and the only thing that looks to identify a problem are events like the following:
Nov 23 18:32:43 hig3 dovecot: imap-login: Login:
user=, method=PLAIN, rip=xxxxxxxx,
lip=xxxxxxx, TLS Nov 23 18:32:55 hig3 postfix/smtpd[11653]:
connect from xxxxxxx.co.uk[xxxxxxx] Nov 23
18:32:55 hig3 postfix/smtpd[11653]: warning: SASL authentication
failure: cannot connect to saslauthd server: No such file or directory
Nov 23 18:32:55 hig3 postfix/smtpd[11653]: warning:
xxxxxxx.co.uk[xxxxxxxx]: SASL LOGIN
authentication failed: generic failure Nov 23 18:32:56 hig3
postfix/smtpd[11653]: lost connection after AUTH from
xxxxxxx.co.uk[xxxxxxx] Nov 23 18:32:56 hig3
postfix/smtpd[11653]: disconnect from
xxxxxxx.co.uk[xxxxxxx]
The problem is unusual, because just half an hour previously at my office, I was not being prompted for a correct username and password in my mail client. I haven't made any changes to the server, so I can't understand what would have happened to make this error occur.
Searches for the error messages yield various results, with 'fixes' that I'm uncertain of (obviously don't want to make it worse or fix something that isn't broken).
When I run
testsaslauthd -u xxxxx -p xxxxxx
I also get the following result:
connect() : No such file or directory
But when I run
testsaslauthd -u xxxxx -p xxxxxx -f
/var/spool/postfix/var/run/saslauthd/mux -s smtp
I get:
0: OK "Success."
I found those commands on another forum and am not entirely sure what they mean, but I'm hoping they might give an indication of where the problem might lie.
When I run
ps -ef|grep saslauthd
This is the output:
root 1245 1 0 Nov24 ? 00:00:00 /usr/sbin/saslauthd -a
pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5 root 1250
1245 0 Nov24 ? 00:00:00 /usr/sbin/saslauthd -a pam -c -m
/var/spool/postfix/var/run/saslauthd -r -n 5 root 1252 1245 0
Nov24 ? 00:00:00 /usr/sbin/saslauthd -a pam -c -m
/var/spool/postfix/var/run/saslauthd -r -n 5 root 1254 1245 0
Nov24 ? 00:00:00 /usr/sbin/saslauthd -a pam -c -m
/var/spool/postfix/var/run/saslauthd -r -n 5 root 1255 1245 0
Nov24 ? 00:00:00 /usr/sbin/saslauthd -a pam -c -m
/var/spool/postfix/var/run/saslauthd -r -n 5 root 5902 5885 0
08:51 pts/0 00:00:00 grep --color=auto saslauthd
If it makes any difference, I'm running Ubuntu 10.04.1, Postfix 2.7.0 and Webmin/ Virtualmin.
email postfix ubuntu-10.04 sasl saslauthd
add a comment |
My server has developed an expected problem where I am unable to connect from a mail client.
I've looked at the server logs and the only thing that looks to identify a problem are events like the following:
Nov 23 18:32:43 hig3 dovecot: imap-login: Login:
user=, method=PLAIN, rip=xxxxxxxx,
lip=xxxxxxx, TLS Nov 23 18:32:55 hig3 postfix/smtpd[11653]:
connect from xxxxxxx.co.uk[xxxxxxx] Nov 23
18:32:55 hig3 postfix/smtpd[11653]: warning: SASL authentication
failure: cannot connect to saslauthd server: No such file or directory
Nov 23 18:32:55 hig3 postfix/smtpd[11653]: warning:
xxxxxxx.co.uk[xxxxxxxx]: SASL LOGIN
authentication failed: generic failure Nov 23 18:32:56 hig3
postfix/smtpd[11653]: lost connection after AUTH from
xxxxxxx.co.uk[xxxxxxx] Nov 23 18:32:56 hig3
postfix/smtpd[11653]: disconnect from
xxxxxxx.co.uk[xxxxxxx]
The problem is unusual, because just half an hour previously at my office, I was not being prompted for a correct username and password in my mail client. I haven't made any changes to the server, so I can't understand what would have happened to make this error occur.
Searches for the error messages yield various results, with 'fixes' that I'm uncertain of (obviously don't want to make it worse or fix something that isn't broken).
When I run
testsaslauthd -u xxxxx -p xxxxxx
I also get the following result:
connect() : No such file or directory
But when I run
testsaslauthd -u xxxxx -p xxxxxx -f
/var/spool/postfix/var/run/saslauthd/mux -s smtp
I get:
0: OK "Success."
I found those commands on another forum and am not entirely sure what they mean, but I'm hoping they might give an indication of where the problem might lie.
When I run
ps -ef|grep saslauthd
This is the output:
root 1245 1 0 Nov24 ? 00:00:00 /usr/sbin/saslauthd -a
pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5 root 1250
1245 0 Nov24 ? 00:00:00 /usr/sbin/saslauthd -a pam -c -m
/var/spool/postfix/var/run/saslauthd -r -n 5 root 1252 1245 0
Nov24 ? 00:00:00 /usr/sbin/saslauthd -a pam -c -m
/var/spool/postfix/var/run/saslauthd -r -n 5 root 1254 1245 0
Nov24 ? 00:00:00 /usr/sbin/saslauthd -a pam -c -m
/var/spool/postfix/var/run/saslauthd -r -n 5 root 1255 1245 0
Nov24 ? 00:00:00 /usr/sbin/saslauthd -a pam -c -m
/var/spool/postfix/var/run/saslauthd -r -n 5 root 5902 5885 0
08:51 pts/0 00:00:00 grep --color=auto saslauthd
If it makes any difference, I'm running Ubuntu 10.04.1, Postfix 2.7.0 and Webmin/ Virtualmin.
email postfix ubuntu-10.04 sasl saslauthd
My server has developed an expected problem where I am unable to connect from a mail client.
I've looked at the server logs and the only thing that looks to identify a problem are events like the following:
Nov 23 18:32:43 hig3 dovecot: imap-login: Login:
user=, method=PLAIN, rip=xxxxxxxx,
lip=xxxxxxx, TLS Nov 23 18:32:55 hig3 postfix/smtpd[11653]:
connect from xxxxxxx.co.uk[xxxxxxx] Nov 23
18:32:55 hig3 postfix/smtpd[11653]: warning: SASL authentication
failure: cannot connect to saslauthd server: No such file or directory
Nov 23 18:32:55 hig3 postfix/smtpd[11653]: warning:
xxxxxxx.co.uk[xxxxxxxx]: SASL LOGIN
authentication failed: generic failure Nov 23 18:32:56 hig3
postfix/smtpd[11653]: lost connection after AUTH from
xxxxxxx.co.uk[xxxxxxx] Nov 23 18:32:56 hig3
postfix/smtpd[11653]: disconnect from
xxxxxxx.co.uk[xxxxxxx]
The problem is unusual, because just half an hour previously at my office, I was not being prompted for a correct username and password in my mail client. I haven't made any changes to the server, so I can't understand what would have happened to make this error occur.
Searches for the error messages yield various results, with 'fixes' that I'm uncertain of (obviously don't want to make it worse or fix something that isn't broken).
When I run
testsaslauthd -u xxxxx -p xxxxxx
I also get the following result:
connect() : No such file or directory
But when I run
testsaslauthd -u xxxxx -p xxxxxx -f
/var/spool/postfix/var/run/saslauthd/mux -s smtp
I get:
0: OK "Success."
I found those commands on another forum and am not entirely sure what they mean, but I'm hoping they might give an indication of where the problem might lie.
When I run
ps -ef|grep saslauthd
This is the output:
root 1245 1 0 Nov24 ? 00:00:00 /usr/sbin/saslauthd -a
pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5 root 1250
1245 0 Nov24 ? 00:00:00 /usr/sbin/saslauthd -a pam -c -m
/var/spool/postfix/var/run/saslauthd -r -n 5 root 1252 1245 0
Nov24 ? 00:00:00 /usr/sbin/saslauthd -a pam -c -m
/var/spool/postfix/var/run/saslauthd -r -n 5 root 1254 1245 0
Nov24 ? 00:00:00 /usr/sbin/saslauthd -a pam -c -m
/var/spool/postfix/var/run/saslauthd -r -n 5 root 1255 1245 0
Nov24 ? 00:00:00 /usr/sbin/saslauthd -a pam -c -m
/var/spool/postfix/var/run/saslauthd -r -n 5 root 5902 5885 0
08:51 pts/0 00:00:00 grep --color=auto saslauthd
If it makes any difference, I'm running Ubuntu 10.04.1, Postfix 2.7.0 and Webmin/ Virtualmin.
email postfix ubuntu-10.04 sasl saslauthd
email postfix ubuntu-10.04 sasl saslauthd
edited Nov 25 '12 at 8:53
James
asked Nov 24 '12 at 1:12
JamesJames
2632412
2632412
add a comment |
add a comment |
4 Answers
4
active
oldest
votes
Postfix can run in a chroot (by default in /var/spool/postfix
) or not. If it is, it will try to open /var/spool/postfix/var/run/saslauthd/mux
for sasl authentication. If it's not, it will try to open /var/run/saslauthd/mux
It seems that, for some reason, your postfix instance was running in a chroot, and it's not anymore. It's odd, but that's what I guess from the details of your question. If it's what's happened, you may change saslauthd configuration to use /var/run/saslauthd
or run postfix in a chroot again.
To know if your Postfix is running chroot, you can check /etc/postfix/master.cf
:
- If it has the line
smtp inet n - y - - smtpd
orsmtp inet n - - - - smtpd
, then your Postfix is running in a chroot; - If it has the line
smtp inet n - n - - smtpd
then your Postfix is NOT running in a chroot.
This check comes from /etc/default/saslauthd
(Ubuntu sasl configuration file).
Your answer has just crystalised the link between the line in master.cf and chroot - thank you! Although I'm sure I'd checked this countless times earlier, for whatever reason, I missed the third 'n'. I'm mystified as to how it came to suddenly change in the master.cf file, though.
– James
Nov 27 '12 at 13:55
add a comment |
Looks like postfix
always looks in the chroot'ed location for saslauthd
even though its configured to NOT use the chroot environment for its services.
I found this blog post most helpful, even though it's from 2005!
http://www.jimmy.co.at/weblog/?p=52
postfix does a chroot so it can’t communicate with saslauthd. This is
the tricky part:rm -r /var/run/saslauthd/
mkdir -p /var/spool/postfix/var/run/saslauthd
ln -s /var/spool/postfix/var/run/saslauthd /var/run
chgrp sasl /var/spool/postfix/var/run/saslauthd
adduser postfix sasl
You can run saslauthd
in debug mode using:
saslauthd -c -d -a pam -m /var/run/saslauthd
From your client, do this:
openssl s_client -CApath /etc/ssl/certs/ -starttls smtp -connect mail.mydomain.com:587
When prompted type this:
HELO mynotebook.com
LOGIN PLAIN <base64code>
where the base64code
bit comes from this:
perl -MMIME::Base64 -e 'print encode_base64("00username00password");'
add a comment |
Every time I've encountered a similar problem with saslauthd (and when everything else has been double-checked), it has been about directory/file permissions. Check each and every step of this /var/spool/postfix/var/run/saslauthd
path to make sure saslauthd actually can get there.
add a comment |
No such file or directory when trying to connect suggests the UNIX socket it is looking for SASLAuthd on doesn't exist.
If you run ps -ef | grep saslauthd
, can you see it still running?
If so, maybe see if it has its own log location.
If not it could just need a restart.
1
Thanks for the reply. I think it's running - I've added the output to my question and am assuming that the output shows that it's running. I've restarted both the server and the service, but to no avail. Why might this have happened without any intervention on my part? Seems like an odd thing to happen.
– James
Nov 25 '12 at 8:54
Brilliant, this solved it :)
– だらんぎん じょん
Apr 9 '16 at 4:03
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f451681%2fsaslauthd-authentication-error%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
Postfix can run in a chroot (by default in /var/spool/postfix
) or not. If it is, it will try to open /var/spool/postfix/var/run/saslauthd/mux
for sasl authentication. If it's not, it will try to open /var/run/saslauthd/mux
It seems that, for some reason, your postfix instance was running in a chroot, and it's not anymore. It's odd, but that's what I guess from the details of your question. If it's what's happened, you may change saslauthd configuration to use /var/run/saslauthd
or run postfix in a chroot again.
To know if your Postfix is running chroot, you can check /etc/postfix/master.cf
:
- If it has the line
smtp inet n - y - - smtpd
orsmtp inet n - - - - smtpd
, then your Postfix is running in a chroot; - If it has the line
smtp inet n - n - - smtpd
then your Postfix is NOT running in a chroot.
This check comes from /etc/default/saslauthd
(Ubuntu sasl configuration file).
Your answer has just crystalised the link between the line in master.cf and chroot - thank you! Although I'm sure I'd checked this countless times earlier, for whatever reason, I missed the third 'n'. I'm mystified as to how it came to suddenly change in the master.cf file, though.
– James
Nov 27 '12 at 13:55
add a comment |
Postfix can run in a chroot (by default in /var/spool/postfix
) or not. If it is, it will try to open /var/spool/postfix/var/run/saslauthd/mux
for sasl authentication. If it's not, it will try to open /var/run/saslauthd/mux
It seems that, for some reason, your postfix instance was running in a chroot, and it's not anymore. It's odd, but that's what I guess from the details of your question. If it's what's happened, you may change saslauthd configuration to use /var/run/saslauthd
or run postfix in a chroot again.
To know if your Postfix is running chroot, you can check /etc/postfix/master.cf
:
- If it has the line
smtp inet n - y - - smtpd
orsmtp inet n - - - - smtpd
, then your Postfix is running in a chroot; - If it has the line
smtp inet n - n - - smtpd
then your Postfix is NOT running in a chroot.
This check comes from /etc/default/saslauthd
(Ubuntu sasl configuration file).
Your answer has just crystalised the link between the line in master.cf and chroot - thank you! Although I'm sure I'd checked this countless times earlier, for whatever reason, I missed the third 'n'. I'm mystified as to how it came to suddenly change in the master.cf file, though.
– James
Nov 27 '12 at 13:55
add a comment |
Postfix can run in a chroot (by default in /var/spool/postfix
) or not. If it is, it will try to open /var/spool/postfix/var/run/saslauthd/mux
for sasl authentication. If it's not, it will try to open /var/run/saslauthd/mux
It seems that, for some reason, your postfix instance was running in a chroot, and it's not anymore. It's odd, but that's what I guess from the details of your question. If it's what's happened, you may change saslauthd configuration to use /var/run/saslauthd
or run postfix in a chroot again.
To know if your Postfix is running chroot, you can check /etc/postfix/master.cf
:
- If it has the line
smtp inet n - y - - smtpd
orsmtp inet n - - - - smtpd
, then your Postfix is running in a chroot; - If it has the line
smtp inet n - n - - smtpd
then your Postfix is NOT running in a chroot.
This check comes from /etc/default/saslauthd
(Ubuntu sasl configuration file).
Postfix can run in a chroot (by default in /var/spool/postfix
) or not. If it is, it will try to open /var/spool/postfix/var/run/saslauthd/mux
for sasl authentication. If it's not, it will try to open /var/run/saslauthd/mux
It seems that, for some reason, your postfix instance was running in a chroot, and it's not anymore. It's odd, but that's what I guess from the details of your question. If it's what's happened, you may change saslauthd configuration to use /var/run/saslauthd
or run postfix in a chroot again.
To know if your Postfix is running chroot, you can check /etc/postfix/master.cf
:
- If it has the line
smtp inet n - y - - smtpd
orsmtp inet n - - - - smtpd
, then your Postfix is running in a chroot; - If it has the line
smtp inet n - n - - smtpd
then your Postfix is NOT running in a chroot.
This check comes from /etc/default/saslauthd
(Ubuntu sasl configuration file).
edited May 16 at 22:11
Community♦
1
1
answered Nov 27 '12 at 8:31
Christophe Drevet-DroguetChristophe Drevet-Droguet
1,44211222
1,44211222
Your answer has just crystalised the link between the line in master.cf and chroot - thank you! Although I'm sure I'd checked this countless times earlier, for whatever reason, I missed the third 'n'. I'm mystified as to how it came to suddenly change in the master.cf file, though.
– James
Nov 27 '12 at 13:55
add a comment |
Your answer has just crystalised the link between the line in master.cf and chroot - thank you! Although I'm sure I'd checked this countless times earlier, for whatever reason, I missed the third 'n'. I'm mystified as to how it came to suddenly change in the master.cf file, though.
– James
Nov 27 '12 at 13:55
Your answer has just crystalised the link between the line in master.cf and chroot - thank you! Although I'm sure I'd checked this countless times earlier, for whatever reason, I missed the third 'n'. I'm mystified as to how it came to suddenly change in the master.cf file, though.
– James
Nov 27 '12 at 13:55
Your answer has just crystalised the link between the line in master.cf and chroot - thank you! Although I'm sure I'd checked this countless times earlier, for whatever reason, I missed the third 'n'. I'm mystified as to how it came to suddenly change in the master.cf file, though.
– James
Nov 27 '12 at 13:55
add a comment |
Looks like postfix
always looks in the chroot'ed location for saslauthd
even though its configured to NOT use the chroot environment for its services.
I found this blog post most helpful, even though it's from 2005!
http://www.jimmy.co.at/weblog/?p=52
postfix does a chroot so it can’t communicate with saslauthd. This is
the tricky part:rm -r /var/run/saslauthd/
mkdir -p /var/spool/postfix/var/run/saslauthd
ln -s /var/spool/postfix/var/run/saslauthd /var/run
chgrp sasl /var/spool/postfix/var/run/saslauthd
adduser postfix sasl
You can run saslauthd
in debug mode using:
saslauthd -c -d -a pam -m /var/run/saslauthd
From your client, do this:
openssl s_client -CApath /etc/ssl/certs/ -starttls smtp -connect mail.mydomain.com:587
When prompted type this:
HELO mynotebook.com
LOGIN PLAIN <base64code>
where the base64code
bit comes from this:
perl -MMIME::Base64 -e 'print encode_base64("00username00password");'
add a comment |
Looks like postfix
always looks in the chroot'ed location for saslauthd
even though its configured to NOT use the chroot environment for its services.
I found this blog post most helpful, even though it's from 2005!
http://www.jimmy.co.at/weblog/?p=52
postfix does a chroot so it can’t communicate with saslauthd. This is
the tricky part:rm -r /var/run/saslauthd/
mkdir -p /var/spool/postfix/var/run/saslauthd
ln -s /var/spool/postfix/var/run/saslauthd /var/run
chgrp sasl /var/spool/postfix/var/run/saslauthd
adduser postfix sasl
You can run saslauthd
in debug mode using:
saslauthd -c -d -a pam -m /var/run/saslauthd
From your client, do this:
openssl s_client -CApath /etc/ssl/certs/ -starttls smtp -connect mail.mydomain.com:587
When prompted type this:
HELO mynotebook.com
LOGIN PLAIN <base64code>
where the base64code
bit comes from this:
perl -MMIME::Base64 -e 'print encode_base64("00username00password");'
add a comment |
Looks like postfix
always looks in the chroot'ed location for saslauthd
even though its configured to NOT use the chroot environment for its services.
I found this blog post most helpful, even though it's from 2005!
http://www.jimmy.co.at/weblog/?p=52
postfix does a chroot so it can’t communicate with saslauthd. This is
the tricky part:rm -r /var/run/saslauthd/
mkdir -p /var/spool/postfix/var/run/saslauthd
ln -s /var/spool/postfix/var/run/saslauthd /var/run
chgrp sasl /var/spool/postfix/var/run/saslauthd
adduser postfix sasl
You can run saslauthd
in debug mode using:
saslauthd -c -d -a pam -m /var/run/saslauthd
From your client, do this:
openssl s_client -CApath /etc/ssl/certs/ -starttls smtp -connect mail.mydomain.com:587
When prompted type this:
HELO mynotebook.com
LOGIN PLAIN <base64code>
where the base64code
bit comes from this:
perl -MMIME::Base64 -e 'print encode_base64("00username00password");'
Looks like postfix
always looks in the chroot'ed location for saslauthd
even though its configured to NOT use the chroot environment for its services.
I found this blog post most helpful, even though it's from 2005!
http://www.jimmy.co.at/weblog/?p=52
postfix does a chroot so it can’t communicate with saslauthd. This is
the tricky part:rm -r /var/run/saslauthd/
mkdir -p /var/spool/postfix/var/run/saslauthd
ln -s /var/spool/postfix/var/run/saslauthd /var/run
chgrp sasl /var/spool/postfix/var/run/saslauthd
adduser postfix sasl
You can run saslauthd
in debug mode using:
saslauthd -c -d -a pam -m /var/run/saslauthd
From your client, do this:
openssl s_client -CApath /etc/ssl/certs/ -starttls smtp -connect mail.mydomain.com:587
When prompted type this:
HELO mynotebook.com
LOGIN PLAIN <base64code>
where the base64code
bit comes from this:
perl -MMIME::Base64 -e 'print encode_base64("00username00password");'
answered Nov 10 '14 at 23:01
Nigel Sheridan-SmithNigel Sheridan-Smith
1412
1412
add a comment |
add a comment |
Every time I've encountered a similar problem with saslauthd (and when everything else has been double-checked), it has been about directory/file permissions. Check each and every step of this /var/spool/postfix/var/run/saslauthd
path to make sure saslauthd actually can get there.
add a comment |
Every time I've encountered a similar problem with saslauthd (and when everything else has been double-checked), it has been about directory/file permissions. Check each and every step of this /var/spool/postfix/var/run/saslauthd
path to make sure saslauthd actually can get there.
add a comment |
Every time I've encountered a similar problem with saslauthd (and when everything else has been double-checked), it has been about directory/file permissions. Check each and every step of this /var/spool/postfix/var/run/saslauthd
path to make sure saslauthd actually can get there.
Every time I've encountered a similar problem with saslauthd (and when everything else has been double-checked), it has been about directory/file permissions. Check each and every step of this /var/spool/postfix/var/run/saslauthd
path to make sure saslauthd actually can get there.
answered Nov 27 '12 at 8:48
Janne PikkarainenJanne Pikkarainen
28.5k34268
28.5k34268
add a comment |
add a comment |
No such file or directory when trying to connect suggests the UNIX socket it is looking for SASLAuthd on doesn't exist.
If you run ps -ef | grep saslauthd
, can you see it still running?
If so, maybe see if it has its own log location.
If not it could just need a restart.
1
Thanks for the reply. I think it's running - I've added the output to my question and am assuming that the output shows that it's running. I've restarted both the server and the service, but to no avail. Why might this have happened without any intervention on my part? Seems like an odd thing to happen.
– James
Nov 25 '12 at 8:54
Brilliant, this solved it :)
– だらんぎん じょん
Apr 9 '16 at 4:03
add a comment |
No such file or directory when trying to connect suggests the UNIX socket it is looking for SASLAuthd on doesn't exist.
If you run ps -ef | grep saslauthd
, can you see it still running?
If so, maybe see if it has its own log location.
If not it could just need a restart.
1
Thanks for the reply. I think it's running - I've added the output to my question and am assuming that the output shows that it's running. I've restarted both the server and the service, but to no avail. Why might this have happened without any intervention on my part? Seems like an odd thing to happen.
– James
Nov 25 '12 at 8:54
Brilliant, this solved it :)
– だらんぎん じょん
Apr 9 '16 at 4:03
add a comment |
No such file or directory when trying to connect suggests the UNIX socket it is looking for SASLAuthd on doesn't exist.
If you run ps -ef | grep saslauthd
, can you see it still running?
If so, maybe see if it has its own log location.
If not it could just need a restart.
No such file or directory when trying to connect suggests the UNIX socket it is looking for SASLAuthd on doesn't exist.
If you run ps -ef | grep saslauthd
, can you see it still running?
If so, maybe see if it has its own log location.
If not it could just need a restart.
edited Nov 14 '16 at 13:32
030
3,80464190
3,80464190
answered Nov 24 '12 at 15:35
IAmACarpetLickerIAmACarpetLicker
211
211
1
Thanks for the reply. I think it's running - I've added the output to my question and am assuming that the output shows that it's running. I've restarted both the server and the service, but to no avail. Why might this have happened without any intervention on my part? Seems like an odd thing to happen.
– James
Nov 25 '12 at 8:54
Brilliant, this solved it :)
– だらんぎん じょん
Apr 9 '16 at 4:03
add a comment |
1
Thanks for the reply. I think it's running - I've added the output to my question and am assuming that the output shows that it's running. I've restarted both the server and the service, but to no avail. Why might this have happened without any intervention on my part? Seems like an odd thing to happen.
– James
Nov 25 '12 at 8:54
Brilliant, this solved it :)
– だらんぎん じょん
Apr 9 '16 at 4:03
1
1
Thanks for the reply. I think it's running - I've added the output to my question and am assuming that the output shows that it's running. I've restarted both the server and the service, but to no avail. Why might this have happened without any intervention on my part? Seems like an odd thing to happen.
– James
Nov 25 '12 at 8:54
Thanks for the reply. I think it's running - I've added the output to my question and am assuming that the output shows that it's running. I've restarted both the server and the service, but to no avail. Why might this have happened without any intervention on my part? Seems like an odd thing to happen.
– James
Nov 25 '12 at 8:54
Brilliant, this solved it :)
– だらんぎん じょん
Apr 9 '16 at 4:03
Brilliant, this solved it :)
– だらんぎん じょん
Apr 9 '16 at 4:03
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f451681%2fsaslauthd-authentication-error%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown