Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 7th January 2010, 16:23
clart001 clart001 is offline
Junior Member
 
Join Date: Jan 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default SASL authentication failure

I set up an Ubuntu Jaunty Jackalope (Ubuntu 9.04) vps server with ISPconfig 2 following this tutorial http://www.howtoforge.com/perfect-se...04-ispconfig-2

All seems to work quite allright but now I run into a problem regarding postfix and smtp.

When I try to send an email I get:

mail.log
Code:
postfix/smtpd[6517]: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory
postfix/smtpd[6517]: warning: host250-228-dynamic.17-87-r.retail.telecomitalia.it[87.17.228.250]: SASL LOGIN authentication failed: generic failure
postfix/smtpd[6517]: disconnect from host250-228-dynamic.17-87-r.retail.telecomitalia.it[87.17.228.250]
Could anyone help me?
Reply With Quote
Sponsored Links
  #2  
Old 8th January 2010, 14:54
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Please try this:
Code:
adduser postfix sasl
/etc/init.d/postfix restart
/etc/init.d/saslauthd start
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 8th January 2010, 17:04
clart001 clart001 is offline
Junior Member
 
Join Date: Jan 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

First of all, thank you Falko.
I have done how you suggested me but it seems not work again.

Quote:
Originally Posted by falko View Post
Please try this:
Code:
adduser postfix sasl
/etc/init.d/postfix restart
/etc/init.d/saslauthd start
Any other suggests?
Reply With Quote
  #4  
Old 9th January 2010, 11:22
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

What's the output of
Code:
ps aux | grep saslauthd
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 9th January 2010, 11:25
clart001 clart001 is offline
Junior Member
 
Join Date: Jan 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
What's the output of
Code:
ps aux | grep saslauthd
?

Code:
root@vps314345:~# ps aux | grep saslauthd
root      5348  0.0  0.1   8416   872 ?        Ss   Jan07   0:00 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5
root      5351  0.0  0.0   8416   508 ?        S    Jan07   0:00 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5
root      5352  0.0  0.0   8416   424 ?        S    Jan07   0:00 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5
root      5353  0.0  0.0   8416   424 ?        S    Jan07   0:00 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5
root      5356  0.0  0.0   8416   424 ?        S    Jan07   0:00 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5
root     10077  0.0  0.1   3336   780 pts/1    R+   11:23   0:00 grep saslauthd
Reply With Quote
  #6  
Old 10th January 2010, 17:32
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

What's in /etc/postfix/sasl/smtpd.conf and /etc/default/saslauthd?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 11th January 2010, 11:01
clart001 clart001 is offline
Junior Member
 
Join Date: Jan 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
What's in /etc/postfix/sasl/smtpd.conf and /etc/default/saslauthd?

/etc/postfix/sasl/smtpd.conf
Code:
pwcheck_method: saslauthd
mech_list: plain login
/etc/default/saslauthd

Code:
START=yes

DESC="SASL Authentication Daemon"

NAME="saslauthd"

MECHANISMS="pam"

MECH_OPTIONS=""
THREADS=5

OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd -r"
Reply With Quote
  #8  
Old 12th January 2010, 14:34
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

What's the output of
Code:
ls -la /var/spool/postfix/var/run/saslauthd/
?

What virtualization technique do you use (OpenVZ/Virtuozzo, Xen, KVM, VMware, etc.)?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 12th January 2010, 16:08
clart001 clart001 is offline
Junior Member
 
Join Date: Jan 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
What's the output of
Code:
ls -la /var/spool/postfix/var/run/saslauthd/
?
Code:
root@vps314345:~# ls -la /var/spool/postfix/var/run/saslauthd/
totale 940
drwx--x--- 2 root sasl   4096 2010-01-07 15:02 .
drwxr-xr-x 3 root root   4096 2009-11-02 19:47 ..
-rw------- 1 root root      0 2010-01-07 15:02 cache.flock
-rw------- 1 root root 945152 2010-01-07 15:02 cache.mmap
srwxrwxrwx 1 root root      0 2010-01-07 15:02 mux
-rw------- 1 root root      0 2010-01-07 15:02 mux.accept
-rw------- 1 root root      5 2010-01-07 15:02 saslauthd.pid
Quote:
What virtualization technique do you use (OpenVZ/Virtuozzo, Xen, KVM, VMware, etc.)?
We use Xen
Reply With Quote
  #10  
Old 13th January 2010, 14:05
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
 
Default

Looks ok. Are you absolutely sure that the postfix user is a member of the sasl group? What's the output of
Code:
grep sasl /etc/group
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Tags
email, ispconfig, postfix, sasl, saslauthd

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Attacks on MTA dclardy Installation/Configuration 4 29th September 2009 16:50
Random Questions dclardy General 9 3rd September 2009 23:39
postfix does not authenticate through saslauthd openman Server Operation 32 21st November 2008 10:29
Mail server attack princebenin Server Operation 1 19th November 2007 14:02


All times are GMT +2. The time now is 00:23.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.