View Single Post
  #1  
Old 2nd September 2012, 11:39
wakary wakary is offline
Junior Member
 
Join Date: Sep 2012
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Default SMTP authentification: Postfix and Dovecot SASL

I have a Ubuntu server 12.04 hosted in another country.

I have installed Postfix and Dovecot for my mail server.
I can receive mail from services like yahoo and google.
I can view my server inbox using Sylpheed with IMAP or POP3.
I can send mail anywhere (tested with yahoo, google , hotmail).

If I: telnet localhost 25 from the server I can send mail.
But if I: telnet server_domain 25 from home I can't send mail (relay acces denied). I know this happens because my home ip is not in the mynetworks parameter in postfix, but because I have a dynamic ip I can't set it in the config file.

So I want to connect with SASL authentication to be able to send mail.

Following the Dovecot documentation on Postfix/Dovecot SASL I configured both Dovecot and Postfix for SASL but when I telnet I don't receive this message: 250-AUTH PLAIN LOGIN.

I know my dovecot configuration is not set right because I get errors like this when starting up dovecot:
"doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:10: userdb passwd {} has been replaced by userdb { driver=passwd }
"
If I put this:
auth default {

mechanisms = plain login

passdb pam {
}

userdb passwd {
}

socket listen {

client {

path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}}}
In the dovecot.conf file (the syntax is diferent in my version of dovecot (2.0.19) than all the guides I found on google)

Can you translate the configuration above in the new dovecot syntax?
Reply With Quote
Sponsored Links