[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

postfix and sasl



I'm having problem authenticating users in postfix through sasl, this is the main.cf part settings I make:

*****************************************************************************************************
myhostname = $mydomain
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = $mydomain, localhost.$mydomain
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
mydomain = localdomain
myorigin = $mydomain

smtp_sasl_auth_enabled = yes
smtp_sender_login_maps = hash:/etc/postfix/sasl_senders
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sender_dependent_authentication = yes

smtpd_sasl_auth_enabled = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $mydomain
broken_sasl_auth_clients = yes
smtpd_sender_login_maps = hash:/etc/postfix/sasl_senders

#medidas anti UCE
smtpd_delay_reject = no
smtpd_helo_required = yes
smtpd_client_restrictions = check_client_access pcre:/etc/postfix/client_checks.pcre
smtpd_helo_restrictions = check_helo_access pcre:/etc/postfix/helo_checks.pcre
smtpd_sender_restrictions = check_sender_access pcre:/etc/postfix/sender_checks.pcre

smtpd_recipient_restrictions = permit_sasl_authenticated
mail_spool_directory = /var/spool/mail/
***********************************************************************************************************

and the master.cf part concerning the smtp client:

***********************************************************************************************************
smtp      inet  n       -       -       -       -       smtpd -v
#submission inet n       -       -       -       -       smtpd
#  -o smtpd_enforce_tls=yes
   -o smtpd_sasl_auth_enable=yes
   -o smtpd_client_restrictions=permit_sasl_authenticated
***********************************************************************************************************

this above means I only can send mails if I'm authenticated first, but when I connect to the server with telnet to test, I can send mails without the need of authentication, is there something misconfigured here?


Ing. Leonardo Cuyar Morales
Grupo de Infraestructura Softel

Reply to: