You are not logged in.

#1 2011-11-10 10:20:31

vinise
Member
Registered: 2011-11-08
Posts: 2

Postfix SMTPS

Hi,

I would like to use smtps with postfix.

I configure my imap to work only with a mysql data base and I wonder if it's possible to do the same think with smtps, to connect only with a mysql database without using pam and cyrus?

Thanks for your help

Vincent

Offline

#2 2011-11-10 22:27:04

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: Postfix SMTPS

You haven't mentioned anything about your IMAP setup, but I do this with Dovecot as my imap server. In main.cf:

smtpd_sasl_auth_enable = yes
smtpd_sasl_type = dovecot
smtpd_sasl_local_domain = $mydomain
smtpd_sasl_path = /srv/postfix/private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_authenticated_header = yes
smtpd_sender_restrictions = permit_sasl_authenticated

/srv/postfix/private/auth is a socket that connects Dovecot and Postfix.

In my dovecot.conf

auth default {
	# Having "login" also as a mechanism make sure outlook can use the auth smtpd as well
	# http://wiki.dovecot.org/Authentication/Mechanisms
	mechanisms = plain login
	user = vmail

	userdb sql {
		args = /etc/dovecot/pgsql.conf
	}

	passdb sql {
		args = /etc/dovecot/pgsql.conf
	}

	socket listen {
		master {
			path = /var/run/dovecot/auth-master
			mode = 0660
			user = vmail
			group = vmail
		}
		client {
			path = /srv/postfix/private/auth
			mode = 0660
			user = postfix
			group = postfix
		}
	}
}

Offline

Board footer

Powered by FluxBB