Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 8th July 2009, 16:41
bschultz bschultz is offline
Senior Member
 
Join Date: Jul 2006
Posts: 224
Thanks: 11
Thanked 10 Times in 10 Posts
Default SASL Authentication problem

I posted this on another thread...but the original poster of that thread is getting a different error message, so I'll try this one here...

I used the postfix with virtual users and mysql tutorial...and I'm using Lenny

This is the error I'm getting while trying to send using Outlook

Quote:
Jul 7 17:26:59 mail postfix/smtpd[5521]: connect from domain.com[my ip address]
Jul 7 17:26:59 mail postfix/smtpd[5521]: warning: SASL authentication problem: unknown password verifier
Jul 7 17:26:59 mail postfix/smtpd[5521]: warning: domain.com[my ip address]:
SASL LOGIN authentication failed: no mechanism available
Jul 7 17:26:59 mail postfix/smtpd[5521]: lost connection after AUTH from domain.com[my ip address]
Jul 7 17:26:59 mail postfix/smtpd[5521]: disconnect from domain.com[my ip address]
I am able to use webmail to send emails...and I am receiving SOME emails from other domains...but if I send an email from my work email address I get the email bounced back to me saying this

Quote:
A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed:
There is NO ERROR in the mail log.

Here is my smtpd.conf file

Quote:
pwcheck_method: saslauthd
mech_list: plain login
allow_plaintext: true
auxprop_plugin: mysql
sql_hostnames: 127.0.0.1
sql_user: mail_admin
sql_passwd: my_password
sql_database: mail
sql_select: select password from users where email = '%u'
My postfix main.cf

Quote:

# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

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

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


readme_directory = /usr/share/doc/postfix

# TLS parameters
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

myhostname = mail.listentothebeavers.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = mail.listentothebeavers.com, localhost, localhost.localdomain
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
html_directory = /usr/share/doc/postfix/html
message_size_limit = 30720000
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_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
virtual_create_maildirsize = yes
virtual_maildir_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 $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings
This...

telnet localhost 25
ehlo localhost

returns this...

Quote:
mail:~# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
220 mail.listentothebeavers.com ESMTP Postfix (Debian/GNU)
ehlo localhost
250-mail.listentothebeavers.com
250-PIPELINING
250-SIZE 30720000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
I do have "my server requires authentication" selected in Outlook...and I have no idea why the email from my work address gets bounced back.

Any ideas?

Thanks.
Reply With Quote
Sponsored Links
  #2  
Old 9th July 2009, 19:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

I wonder why there's nothing in the mail log. Are you absolutely sure that you connect to the correct server?
__________________
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 9th July 2009, 19:21
bschultz bschultz is offline
Senior Member
 
Join Date: Jul 2006
Posts: 224
Thanks: 11
Thanked 10 Times in 10 Posts
Default

The dns is set with Godaddy to my static IP address, so I don't know why I can't send from my work address to this server. The accounts on this server do get SOME email...but there's obviously a problem. I can't send using Outlook (webmail is fine) and some addresses can't send to this server too.

The only time I see errors in the log, though, is when I try to send from Outlook.
Reply With Quote
  #4  
Old 10th July 2009, 14:21
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

I have no idea what's wrong. Did you compare all your configuration files with the ones from the tutorial?
__________________
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 10th July 2009, 19:57
bschultz bschultz is offline
Senior Member
 
Join Date: Jul 2006
Posts: 224
Thanks: 11
Thanked 10 Times in 10 Posts
Default

I just re-checked all the Postfix parts of the howto, and everything looks OK. I'd think it was a DNS problem with my work email host...but I can't send using outlook either, so there's obviously a problem somewhere in the Postfix config.

How would I go about removing all signs of Postfix, Courier, Amavis, etc. from the tutorial, so trying that part from scratch (without having to do a complete re-install)?

Thanks!
Reply With Quote
  #6  
Old 10th July 2009, 21:56
bschultz bschultz is offline
Senior Member
 
Join Date: Jul 2006
Posts: 224
Thanks: 11
Thanked 10 Times in 10 Posts
Default

I just re-checked (again) the files created in the tutorial and I had an extra space (whitespace) after my passwords...all seems to be working now as I can send using Outlook.

I still can't send an email from my work address to my home server, but I have a trouble ticket in with that host to see what their mail log is showing.

Thanks Falko!
Reply With Quote
  #7  
Old 11th July 2009, 01:09
bschultz bschultz is offline
Senior Member
 
Join Date: Jul 2006
Posts: 224
Thanks: 11
Thanked 10 Times in 10 Posts
 
Default

The receiving problem was a DNS problem. The DNS was set with the IP address in teh MX record. That's against policy, so some hosts (including my work ISP) rejected those emails.

The extra space must have been the problem with the Outlook authentication, so now all is working. Thanks Falko for all you do!
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 - SASL Authentication not working corbinsiddall Installation/Configuration 3 23rd August 2012 20:34
ISPC3.0.1.1/CentOS 5.3 No SASL authentication mechanisms rdhir Installation/Configuration 7 12th May 2009 15:16
smtpd, SASL authentication failure: Steve_P Installation/Configuration 4 6th February 2009 17:26
postfix does not authenticate through saslauthd openman Server Operation 32 21st November 2008 11:29
postfix SASL problem Abe HOWTO-Related Questions 10 18th August 2006 18:53


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


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