PDA

View Full Version : Postfix Vs My server Requires Authentication


MonoSwim
30th October 2006, 21:18
I have a centos 4.4 installed in a 32 bits PC, I configured DNS, apache, FTP, I follow this tutorial

http://www.howtoforge.com/linux_postfix_virtual_hosting part 1 and 2

And everithing is fine...

BUT I neet that the postfix only send email IF the "outlook express" has the option MY SERVER REQUIRES AUTHENTICATION checked on...And if not has this checked out it has to give an error...

I have been trying and trying and trying but nothing :-(

my main.cf has

smtp_sasl_auth_enable = no
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions = permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes

what im I doing wrong ?

THANKS !!!
EDIT: my messages file says this...postfix/smtpd[5056]: auxpropfunc error no mechanism available, how can I put auxproc available? I cant use auxprox ? ut width de saslauthd it didn't work neither...

MonoSwim
31st October 2006, 23:45
If I don't click in MY SERVER REQUIRES AUTHENTICATION the mail doesn't go, thats is OK, but wuen I click it and put a WRONG PASSWORD the mail is sent :mad:

what is goin on ?

falko
1st November 2006, 18:47
Maybe this thread helps you: http://www.howtoforge.com/forums/showthread.php?t=3751&highlight=auxpropfunc+error+mechanism

MonoSwim
1st November 2006, 19:01
Now is working (I don't know how I did it) but I have de same problem my problem...In my log:

auxpropfunc error no mechanism available

THANX

falko
2nd November 2006, 16:04
What's in /etc/postfix/sasl/smtpd.conf?

MonoSwim
2nd November 2006, 16:20
I don't have that file, I'm using CENTOS server 4.4...

In my /usr/lib/sasl/smtpd.conf

pwcheck_method: saslauthd
saslauthd_version: 2

and in my /usr/lib/sasl2.smtpd.conf

pwcheck_method: saslauthd

And in my /etc/sysconfig/saslauthd

# Directory in which to place saslauthd's listening socket, pid file, and so
# on. This directory must already exist.
SOCKETDIR=/var/run/saslauthd

# Mechanism to use when checking passwords. Run "saslauthd -v" to get a list
# of which mechanism your installation was compiled to use.
#MECH=shadow
MECH=shadow

# Additional flags to pass to saslauthd on the command line. See saslauthd(8)
# for the list of accepted flags.
FLAGS=

I'm getting crazy, reguards and thanxs

falko
3rd November 2006, 16:32
I don't have that file, I'm using CENTOS server 4.4...Then have a look here: http://www.howtoforge.com/fedora_virtual_postfix_mysql_quota_courier
It should apply to CentOS as well.

In my /usr/lib/sasl/smtpd.conf

pwcheck_method: saslauthd
saslauthd_version: 2

and in my /usr/lib/sasl2.smtpd.conf

pwcheck_method: saslauthd

Try this in /usr/lib/sasl2/smtpd.conf:

pwcheck_method: authdaemond
log_level: 3
mech_list: PLAIN LOGIN
authdaemond_path:/var/spool/authdaemon/socket

MonoSwim
7th November 2006, 16:31
Pero con ese sistema de donde saca las contraseñas para autenticar ?

porque yo las tengo en el sasldb, pero cambié lo que me dijiste y no me toma las contraseñas, ninguna...

Saludos
PD: Yo en /var/spool no tenti ningún directorio authdeamon, ni con find o locate me aparece...

falko
8th November 2006, 18:36
Your chances of getting an answer are much higher if you post in English...

MonoSwim
8th November 2006, 18:59
jajajajajajajaja, I'm sorry, I'm from Argentina...We speack in spanish...I Forget it...

The question is, where does the authdaemond take the passwords from ?

Becouse I'm using the sasldb, and when I change what you said IT didn't take me any password, every password was not taken

Reguards
PD: In my centos I dont have a authdeamon dir, I look for it width FIND, WHEREIS AND LOCATE, and nothing...

falko
9th November 2006, 17:40
The question is, where does the authdaemond take the passwords from ?Normally from /etc/shadow, but if you use sasldb then the passwords are stored in there.