PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Logiciels d'hébergement > mailing.postfix.users > Postfix sasl mysql
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Postfix sasl mysql

Réponse
 
LinkBack Outils de la discussion
Vieux 10/04/2006, 16h17   #1 (permalink)
Arkham
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Postfix sasl mysql

Hi, i'm having some problems regard authenticating users from internet
that want use my smtp server for delivery to any non-local domain.

here the main.cf about the sasl parameters :

smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks,
permit_sasl_authenticated, reject_unauth_destination

then

/etc/postfix/sasl/smtpd.conf

pwcheck_method: auxprop
auxprop_plugin: sql
mech_list: plain login cram-md5 digest-md5
sql_engine: mysql
sql_hostnames: 127.0.0.1
sql_user: xxxx
sql_passwd: xxxx
sql_database: database
sql_select: select password from users where email='%u@%r': login plain
log_level: 7



#tail /var/log/mail.log

Apr 10 17:08:30 mail postfix/smtpd[30633]: connect from *ip_esterno*
Apr 10 17:08:30 mail postfix/smtpd[30633]: NOQUEUE: reject: RCPT from
*ip_esterno* <pippo@gmail.com>: Relay access denied;
from=<asd@miodominio.net> to=<pippo@gmail.com> proto=SMTP
helo=<Assistenza>
Apr 10 17:08:30 mail postfix/smtpd[30633]: disconnect from *ip_esterno*

#tail /var/log/auth.log :

Apr 10 16:39:01 mail CRON[30516]: (pam_unix) session closed for user
root
Apr 10 16:39:41 mail postfix/smtpd[30533]: sql auxprop plugin using
mysql engine
Apr 10 16:39:41 mail postfix/smtpd[30535]: sql auxprop plugin using
mysql engine
Apr 10 16:39:41 mail postfix/smtpd[30537]: sql auxprop plugin using
mysql engine
Apr 10 16:39:41 mail postfix/smtpd[30538]: sql auxprop plugin using
mysql engine
Apr 10 16:50:11 mail postfix/smtpd[30575]: sql auxprop plugin using
mysql engine
Apr 10 16:58:57 mail postfix/smtpd[30607]: sql auxprop plugin using
mysql engine
Apr 10 17:08:30 mail postfix/smtpd[30633]: sql auxprop plugin using
mysql engine
Apr 10 17:09:01 mail CRON[30640]: (pam_unix) session opened for user
root by (uid=0)
Apr 10 17:09:01 mail CRON[30640]: (pam_unix) session closed for user
root

Do you see something strange ?


Unfortunately i don't know where i have to search the problem, i hope
some delucidation.

Tnx

  Réponse avec citation
Vieux 11/04/2006, 14h34   #2 (permalink)
Greg Hackney
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Postfix sasl mysql

Arkham wrote:
> Unfortunately i don't know where i have to search the problem, i hope
> some delucidation.


Your maillog file should contain some SASL info or errors, and I don't see any; so my
assumption is that the remote SMTP connection was not even trying to authenticate.

Some things to try:

1. See if your SMTP server is offering up the authentication mechanisms.

telnet 127.0.0.1 25
ehlo world.com

(make sure it displays 1 or 2 lines that say:
250-AUTH CRAM-MD5 LOGIN DIGEST-MD5 PLAIN)

quit

2. Test with an email client such as Thunderbird, which allows you to specify an SMTP server
with a login and password.

3. If you are still stuck and need a test method that provides more clues: grab the source code
for Cyrus-IMAP. Compile it, but don't need to install it. It creates an executable called "imtest".
Copy that program to a filename of "smtptest". Type "./smtptest --" for instructions. It allows
you to test the various SASL mechanisms into your SMTP service, and provides some clues.

--
Greg




  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 01h06.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08899 seconds with 10 queries