postfix "Error: authentication not enabled"

Greetings,

I'm having trouble getting postfix configured to accept SMTP connections from users. Whenever a user connects to the server, and tries to authenticate, they get the error message:

"Error: authentication not enabled"

I'm pretty sure it has something to do with SASL, but for the life of me I can't figure out why it's not letting users log in.

If anyone can point me in the right direction as to the directive that makes logging in through SMTP possible, I'd be very grateful. Google is no help on this one. =(

Thanks in advance!

postconf -n:

alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
newaliases_path = /usr/bin/newaliases.postfix
readme_directory = /usr/share/doc/postfix-2.0.16/README_FILES
sample_directory = /usr/share/doc/postfix-2.0.16/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_sasl_auth_enable = yes
unknown_local_recipient_reject_code = 450
virtual_alias_domains = mydomain.com
virtual_alias_maps = hash:/etc/postfix/virtual
viviotechAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

viviotechAuthor Commented:
Server Specs:

CentOS 3.3 (RHEL clone: http://centos.org)
Postfix Version: postfix-2.0.16-14.RHEL3.i386.rpm
0
owensleftfootCommented:
What errors do you get in /var/log/maillog?
0
viviotechAuthor Commented:
At the moment, none.

I've been playing with it more and I'm not getting the "Error: authentication not enabled" anymore, but I'm getting the "relay access denied" message. I just want it so that anyone who has a user account can log in and send messages to anyone they want. Here's the postconf -n that I have now:

alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
newaliases_path = /usr/bin/newaliases.postfix
readme_directory = /usr/share/doc/postfix-2.0.16/README_FILES
sample_directory = /usr/share/doc/postfix-2.0.16/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_sasl_auth_enable = yes
unknown_local_recipient_reject_code = 450
virtual_alias_domains = mydomains.com
virtual_alias_maps = hash:/etc/postfix/virtual
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

viviotechAuthor Commented:
Also, my /usr/lib/sasl2/smtpd.conf just contains one line:

pwcheck_method: saslauthd

I also have the following line in the main.cf file, but it doesn't appear to be showing up when I do the postconf -n command:

smtpd_sasl_application_name = smtpd

I really appreciate any help anyone can offer on this.

Thanks!
0
viviotechAuthor Commented:
Adding the following lines to the main.cf file seemed to fix the problem:

smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
broken_sasl_auth_clients = yes

smtpd_recipient_restrictions =
   permit_sasl_authenticated,
   permit_mynetworks,
   check_relay_domains

I found out about these by visiting the following URL:

http://postfix.state-of-mind.de/patrick.koetter/smtpauth/
0
troopernCommented:
http://www.gentoo.org/doc/en/virt-mail-howto.xml is a usefull link for making it work
Depends on how your userbase is located too
0
CetusMODCommented:
PAQed with points refunded (500)

CetusMOD
Community Support Moderator
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Installation

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.