Thanks man it worked for me. I appreciate it!
Thanks man it worked for me. I appreciate it!
This tutorial is great!! So far my server is able to send and receive mail by telnet.
But there is some problem while log in with SquirrelMail, it show "unknown user or password incorrect".
i log in with
username@mydomain.com
but it doesn't work.
Anyone having same problem but solved can give me some clues?
Last edited by crossRT; October 12th, 2014 at 05:01 AM.
I have a mail server setup and the manual by Ivar was great resource in helping me.
But issues with the Cyrus/saslauthd service started... The service started to act weird after working for a while and i needed to restart it from time to time. This error was generated in the logs:
DEBUG: auth_pam: pam_authenticate failed: Memory buffer error
After checking some forums and documentation, I've found out that there are some configuration mistakes present in the guide:
In /etc/postfix/sasl/smtpd.conf i had to change from:
to:pwcheck_method: saslauthd
mech_list: plain login cram-md5 digest-md5
log_level: 7
allow_plaintext: true
auxprop_plugin: sql
sql_engine: mysql
sql_hostnames: 127.0.0.1
sql_user: mail
sql_passwd: mailPASSWORD
sql_database: maildb
sql_select: select crypt from users where id='%u@%r' and enabled = 1
Here is the related doc that explains why the configuration of saslauthd needs only two mechanisms when pwcheck_method is saslauthd:pwcheck_method: saslauthd
mech_list: plain login
http://www.postfix.org/SASL_README.html#saslauthd
I guess an alternative way of configuration fix would be to use:
But then we would need to skip the "pam" config entirely...pwcheck_method: auxprop
Also to fix the "auxpropfunc error no mechanism available" error remove the libsasl sql module:
sudo apt-get remove libsasl2-modules-sql
Last edited by spraitas; November 4th, 2014 at 02:36 PM.
Just did an install on a fresh ubuntu server. Didn't totally work out as I hoped, at first there was a space after my password, my bad.
I had to configure roundcube to use a plain password, while the mySQL only has encrypted passwords in the database. The same goes for firebird/IceDove.
Also IceDove doesn't create the draft, sent etc... folders, that only happens when I log in with Roundcube.
Now I still can't send mail I get SMTP Error (554): Failed to add recipient "name@domain.tld" (5.7.1 <localhost[::1]>: Client host rejected: Access denied).
When I do a telnet to port 25, I can sent mail manualy, but when I try port 587, I get that error... Kind a strange...
Maybe I am going to fix the cram-md5, or going to use a tutorial with dovecot...
I guess it didn't work because my passwords start with $5$, which is SHA256-crypt...
Last edited by NielsNL; January 23rd, 2015 at 03:59 PM.
Bookmarks