Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 21st May 2007, 16:13
aarayas aarayas is offline
Junior Member
 
Join Date: May 2007
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
Default no SASL authentication mechanisms: postfix

I have centos 4.4 final, and try configure postfix + virtual domain



http://www.howtoforge.com/virtual_us..._clamav_centos

but, not found sasl authetication in postfix


#vi /var/log/maillog
fatal: no SASL authentication mechanisms
warning: process /usr/libexec/postfix/smtpd pid 31675 exit status 1


mi configuration it's the next.

#uname -a
Linux campusvirtual.cl 2.6.9-42.0.3.ELsmp #1 SMP Fri Oct 6 06:21:39 CDT 2006 i686 i686 i386 GNU/Linux

#cat /etc/redhat-release
CentOS release 4.4 (Final)

#rpm -q postfix
postfix-2.2.10-1.RHEL4.2.mysql_pgsql.c4

# vi /usr/lib/sasl/smtpd.conf

pwcheck_method: saslauthd
saslauthd_version: 2

# vi /usr/lib/sasl2/smtpd.conf

pwcheck_method: authdaemond
log_level: 7
mech_list: PLAIN LOGIN
authdaemond_path:/var/spool/authdaemon/socket

#saslauthd -v
saslauthd 2.1.19
authentication mechanisms: getpwent kerberos5 pam rimap shadow ldap

#vi /etc/postfix

smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_application_name = smtpd
smtpd_sasl_path = smtpd
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject _non_fqdn_hostname,reject_non_fqdn_sender,reject_n on_fqdn_recipient,reject_unauth_destination,reject _unauth_pipelining,reject_invalid_hostname,reject_ rbl_client opm.blitzed.org,reject_rbl_client list.dsbl.org,reject_rbl_client bl.spamcop.net,reject_rbl_client sbl-xbl.spamhaus.org


smtp_use_tls = no
smtpd_use_tls = yes
smtpd_tls_auth_only = yes
smtpd_tls_key_file = /usr/local/ssl/mail.domain.cl.key
smtpd_tls_cert_file = /usr/local/ssl/mail.domain.cl.crt
smtpd_tls_session_cache_database = btree:/etc/postfix/tls_smtpd_scache
smtpd_tls_loglevel = 3
smtpd_tls_received_header = yes

/************************************************** **************/
tranks for you help..

and greeting for chile.
Reply With Quote
Sponsored Links
  #2  
Old 21st May 2007, 21:32
jpieper jpieper is offline
Junior Member
 
Join Date: May 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have the same problem but I am using Fedora C6 and not CentOS, but I think there is no so big difference between these two systems.

Code:
[root@vs2060074 ~]# uname -a
Linux vs2060074 2.6.9-023stab043.3-smp #1 SMP Thu Apr 19 10:35:07 MSD 2007 i686 i686 i386 GNU/Linux

[root@vs2060074 ~]# cat /etc/redhat-release
Fedora Core release 6 (Zod)

[root@vs2060074 ~]# rpm -q postfix
postfix-2.2.8-1.2

[root@vs2060074 ~]# cat /usr/lib/sasl/smtpd.conf
pwcheck_method: authdaemond
log_level: 3
mech_list: PLAIN LOGIN
authdaemond_path:/var/spool/authdaemon/socket

[root@vs2060074 ~]# saslauthd -v
saslauthd 2.1.22
authentication mechanisms: getpwent kerberos5 pam rimap shadow ldap

[root@vs2060074 ~]# cat /etc/postfix/main.cf
[...]
readme_directory = /usr/share/doc/postfix-2.2.8/README_FILES
myhostname = mail.<domain_name>.net
mydomain = <domain_name>.net
mynetworks = 127.0.0.0/8
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_use_tls = yes
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = "The user you are trying to reach is over quota."
virtual_overquota_bounce = yes
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $r$
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings
IMAP and POP3 ist working fine, but if I want to connect localhost:25 I´ll get this messages:

Code:
[root@vs2060074 ~]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
Reply With Quote
  #3  
Old 21st May 2007, 21:42
the_spy the_spy is offline
Member
 
Join Date: May 2007
Posts: 91
Thanks: 20
Thanked 6 Times in 6 Posts
Default

may be you can try to change

pwcheck_method: authdaemond
to
pwcheck_method: saslauthd

in smtpd.conf
Reply With Quote
  #4  
Old 21st May 2007, 21:53
jpieper jpieper is offline
Junior Member
 
Join Date: May 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No changes.
Reply With Quote
  #5  
Old 22nd May 2007, 15:21
aarayas aarayas is offline
Junior Member
 
Join Date: May 2007
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
Default

Any ideas?
tranks again..
Reply With Quote
  #6  
Old 22nd May 2007, 17:36
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Please compare your configuration with tihs tutorial: http://www.howtoforge.com/fedora_vir..._quota_courier (should work for CentOS as well).

BTW, please don't hijack other threads as this makes it really difficult to answer...
__________________
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 23rd May 2007, 22:53
aarayas aarayas is offline
Junior Member
 
Join Date: May 2007
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
 
Default Solved

install
yum install cyrus-sasl-plain

and worked

Reply With Quote
The Following User Says Thank You to aarayas For This Useful Post:
rdhir (12th May 2009)
Reply

Bookmarks

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
SASL authentication problem _Alien__ HOWTO-Related Questions 17 24th June 2010 13:15
Postfix: smtpd --> SASL LOGIN authentication failed tom General 25 2nd February 2010 17:43
My turn - Email problems Wickednix Server Operation 1 16th December 2006 23:48
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 15:36


All times are GMT +2. The time now is 11:37.


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