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.
Reply
 
Thread Tools Display Modes
  #1  
Old 2nd September 2012, 10: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
  #2  
Old 2nd September 2012, 13:57
wakary wakary is offline
Junior Member
 
Join Date: Sep 2012
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
 
Default Solved it

The configuration for dovecot is in 2 places /etc/dovecot/dovecot.conf and in /etc/dovecot/conf.d.

I found the necessary configuration parameters commented in: /etc/dovecot/conf.d/10-master.conf
Reply With Quote
The Following User Says Thank You to wakary For This Useful Post:
falko (4th September 2012)
Reply

Bookmarks

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 10:56
Postfix SMTP Auth to Dovecot Not Working -- HELP! Scratchpad Server Operation 6 12th April 2011 13:29
SquirrelMail login not working glenneh Installation/Configuration 13 9th April 2011 20:01
dovecot: lda: Fatal: Unknown user dpicella Installation/Configuration 1 22nd August 2010 02:59
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47


All times are GMT +2. The time now is 04:17.


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