LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-18-2010, 05:04 PM   #1
bluethundr
Member
 
Registered: Jun 2003
Location: Summit, NJ
Distribution: CentOS 5.4
Posts: 122

Rep: Reputation: 15
Thumbs down cyrus sasl not starting correctly


Hello,

I am attempting to integrate Cyrus SASL into my mail server but currently am having some difficulty. I am on Ubuntu Hardy 9.10 Server using a RightScale AWS image.

This is what I see in my postfix logs when I restart sasl

Code:
Apr 18 17:22:19 domU-12-31-39-0F-7C-53 postfix/smtpd[3741]: warning: SASL per-process initialization failed: generic failure
Apr 18 17:22:19 domU-12-31-39-0F-7C-53 postfix/smtpd[3741]: fatal: SASL per-process initialization failed
Apr 18 17:22:20 domU-12-31-39-0F-7C-53 postfix/master[3644]: warning: process /usr/lib/postfix/smtpd pid 3741 exit status 1
Apr 18 17:22:20 domU-12-31-39-0F-7C-53 postfix/master[3644]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Apr 18 17:23:20 domU-12-31-39-0F-7C-53 postfix/smtpd[3742]: warning: SASL per-process initialization failed: generic failure
Apr 18 17:23:20 domU-12-31-39-0F-7C-53 postfix/smtpd[3742]: fatal: SASL per-process initialization failed
Apr 18 17:23:21 domU-12-31-39-0F-7C-53 postfix/master[3644]: warning: process /usr/lib/postfix/smtpd pid 3742 exit status 1
Apr 18 17:23:21 domU-12-31-39-0F-7C-53 postfix/master[3644]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Apr 18 17:24:21 domU-12-31-39-0F-7C-53 postfix/smtpd[3743]: warning: SASL per-process initialization failed: generic failure
Apr 18 17:24:21 domU-12-31-39-0F-7C-53 postfix/smtpd[3743]: fatal: SASL per-process initialization failed
Apr 18 17:24:22 domU-12-31-39-0F-7C-53 postfix/master[3644]: warning: process /usr/lib/postfix/smtpd pid 3743 exit status 1
Apr 18 17:24:22 domU-12-31-39-0F-7C-53 postfix/master[3644]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
These are the lines I've added to my main.cf that seems to have broken my config. Backing up config files, as usual saves the day! :-D

I'll also include a copy of my full config file just in case you would like to have a look see at what works and what doesn't from a comprehensive overview standpoint.

Code:
# SASL
smtpd_sasl_auth_enable = yes
# If your potential clients use Outlook Express or other older clients
# this needs to be set to yes
broken_sasl_auth_clients = no
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain =
# Add permit_sasl_authenticated to you existing  smtpd_sender_restrictions
smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks, 
		warn_if_reject reject_non_fqdn_sender, reject_unknown_sender_domain,
		reject_unauth_pipelining, permit
# Add permit_sasl_authenticated to you existing  smtpd_recipient_restrictions
smtpd_recipient_restrictions = reject_unauth_pipelining, permit_mynetworks, 
		permit_sasl_authenticated, reject_non_fqdn_recipient, reject_unknown_recipient_domain, 
		reject_unauth_destination, check_policy_service inet:127.0.0.1:10023, permit
This is what I have set in my /etc/default/saslauthd file.

Code:
pwcheck_method: saslauthd
mech_list: plain login cram-md5 digest-md5
log_level: 7
allow_plaintext: true
auxprop_plugin: mysql
sql_engine: mysql
sql_hostnames: 127.0.0.1
sql_user: mail
sql_passw :Duk30fZh0u
sql_database: maildb
sql_select: select crypt from users where id='%u@%r' and enabled = 1
vi /etc/postfix/sasl/smtpd.conf

Code:
pwcheck_method: saslauthd
mech_list: plain login cram-md5 digest-md5
log_level: 7
allow_plaintext: true
auxprop_plugin: mysql
sql_engine: mysql
sql_hostnames: 127.0.0.1
sql_user: mail
sql_passw :xxxxxx
sql_database: maildb
sql_select: select crypt from users where id='%u@%r' and enabled = 1
Attached Files
File Type: txt main.cf.txt (5.2 KB, 0 views)
 
  


Reply

Tags
sasl


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cyrus-SASL Integration with AD haariseshu Linux - Server 1 06-11-2009 01:00 AM
Cyrus SASL Howto the_gripmaster Linux - Server 1 03-19-2008 08:23 PM
i have a problem with cyrus-sasl-2.1.22, help me please! bss Linux - Server 4 12-20-2006 04:11 AM
Help Regarding Cyrus SASL pushpraj Linux - Newbie 1 11-28-2006 04:11 PM
Cyrus SASL help littlebill Red Hat 0 10-02-2004 08:43 PM


All times are GMT -5. The time now is 07:02 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration