On Tue, Jan 10, 2012 at 04:58:06PM +0000, Camaleón wrote: > On Mon, 09 Jan 2012 17:51:13 -0500, Tony Baldwin wrote: > > > I followed directions here: > > http://library.linode.com/email/postfix/dovecot-mysql-debian-6-squeeze#sph_configure-saslauthd-to-use-mysql > > to set up postfix/dovecot to mail from my linode running squeeze. > > > > I can now, either on that server or from home, collect mail from my > > domain with mutt, but when I try to send mail, I get a warning that the > > certificate hostname doesn't match the server, and, even when choosing > > (o) accept once // no (a) accept all option here // > > I get > > Sasl authentication failed. > > > > The one thing that I question is this: hostname on the server gives me > > $hostnamethatIassigned > > hostname -f on that server gives me > > $hostnamethatIassigned.linode.com > > so this is what I put for the FDQN, according to the tutorial. But I've > > set up mail for the domain > > mail.tonybaldwin.org > > > > imap is working, smtp is not > > But this is the first ever I have tried to set up a mail server, so I'm > > at a loss. > > Should I have entered my own domain for the fdqn? I didn't think so, > > since I set my domain in the virtualhost for postfix. But the > > certificate/hostname not matching makes me question this. > > > > Any assistance will be appreciated. > > Mmmm, my guess is that your are having problems (or at least "one" of the > problems, the other can be indeed with saslauth :-) ) with the SSL > certificate you have generated, described in this step of your guide¹. > > To verify this point, test if your smtp is working fine (port 25, no SSL) > and post here the results.
Okay, at this point, I am getting different errors. I think I resolved the sasl issue by correcting an error I had made in /etc/pam.d/smtpd But, now, if I telnet to localhost 25, either the connection drops immediately, or anything I try to do (like elho localhost) hangs for a long time, and then, again, just dumps the connection without result. Oddly, before correcting the error in /etc/pam.d/smtpd I would get expected results with telnet localhost 25 ehlo localhost (such as indication 250 - STARTTLS etc. ) but now, no joy...weird. > Also, review your Postfix logs (omit sensitive data if you post them here), > they're usually the best source for solving problems :-) > > ¹http://library.linode.com/email/postfix/dovecot-mysql-debian-6-squeeze#sph_create-an-ssl-certificate-for-postfix I was using precisely these instructions, and believe my cert is correct (I've redone it about 20 times now, too). I've gone over this whole tutorial like 20 times now. One thing: Initially my fqdn was set at server.linode.com, because I had somehow set it before my domain was resolving, or whatever. but I've changed it (echo server.tonybaldwin.org > /etc/hostname, hostname -F /etc/hostname), but when I've done dpkg --reconfigure postfix, it still wants to do server.linode.com and I fix that by hand in main.cf, and anywhere else I find it then restart postfix. This is the only thing odd I can identify. I pasted some of the errors from /var/log/mail.* here http://tonybaldwin.me/paste/index.php?6 I could paste any of the relevant other files (etc/postfix/main.cf or whatever) if it would help. Dovecot seems to be fine, I believe, so at this point, I do believe it's just something in postfix (postfix handles the smtp, yes?) Because i can connect with imap, just can't send/receive over smtp. I have made like 3 dummy accts, and they can mail each other on the server with mailx, then read that in mutt or squirrelmail over imap, but none can send or receive to/from the exterior. thanks tony -- http://www.tonybaldwin.me all tony, all the time -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20120110180516.ga9...@deathstar.hsd1.ct.comcast.net