[SWLUG] SMTP Problems

Justin Mitchell justin at discordia.org.uk
Fri Jan 28 11:20:25 UTC 2011


On Fri, 2011-01-28 at 11:12 +0000, Jon Reynolds wrote:
> On Fri, Jan 28, 2011 at 10:59:46AM +0000, Justin Mitchell wrote:
> > On Fri, 2011-01-28 at 09:36 +0000, Jon Reynolds wrote:
> > > Hi folks,
> > > 
> > > I am having (and always have had) a problem with my SMTP setup. Ever
> > > since I have been running my own mail server I cannot seem to quite get
> > > it set up right so that I can send mail from a _remote_ device. Sending
> > > works fine 'from the server' i.e. if I ssh in and use mutt, or if I use
> > > Roundcube installed on my server through a browser.
> > > 
> > > But I cannot get the settings quite right when trying to set up a remote
> > > client, e.g. I am trying to use Maildroid and K9 on my Android phone. I
> > > can access my mail fine, read all the different imap folders, but I
> > > cannot send. 
> > > 
> > > During the set up of the account on the client, when entering SMTP
> > > details, I am not 100% sure what I should be entering based on how I set
> > > my system up. I set my system up using this guide >
> > > http://www.howtoforge.com/perfect-server-ubuntu8.04-lts-p5
> > > 
> > > ...so i think I should be able to use SMTP with TLS (although tbh I am a
> > > little uncertain to what everything means).
> > > 
> > > When I try to set up the account, I get an authentication error for
> > > SMTP.
> > > 
> > > This is what /var/log/mail.log says when I try to set up my account on
> > > the remote device (and it tries to connect) using the following settings:
> > > 
> > > Incoming IMAP server using TLS/SSL on port 993
> > > Outgoing SMTP server NOT using TLS/SSL on port 25
> > 
> > > Jan 28 09:29:57 jcrdevelopments postfix/smtpd[14282]: warning: SASL
> > > authentication failure: cannot connect to saslauthd server: No such file
> > > or directory
> > 
> > 
> > your saslauthd daemon isnt running, that has to be there to handle the
> > password checking used during auth.
> > 
> > 
> > have you made sure that the service is going to be restarted on reboot
> > 
> > _______________________________________________
> > SWLUG Discussion List - Discuss at swlug.org
> > http://swlug.org/mailman/listinfo/discuss
> 
> Hi Justin,
> 
> I believe my saslauthd is running:
> 
> -----------------------
> jonr at jcrdevelopments:~$ ps -aux | grep sasl
> Warning: bad ps syntax, perhaps a bogus '-'? See
> http://procps.sf.net/faq.html
> root      5772  0.0  0.0  53576   396 ?        Ss   Jan27   0:00
> /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r
> -n 5
> root      5773  0.0  0.0  53576   132 ?        S    Jan27   0:00
> /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r
> -n 5
> root      5775  0.0  0.0  53576    28 ?        S    Jan27   0:00
> /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r
> -n 5
> root      5776  0.0  0.0  53576    28 ?        S    Jan27   0:00
> /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r
> -n 5
> root      5777  0.0  0.0  53576    28 ?        S    Jan27   0:00
> /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r
> -n 5
> ------------------------
> 
> Unless I am missing something?


well the piece of your log i quoted was postfix not being able to talk
to saslauthd, i expected the reason to be that it wasnt there.


hrm  /var/spool/postfix/var/run/saslauthd  is a bit of a strange
pathname...

i would investigate around that





More information about the Swlug mailing list