Quoting Leonel Nunez <[EMAIL PROTECTED]>:

> David Rebarchik wrote:
>
> >Curtis Maurand wrote:
> >
> >
> >
> >>Hi,
> >> Is it possible to configure postfix to use dbmail's database for smtp
> >>authentication?
> >>
> >>I'm having a problem with evolution trying to do pop before smtp since
> >>I'm using IMAP.  While I have imap configured  and imap before smtp,
> >>evolution doesn't understand it and i get an error that states I'm
> >>trying to use pop before smtp on a non-pop source.  I'd be just as
> >>happy
> >>to configure postfix for authentication.
> >>
> >>Curtis
> >>_______________________________________________
> >>Dbmail mailing list
> >>Dbmail@dbmail.org
> >>https://mailman.fastxs.nl/mailman/listinfo/dbmail
> >>
> >>
> >>
> >>
> >
> >I've got a working AUTH SMTP using saslauth with the same table as dbmail.
> It
> >works great, but was a little trouble to set up.  You need to have a working
> >saslauth with mysql.  I had to compile my own as all the packages wouldn't
> >work.  It has been some time since I set it up, so I don't remember the
> >details.
> >
> >I hope you get it working.
> >
> >Dave
> >_______________________________________________
> >Dbmail mailing list
> >Dbmail@dbmail.org
> >https://mailman.fastxs.nl/mailman/listinfo/dbmail
> >
> >
> >
> >
> I have it already with   saslauthd
> the problem is that I have  users  with     [EMAIL PROTECTED]  and
> [EMAIL PROTECTED]
> saslauthd   breaks in   user1 as user  and  domain1.tld   as realm
>
> so  I can't have  the same user for  the same username with diferent domains
> not a problem right now but it will be
>
>
> I need to authenticate  with  the username as   [EMAIL PROTECTED]
>
>
> thanks
>
>
> Leonel
>
> _______________________________________________
> Dbmail mailing list
> Dbmail@dbmail.org
> https://mailman.fastxs.nl/mailman/listinfo/dbmail
>

In my main.cf for postfix I have:

smtpd_sasl_local_domain = dbmail

to set the default realm to dbmail
and my /usr/local/lib/sasl2/smtpd.conf file is:

sasl_pwcheck_method: auxprop
sasl_auxprop_plugin: mysql
sasl_auto_transition: no
sasl_mech_list: PLAIN LOGIN, CRAM-MD5
sql_user: dbmail
sql_passwd:rmail
sql_hostnames: localhost
sql_database: dbmail
sql_verbose: true
sql_statement: select passwd from users where userid =
IF('%r'='dbmail','%u','[EMAIL PROTECTED]')

the sql statement will add the realm to the username when checking the database
if it isn't dbmail (the default). This allows me to have the usernames be the
complete e-mail address in both dbmail and with auth smtp.

Hope this helps

Dave

Reply via email to