Dear Dan,<br><br>I have my user in Mysql DB. At this time I can send mail on other recipients (<a href="mailto:pippo@gmail.com">pippo@gmail.com</a> for example) but I can't receive it?<br><br>If I try to send e-mail to my recipient I have the following message on /var/log/<a href="http://mail.info">mail.info</a><br>
<br>Jan 14 18:15:29 ms postfix/smtpd[18247]: connect from unknown[192.168.1.3]<br>Jan 14 18:15:29 ms postfix/smtpd[18247]: 625972BAD2: client=unknown[192.168.1.3]<br>Jan 14 18:15:30 ms postfix/cleanup[18260]: 625972BAD2: message-id=<000a01c9766b$4ae01ef0$e0a05cd0$@it><br>
Jan 14 18:15:30 ms postfix/qmgr[18212]: 625972BAD2: from=<<a href="mailto:cyrus@dajs.it">cyrus@dajs.it</a>>, size=2623, nrcpt=1 (queue active)<br>Jan 14 18:15:30 ms postfix/pipe[18270]: 625972BAD2: to=<<a href="http://cyrus.dajs.it">cyrus.dajs.it</a>@ms.farm.dajs>, orig_to=<<a href="mailto:cyrus@dajs.it">cyrus@dajs.it</a>>, relay=cyrus, delay=0.88, delays=0.78/0.01/0/0.09, dsn=5.6.0, status=bounced (data format error. Command output: <a href="http://cyrus.dajs.it">cyrus.dajs.it</a>: Mailbox does not exist )<br>
Jan 14 18:15:30 ms postfix/cleanup[18260]: 2D9A02BAE3: message-id=<20090114171530.2D9A02BAE3@ms.farm.dajs><br>Jan 14 18:15:30 ms postfix/bounce[18276]: 625972BAD2: sender non-delivery notification: 2D9A02BAE3<br>Jan 14 18:15:30 ms postfix/qmgr[18212]: 2D9A02BAE3: from=<>, size=4414, nrcpt=1 (queue active)<br>
Jan 14 18:15:30 ms postfix/qmgr[18212]: 625972BAD2: removed<br>Jan 14 18:15:30 ms postfix/pipe[18270]: 2D9A02BAE3: to=<<a href="http://cyrus.dajs.it">cyrus.dajs.it</a>@ms.farm.dajs>, orig_to=<<a href="mailto:cyrus@dajs.it">cyrus@dajs.it</a>>, relay=cyrus, delay=0.12, delays=0.04/0.02/0/0.05, dsn=5.6.0, status=bounced (data format error. Command output: <a href="http://cyrus.dajs.it">cyrus.dajs.it</a>: Mailbox does not exist )<br>
Jan 14 18:15:30 ms postfix/qmgr[18212]: 2D9A02BAE3: removed<br>Jan 14 18:15:32 ms postfix/smtpd[18247]: disconnect from unknown[192.168.1.3]<br><br>Could you suggest me a solution of this problem. <br>Thanks for support<br>
Simone<br><br><div class="gmail_quote">2009/1/14 Dan White <span dir="ltr"><<a href="mailto:dwhite@olp.net">dwhite@olp.net</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">Simone Romano wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi to all,<br>
<br>
I'm trying to install a mail server using the following guide:<br>
<a href="http://www.delouw.ch/linux/Postfix-Cyrus-Web-cyradm-HOWTO/html/" target="_blank">www.delouw.ch/linux/Postfix-Cyrus-Web-cyradm-HOWTO/html/</a><br>
<br>
The installation seems to work. But now when I try to add new user and<br>
create the sasldb2 DB with saslpasswd2 -c user command in my<br>
/var/log/messages I found the following output:<br>
<br>
Jan 14 14:37:11 ms saslpasswd2: could not find auxprop plugin, was<br>
searching for [all]<br>
Jan 14 14:37:11 ms saslpasswd2: secret not changed for cyrus: no<br>
writable auxprop plugin or setpass callback found<br>
Jan 14 14:37:11 ms saslpasswd2: could not find auxprop plugin, was<br>
searching for [all]<br>
<br>
And the /etc/saldb2 was not created<br>
<br>
I searched a solution by Google but I didn't find how to fix this error<br>
Can anyone help me?<br>
<br>
Thanks in advance<br>
Simo<br>
<br>
</blockquote>
<br></div></div>
Simone,<br>
<br>
After looking through that document, I see the following SASL config tips:<br>
<br>
In /usr/local/lib/sasl2/smtpd.conf:<br>
<br>
pwcheck_method: saslauthd<br>
<br>
and in /etc/imapd.conf:<br>
sasl_mech_list: PLAIN<br>
sasl_pwcheck_method: saslauthd<br>
<br>
/etc/imapd-local.conf:<br>
sasl_mech_list: PLAIN<br>
sasl_pwcheck_method: saslauthd<br>
<br>
saslauthd is started like:<br>
/usr/local/sbin/saslauthd -c -a pam&<br>
<br>
and PAM is configured to use mysql - in /etc/pam.d/imap:<br>
auth sufficient pam_mysql.so user=mail passwd=secret host=localhost db=mail table=accountuser usercolumn=username passwdcolumn=password crypt=1 logtable=log logmsgcolumn=msg logusercolumn=user loghostcolumn=host logpidcolumn=pid logtimecolumn=time<br>
auth sufficient pam_unix_auth.so<br>
account required pam_mysql.so user=mail passwd=secret host=localhost db=mail table=accountuser usercolumn=username passwdcolumn=password crypt=1 logtable=log logmsgcolumn=msg logusercolumn=user loghostcolumn=host logpidcolumn=pid logtimecolumn=time<br>
account sufficient pam_unix_acct.so<br>
<br>
And then later it encourages you to:<br>
<br>
"To add the Cyrus user to the sasldb use the command:<br>
saslpasswd2 -c cyrus<br>
Password: (enter your passwd)<br>
Again (for verification): (enter your password)"<br>
<br>
and then the next step is to create other users using a MySQL client utility.<br>
<br>
<br>
The problem is that there's a step missing somewhere before the 'saslpasswd2' command, which doesn't make a lot of sense given the bigger picture.<br>
<br>
Probably your easiest fix is just to use the MySQL client to create the 'cyrus' user, rather than using saslpasswd2.<br>
<br>
If you really wish to create users with saslpasswd2 then you'll need to create a saslpass2.conf config for SASL, to give it hints on how to store users.<br>
<br>
For example, place the following in /usr/lib/sasl2/saslpasswd2.conf:<br>
pwcheck_method: auxprop<br>
auxprop_plugin: sql<br>
mech_list: PLAIN LOGIN<br>
sql_engine: mysql<br>
sql_user: mail<br>
sql_passwd: <the mysql user mail's password><br>
sql_hostnames: <the mysqld hostname><br>
sql_database: mail<br>
sql_select: SELECT password FROM accountuser WHERE username = '%u@%r'<br>
OR (username ='%u' AND domain_name = '') (all one line)<br>
<br>
<br>
<br>
SASL config options are documented in the /doc/options.html file within the SASL source.<br>
<br>
I found the above config in at <a href="http://www.qwik.net/howto/howto.pdf" target="_blank">http://www.qwik.net/howto/howto.pdf</a><br>
<br>
</blockquote></div><br>