Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 981
  • Last Modified:

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
0
viviotech
Asked:
viviotech
1 Solution
 
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now