[Dovecot] smtp -auth with using clear text password
Agnello George
agnello.dsouza at gmail.com
Sat May 5 09:14:02 EEST 2012
>
> You need to configure Postfix to use dovecot as SASL provider. There are
> some Howto's in the wiki.
>
> http://wiki2.dovecot.org/**HowTo/PostfixAndDovecotSASL<http://wiki2.dovecot.org/HowTo/PostfixAndDovecotSASL>
> http://wiki2.dovecot.org/**HowTo/**VirtualUserFlatFilesPostfix<http://wiki2.dovecot.org/HowTo/VirtualUserFlatFilesPostfix>
>
> If you cannot solve it with this please provide dovecot -n, postfix -n and
> logs with auth_debug=yes.
>
I had followed the documentation as per . however in the i get the
following error .
[root at test /]# telnet 192.168.77.36 110
Trying 192.168.77.36...
Connected to mail.server.co.in (192.168.77.36).
Escape character is '^]'.
+OK Dovecot ready.
user agnello
+OK
pass 123456
Connection closed by foreign host.
in the maillog i get the following error :
May 5 11:30:43 mail dovecot: imap-login: Disconnected (no auth attempts):
rip=192.168.70.12, lip=192.168.77.36
May 5 11:30:55 mail dovecot: pop3-login: Login: user=<agnello>,
method=PLAIN, rip=192.168.70.12, lip=192.168.77.36, mpid=30400
May 5 11:30:55 mail dovecot: pop3(agnello): Error: user agnello: Couldn't
drop privileges: User is missing UID (see mail_uid setting)
May 5 11:30:55 mail dovecot: pop3(agnello): Error: Internal error
occurred. Refer to server log for more information.
-----------------------------------------------------
my confi file details is as follows :
cat /etc/dovecot/passwd
agnello:{plain}123456
[root at mail ~]# cat /etc/dovecot/dovecot.conf
# 2.0.9: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-71.el6.x86_64 x86_64 CentOS Linux release 6.0 (Final)
auth_verbose = yes
disable_plaintext_auth = no
passdb {
args = scheme=plain /etc/dovecot/passwd
driver = passwd-file
}
protocols = imap pop3
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
}
}
ssl = no
userdb {
driver = static
}
----------------------------------------------------------------
[root at mail ~]# cat /etc/postfix/main.cf
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions = permit_mynetworks,
permit_sasl_authenticated, reject_unauth_destination
----------------------------------------------------------------------------------------------------------------------------------
these are my configuration files ..
Can someone help me here
thanks :)
--
Regards
Agnello D'souza
More information about the dovecot
mailing list