password authentication error when checking mail
I'm new to linode, but I am loving this service. Nice community as well.
Anyway, I am running a Fedora 8 server and have spent the last two days prepping it for Perl/Catalyst and PHP software development. I am down to the last bit, setting up my email server. I've been through both kangaby's and the AdminSpotting (new location: http://adminspotting.net/articles
[stephen]
14 Replies
@sasykes:
I am getting a password authentication error when trying to use Thunderbird to check mail. Any ideas?
What IMAP/POP3 server are you using? Do you have log entries?
It's a Postfix and Dovecot setup.
Only record in maillog is…
dovecot: Mar 13 13:13:16 Info: pop3-login: Disconnected: user=<
It's supposed to be setup as pop3, but when I start Dovecot I see "Starting Dovecot Imap:", if that means anything.
enable auth_debug, and pase new logs? http://wiki.dovecot.org/MainConfig
dovecot: Mar 13 15:25:05 Info: auth(default): client in: AUTH 1 PLAIN service=POP3 lip=::ffff:75.127.xx.xxx rip=::ffff:68.63.xx.xx resp= <hidden>dovecot: Mar 13 15:25:05 Info: auth(default): client out: CONT 1
dovecot: Mar 13 15:25:05 Info: auth(default): client in: CONT <hidden>dovecot: Mar 13 15:25:05 Info: auth(default): pam(stephen@domainname.us,::ffff:68.63.xx.xx): lookup service=dovecot
dovecot: Mar 13 15:25:07 Info: auth(default): pam(stephen@domainname.us,::ffff:68.63.xx.xx): pam_authenticate() failed: User not known to the underlying authentication module
dovecot: Mar 13 15:25:07 Info: auth(default): passwd-file(stephen@domainname.us,::ffff:68.63.xx.xx): lookup: user=stephen@domainname.us file=/etc/postfix/virtual/passwd
dovecot: Mar 13 15:25:07 Info: auth(default): passwd-file(stephen@domainname.us,::ffff:68.63.xx.xx): unknown user
dovecot: Mar 13 15:25:09 Info: auth(default): client out: FAIL 1 user=stephen@domainname.us
dovecot: Mar 13 15:25:09 Info: auth(default): client in: AUTH 2 LOGIN service=POP3 lip=::ffff:75.127.xx.xxx rip=::ffff:68.63.xx.xx resp= <hidden>dovecot: Mar 13 15:25:09 Info: auth(default): client out: CONT 2 VXNlcm5hbWU6
dovecot: Mar 13 15:25:09 Info: auth(default): client in: CONT <hidden>dovecot: Mar 13 15:25:09 Info: auth(default): client out: CONT 2 UGFzc3dvcmQ6
dovecot: Mar 13 15:25:09 Info: auth(default): client in: CONT <hidden>dovecot: Mar 13 15:25:09 Info: auth(default): pam(stephen@domainname.us,::ffff:68.63.xx.xx): lookup service=dovecot</hidden></hidden></hidden></hidden></hidden>
Looks like it's not finding the user?
I'll keep working on it. I really appreciate your help, mwalling. Thanks.
I read somewhere on one of the postfix setup guides, that a user was having problems with authenticating to postfix in Redhat (don't know which version). It was because that distro's version of postfix didn't support Dovecot's SASL.
Support for the Dovecot version 1 SASL protocol is available in Postfix 2.3 and later.
This might or might not help.
Should myhostname = mail.mydomain.us or li24-215.members.linode.com?
And do I just need mail.mydomain.us for MX, or do I need one for each mail box?
Sorry for the stupid questions, I am new to setting up mail server.
Modules available via yum:
cyrus-sasl
cyrus-sasl-devel
cyrus-sasl-gssapi
cyrus-sasl-md5
cyrus-sasl-plain
Doc for setting up Postfix and Dovecot of Fedora 8:
My tutorial uses Dovecot SASL and you are using cyrus-sasl, so my tutorial won't help you there.
You need SASL so remote users can authenticate to you mail server to send mail. If you don't do this you either have a mail server that will only accept mail from local user accounts, or you have an open relay (read really, really, bad)
If you are using local mail you should be able to test with the mail command on your system and send mail to another local user on your system.
If you are using virtual mail, which I suspect you are trying to do, then you need to authenticate them with postfix to send mail and authenticate them with dovecot to get mail.
I think cyrus uses a different format of the user / password file to dovecot. I don't use it so I don't know, but I think I read it somewhere.
I'm by no means an expert on mail systems or how to set them up.
You are just going to have to read a heap of tutorials and take the best bits to use for you requirements. It will slowly come together, but it's going to take more than a day.
When I try to send an email from my ISP to my linode email account I get returned mail with this message.
Final-recipient: rfc822; stephen@mydomain.us
Action: failed
Status: 5.1.1
Diagnostic-Code: smtp; 554 5.7.1 <stephen@mydomain.us>: Relay access denied
Last-attempt-Date: Fri, 14 Mar 2008 17:43:59 +0000</stephen@mydomain.us>
Thanks for all your help, guys.
mydestination = $myhostname, localhost.$mydomain, localhost
myhostname = li24-215.members.linode.com
I've tried using "mail.mydomain.us" instead and all sorts of other configs yet nothing seems to work.
"The list of domains that are delivered via the $local_transport mail delivery transport." which means that if you want to receive mail to mydomain.us, you should put mydomain.us there.
Edit: I got it working by having Dovecot set to /home/stephen/Maildir. I suppose I need to change the home to /var/mail/vmail/stephen somehow using Postfix if I want to use the virtual mailbox method. I appreciate everyones help with this, and I'll probably start posting in another linode forum shortly. Next is an attempt to setup an FTP server.