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 16th August 2006, 13:31
Abe Abe is offline
Junior Member
 
Join Date: Aug 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default postfix SASL problem

Now I'm synchronizing the web for days, but only got headache and no hint to solve my problem...

I followed your advises in "The Perfect Setup - Debian Sarge" and installed ISPconfig. At the moment everything seems to work fine, except of postfix.

courier is running, I can login an recieve emails, but I cant login to postfix and send mails.

see my /var/log/mail.log:
Quote:
Aug 16 12:50:44 debian-web courierpop3login: Connection, ip=[::ffff:217.86.162.133]
Aug 16 12:50:44 debian-web courierpop3login: LOGIN, user=web6_xxx, ip=[::ffff:217.86.162.133]
Aug 16 12:50:44 debian-web courierpop3login: LOGOUT, user=web6_xxx, ip=[::ffff:217.86.162.133], top=0, retr=0, time=0
Aug 16 12:50:44 debian-web postfix/smtpd[12348]: connect from debian-web.domain.tld[217.86.162.133]
Aug 16 12:50:47 debian-web postfix/smtpd[12348]: warning: debian-web.domain.tld[217.86.162.133]: SASL LOGIN authentication failed
Aug 16 12:50:47 debian-web postfix/smtpd[12348]: lost connection after AUTH from debian-web.domain.tld[217.86.162.133]
Aug 16 12:50:47 debian-web postfix/smtpd[12348]: disconnect from debian-web.domain.tld[217.86.162.133]
May be it helps to solve my problem:
the output of postconf -n is:
Quote:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
inet_interfaces = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = /etc/postfix/local-host-names
myhostname = debian-web.domain.tld
mynetworks = 127.0.0.0/8 192.168.0.0/24
myorigin = /etc/mailname
recipient_delimiter = +
relayhost =
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
The file /etc/postfix/virtusertable seems to be ok:
Quote:
xxx@domain.tld web6_xxx
web6_xxx@domain.tld web6_xxx
but the saslauthentification fails:
the output of "testsaslauthd -u web6_xxx -p yyy -s smtp" is:
Quote:
connect() : No such file or directory
Any Ideas? I don't have any more.
Thanks,
Arnt Below
Reply With Quote
Sponsored Links
  #2  
Old 16th August 2006, 13:53
sjau sjau is offline
Local Meanie
 
Join Date: Apr 2006
Location: Switzerland
Posts: 1,138
Thanks: 4
Thanked 52 Times in 48 Posts
Default

In the main.cf I hove this here:

Code:
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_security_options = noanonymous
before the smtpd_recipient_restrictions.
Maybe that helps?
Reply With Quote
  #3  
Old 16th August 2006, 14:06
Abe Abe is offline
Junior Member
 
Join Date: Aug 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It's the same in my main.cf
I posted the output of "postconf -n" so the advises are sorted alphanumerical.
Here you have a copy of my main.cf:
Quote:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

myhostname = debian-web.domain.tld
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = debian-web.domain.tld, localhost.domain.tld, domain.tld, localhost
relayhost =
mynetworks = 127.0.0.0/8 192.168.0.0/24
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
smtpd_sasl_local_domain = $myhostname
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
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

virtual_maps = hash:/etc/postfix/virtusertable

mydestination = /etc/postfix/local-host-names
Thank for your reply.
Reply With Quote
  #4  
Old 16th August 2006, 14:10
sjau sjau is offline
Local Meanie
 
Join Date: Apr 2006
Location: Switzerland
Posts: 1,138
Thanks: 4
Thanked 52 Times in 48 Posts
Default

Is sasl actually installed?
Reply With Quote
  #5  
Old 16th August 2006, 14:16
Abe Abe is offline
Junior Member
 
Join Date: Aug 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes it is.
Specifying the socket path the sasl-authentification works:
"testsaslauthd -u web6_xxx -p yyy -f /var/spool/postfix/var/run/saslauthd/mux -s smtp" gives back:
0: OK "Success."
Reply With Quote
  #6  
Old 16th August 2006, 14:19
sjau sjau is offline
Local Meanie
 
Join Date: Apr 2006
Location: Switzerland
Posts: 1,138
Thanks: 4
Thanked 52 Times in 48 Posts
Default

then I can't help you I only have little knowledge about linux and stuff ^^
Reply With Quote
  #7  
Old 16th August 2006, 14:23
Abe Abe is offline
Junior Member
 
Join Date: Aug 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

don't worry about, it's the same to me.
Reply With Quote
  #8  
Old 16th August 2006, 14:25
sjau sjau is offline
Local Meanie
 
Join Date: Apr 2006
Location: Switzerland
Posts: 1,138
Thanks: 4
Thanked 52 Times in 48 Posts
Default

if you need immediate help you may want to use IRC.

Server: irc.freenode.org
Channel: #postfix

f3w (if he is in there) helped me in the past to fix my problems ^^
Reply With Quote
  #9  
Old 17th August 2006, 16:39
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
Default

Did you use the correct username and password?
What's the output of
Code:
netstat -tap
and
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
  #10  
Old 17th August 2006, 17:30
jimmy jimmy is offline
Junior Member
 
Join Date: Nov 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

You also might want to check to make sure that users email directory exists.
Quote:
connect() : No such file or directory
Reply With Quote
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
postfix problems with smtp linkdeb Server Operation 13 15th March 2014 17:58
SASL AUTH with postfix on Sarge keulu Server Operation 6 31st August 2006 22:49
Postfix Problem rlhesson Installation/Configuration 2 9th August 2006 03:49
postfix auth problem (sasl) lerra Installation/Configuration 40 10th May 2006 23:36
postfix problem flourishing General 1 7th December 2005 17:39


All times are GMT +2. The time now is 10:33.


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