Hi.
I tried to set up my mailserver like in this tutorial
Virtual Users And Domains With Postfix, Courier And MySQL (Ubuntu 6.10 Edgy Eft)
I can send emails to my server from another email address, and i can collect emails from my server using imap protocol, but i cant send mails from my server (e.g. with thunderbird).
I googled alot but I could not find any useful information.
error message from /var/log/mail.log
Code:
Apr 24 18:27:13 v914 saslauthd[24494]: DEBUG: auth_pam: pam_authenticate failed: User not known to the underlying authentication module
Apr 24 18:27:13 v914 saslauthd[24494]: do_auth : auth failure: [user=test@example.info] [service=smtp] [realm=example.info] [mech=pam] [reason=PAM auth error]
Apr 24 18:27:13 v914 saslauthd[24493]: (pam_unix) check pass; user unknown
Apr 24 18:27:13 v914 saslauthd[24493]: (pam_unix) authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=
Apr 24 18:27:15 v914 saslauthd[24493]: DEBUG: auth_pam: pam_authenticate failed: User not known to the underlying authentication module
Apr 24 18:27:15 v914 saslauthd[24493]: do_auth : auth failure: [user=test@example.info] [service=smtp] [realm=example.info] [mech=pam] [reason=PAM auth error]
(ofcourse
test@example.info stands for my real username and realm)
error message from /var/log/auth.log
Code:
Apr 24 18:01:55 v914 postfix/smtpd[21667]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Apr 24 18:01:58 v914 postfix/smtpd[21667]: warning: SASL authentication failure: cannot connect to saslauthd server: Permission denied
Apr 24 18:01:58 v914 postfix/smtpd[21667]: warning: SASL authentication failure: Password verification failed
Apr 24 18:01:58 v914 postfix/smtpd[21667]: warning: dslc-082-082-074-037.pools.arcor-ip.net[MYIP]: SASL PLAIN authentication failed: generic failure
I think its a problem with saslauthd. But I can't find out what I do wrong.
This are my configurationfiles:
/etc/default/saslauthd
Code:
START=yes
PARAMS="-m /var/spool/postfix/var/run/saslauthd -r"
PIDFILE="/var/spool/postfix/var/run/${NAME}/saslauthd.pid"
# You must specify the authentication mechanisms you wish to use.
# This defaults to "pam" for PAM support, but may also include
# "shadow" or "sasldb", like this:
# MECHANISMS="pam shadow"
MECHANISMS="pam"
/etc/postfix/sasl/smtpd.conf
Code:
pwcheck_method: saslauthd
mech_list: PLAIN LOGIN
allow_plaintext: true
auxprop_plugin: mysql
sql_hostnames: 127.0.0.1
sql_user: USER
sql_passwd: PW
sql_database: mail
sql_select: select password from users where email = '%u'
(USER and PW = real username and pw

)
vi /etc/pam.d/smtp
Code:
auth required pam_mysql.so user=USER passwd=PW host=127.0.0.1 db=mail table=users usercolumn=email passwdcolumn=password crypt=1
account sufficient pam_mysql.so user=USER passwd=PW host=127.0.0.1 db=mail table=users usercolumn=email passwdcolumn=password crypt=1
MySQL username and password information is correct in all files!
If anyone knows a solution please help me.
thx
/iamx
Recent comments
20 hours 20 min ago
1 day 1 hour ago
1 day 2 hours ago
1 day 3 hours ago
1 day 5 hours ago
1 day 9 hours ago
1 day 10 hours ago
1 day 12 hours ago
2 days 1 hour ago
2 days 3 hours ago