
25th April 2006, 20:16
|
|
Member
|
|
Join Date: Apr 2006
Posts: 31
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Virtual Users And Domains HowTo saslauthd problem
Hi,
Being relatively new to Linux (Debian Sarge), I followed Falko Timme's 'How To Virtual Users And Domains With Postfix, Courier
And MySQL (+ SMTP-AUTH, Quota, SpamAssassin, ClamAV)' to the letter.
Unfortunately my saslauthd won't start. I subsequently tried apt-get update and apt-get upgrade, which resulted in this message:
invoke-rc.d: initscript saslauthd, action "start" failed
Any help or hints on how to get this daemon working or how to configure saslauth are most welcome!
Regards,
Andy
|

25th April 2006, 22:07
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,907
Thanks: 693
Thanked 4,196 Times in 3,212 Posts
|
|
Did you copy and paste the saslauthd script to your server with an SSH client like putty on windows? Its really easy to make a mistake if you type it.
|

25th April 2006, 22:29
|
|
Moderator
|
|
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,252
Thanks: 208
Thanked 642 Times in 291 Posts
|
|
Starting up saslauthd
Hello there, i had the same problem with my Debian system.
This worked for me, maybe it is also helpful to you:
Edit /etc/default/saslauthd:
START=yes
MECHANISMS=''pam''
saslauthd is not started after package installation (we’ll do it later)!
Next file to edit is /etc/postfix/sasl/smtpd.conf:
pwcheck_method: saslauthd
Add the next few lines in /etc/postfix/main.cf to enable SASL:
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions =
permit_sasl_authenticated,
permit_mynetworks,
reject_unauth_destination
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
Now restart postfix and start saslauthd
/etc/init.d/postfix restart
/etc/init.d/saslauthd start
Hans
|

26th April 2006, 10:56
|
|
Member
|
|
Join Date: Apr 2006
Posts: 31
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Works like a charm: thanks Hans!
@Till: I did use Putty as my typing skills are deplorable...
Grt,
Andy
|

7th May 2006, 18:06
|
|
Senior Member
|
|
Join Date: Nov 2005
Location: Novi Sad, Serbia
Posts: 414
Thanks: 13
Thanked 5 Times in 5 Posts
|
|
@Hans
Quote:
Edit /etc/default/saslauthd:
START=yes
MECHANISMS=''pam''
|
And what about :
Quote:
|
PARAMS="-m /var/spool/postfix/var/run/saslauthd -r"
|
Did you deleted that line ?
-----------------------------------------
Quote:
Next file to edit is /etc/postfix/sasl/smtpd.conf:
pwcheck_method: saslauthd
|
What about :
mech_list: plain login
Did you deleted that line?
__________________
Nenad Bulatovic
---------------
Debian Lenny & ISPConfig 3
Last edited by nenad; 7th May 2006 at 18:09.
|

7th May 2006, 18:40
|
|
Senior Member
|
|
Join Date: Nov 2005
Location: Novi Sad, Serbia
Posts: 414
Thanks: 13
Thanked 5 Times in 5 Posts
|
|
This works until reboot.
After reboot /var/run/saslauthd/ is created again
/etc/init.d/saslauthd start
failed again
__________________
Nenad Bulatovic
---------------
Debian Lenny & ISPConfig 3
|

8th May 2006, 00:41
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Not if you modify the saslauthd init script appropriately...
|

9th May 2006, 17:22
|
|
Member
|
|
Join Date: Apr 2006
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
|
Originally Posted by falko
Not if you modify the saslauthd init script appropriately...
|
sorry ... where's the isaslauthd's init script located? Will it be in /etc/init.d/ ?
Thanks!
|

9th May 2006, 17:54
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Sorry, you don't have to modify the saslauthd init script, but you must configure saslauthd exactly as outlined in section 5 here: http://www.howtoforge.com/virtual_po...ota_courier_p2
|

9th May 2006, 21:19
|
|
Senior Member
|
|
Join Date: Nov 2005
Location: Novi Sad, Serbia
Posts: 414
Thanks: 13
Thanked 5 Times in 5 Posts
|
|
Quote:
|
Originally Posted by falko
|
Great!  Is that final & all-in-one & all-that-you-need solutions for saslauthd problems described all over this forums?
I hope so, my firefox is full of bookmarks pointing to various solutions and "solutions" to this annoying problem.
Please confirm.
__________________
Nenad Bulatovic
---------------
Debian Lenny & ISPConfig 3
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
|
Virtual Users + Domains With Postfix, Courier + MySQL (+SMTP-AUTH, SpamA, ClamAV)
|
brianwc |
HOWTO-Related Questions |
6 |
9th May 2007 02:44 |
|
Problem with Virtual Users And Domains With Postfix, Courier And MySQL Howto
|
fenix |
Server Operation |
4 |
11th March 2006 02:53 |
|
Another Problem: Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP
|
bluegrass |
Installation/Configuration |
24 |
8th March 2006 01:41 |
|
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs
|
Rocky |
Installation/Configuration |
24 |
9th February 2006 11:08 |
|
Virtual Users And Domains With Postfix, etc, problem with SMTP/Auth wrong password
|
ggere |
HOWTO-Related Questions |
15 |
14th November 2005 16:08 |
All times are GMT +2. The time now is 14:21.
|
|
Recent comments
14 hours 29 min ago
14 hours 34 min ago
19 hours 32 min ago
1 day 2 hours ago
1 day 3 hours ago
1 day 4 hours ago
1 day 8 hours ago
1 day 15 hours ago
1 day 19 hours ago
1 day 20 hours ago