Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix/courier/Centos 6 cant send email to external email servers maxtorzito Installation/Configuration 14 7th October 2011 11:56
Postfix SMTP Auth to Dovecot Not Working -- HELP! Scratchpad Server Operation 6 12th April 2011 14:29
SquirrelMail login not working glenneh Installation/Configuration 13 9th April 2011 21:01
dovecot: lda: Fatal: Unknown user dpicella Installation/Configuration 1 22nd August 2010 03:59
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 16:47

All times are GMT +2. The time now is 21:09.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.