- ok this is really gentoo setup, if you are using other distro
you will have to make sure that your postfix is compiled with
sasl, you nedd this line
==> ( libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x70370000) )
ldd /usr/sbin/postfix
libpcre.so.0 => /usr/lib/libpcre.so.0 (0x7002c000)
libdl.so.2 => /lib/libdl.so.2 (0x7004c000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x70060000)
libpthread.so.0 => /lib/libpthread.so.0 (0x7009c000)
libpam.so.0 => /lib/libpam.so.0 (0x700fc000)
libmysqlclient.so.12 => /usr/lib/libmysqlclient.so.12
(0x70114000)
libm.so.6 => /lib/libm.so.6 (0x70164000)
libz.so.1 => /usr/lib/libz.so.1 (0x701f4000)
libssl.so.0.9.7 => /usr/lib/libssl.so.0.9.7 (0x70214000)
libcrypto.so.0.9.7 => /usr/lib/libcrypto.so.0.9.7 (0x70254000)
libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x70370000)
libdb-4.1.so => /usr/lib/libdb-4.1.so (0x70394000)
libnsl.so.1 => /lib/libnsl.so.1 (0x7046c000)
libresolv.so.2 => /lib/libresolv.so.2 (0x70490000)
libc.so.6 => /lib/libc.so.6 (0x704b4000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x70000000)
- Metatmail is needed only for testing not for the functionality
- the config files might be in other places with other distros
- one thing that took me for days to resolve use these 2 line
pwcheck_method: saslauthd
mech_list: LOGIN PLAIN
YES even if you are using PAM
---my own doc---
put the sasl in the USE
emerge dev-libs/cyrus-sasl
emerge sys-libs/pam_mysql
emerge net-mail/metamail (optional)
emerge postfix
vi /etc/conf.d/saslauthd
vi /etc/sasl2/smtpd-2.0.conf
pwcheck_method: saslauthd
mech_list: LOGIN PLAIN
vi /etc/pam.d/smtp
auth required pam_mysql.so user=dbmail passwd=Hxm67mA0 host=mysql
db=dbmail table=users
usercolumn=userid passwdcolumn=password crypt=0
vi /etc/postfix/main.cf
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions =
permit_sasl_authenticated,
/etc/init.d/saslauthd start
ln -s /etc/sasl2 /etc/postfix/sasl2
TEST
----
the login is xming and pass is test
you need \0 teminated strings and twice the pass
printf 'xming\0xming\0test' | mimencode
eG1pbmcAeG1pbmcAdGVzdA==
telnet <ip of your server> 25
EHLO codenet
auth plain eG1pbmcAeG1pbmcAdGVzdA==
---my own doc---
hope this can help you
Ming-Wei
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Jason Burfield
Sent: Thursday, May 06, 2004 16:45
To: DBMail mailinglist
Subject: Re: [Dbmail] SMTP Auth
Yeah, I'd be interested in hearing more about this.
-- Jason
On May 6, 2004, at 10:41 AM, Shih Ming-Wei wrote:
> I have postfix+sals+pam-mysqldbmail working wiht Sparc64/Gentoo Linux,
> if some one is interested I can provide more info
>
> Ming-Wei
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Peter Darley
> Sent: Thursday, May 06, 2004 16:35
> To: DBMail mailinglist
> Subject: RE: [Dbmail] SMTP Auth
>
>
> Folks,
> I'm using PostgreSQL, rather than MySQL. :(
> I know there's a PostgreSQL PAM, I'll look into them. If I
figure
> this out with PostgreSQL I'll post some notes. Thanks, Peter Darley
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of John M. Brown
> Sent: Thursday, May 06, 2004 7:34 AM
> To: DBMail mailinglist
> Subject: Re: [Dbmail] SMTP Auth
>
>
> You should use PAM_MySQL...it's a PAIN to set up...but worth it in the
> end.
>
> There aren't many documents that I've found that give detailed
> step-by-step instructions on this with a clear and concise description
> of what exactly you're doing.
>
> I'll see if I can pull out some of the config files I'm using to help.
> You definitely should get pam_mysql installed first.
>
> http://pam-mysql.sourceforge.net
>
>
>
>> Folks,
>> I'm having a hard time find out how to set up smtp-auth with
> Postfix
>> and DBMail. Anyone got any pointers? Thanks,
>> Peter Darley
>>
>> _______________________________________________
>> Dbmail mailing list
>> [email protected] https://mailman.fastxs.nl/mailman/listinfo/dbmail
>>
>
> _______________________________________________
> Dbmail mailing list
> [email protected] https://mailman.fastxs.nl/mailman/listinfo/dbmail
>
> _______________________________________________
> Dbmail mailing list
> [email protected] https://mailman.fastxs.nl/mailman/listinfo/dbmail
> _______________________________________________
> Dbmail mailing list
> [email protected] https://mailman.fastxs.nl/mailman/listinfo/dbmail
>
_______________________________________________
Dbmail mailing list
[email protected] https://mailman.fastxs.nl/mailman/listinfo/dbmail