Subversion Repositories ALCASAR

Rev

Rev 3064 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 3064 Rev 3070
Line 16... Line 16...
16
## common parameters : smtp_use_tls = yes, smtp_tls_security_level = encrypt, smtp_sasl_auth_enable = yes
16
## common parameters : smtp_use_tls = yes, smtp_tls_security_level = encrypt, smtp_sasl_auth_enable = yes
17
## common rules : 'myhostname' parameter should be the domain name of the sasl_email account
17
## common rules : 'myhostname' parameter should be the domain name of the sasl_email account
18
########## smtp.free.fr:465 (expose mechanisms : PLAIN LOGIN CRAM-MD5 DIGEST-MD5)
18
########## smtp.free.fr:465 (expose mechanisms : PLAIN LOGIN CRAM-MD5 DIGEST-MD5)
19
## smtp_sasl_security_option = noanonymous, relayhost = [smtp.free.fr]:465, smtp_tls_wrappermode = yes
19
## smtp_sasl_security_option = noanonymous, relayhost = [smtp.free.fr]:465, smtp_tls_wrappermode = yes
20
########## smtp.free.fr:587 (expose mechanismes 
20
########## smtp.free.fr:587 (expose mechanismes 
21
## smtp_sasl_security_option = noanonymous, relayhost = [smtp.free.fr]:587, smtp_tls_wrappermode = no
21
## smtp_sasl_security_option = noanonymous, relayhost = [smtp.free.fr]:587, smtp_tls_wrappermode = no, smtputf8_enable = no
22
########## smtp.orange.fr:465 (expose mechanisms : LOGIN PLAIN)
22
########## smtp.orange.fr:465 (expose mechanisms : LOGIN PLAIN)
23
## smtp_sasl_security_option = noanonymous, relayhost = [smtp.orange.fr]:465, smtp_tls_wrappermode = yes
23
## smtp_sasl_security_option = noanonymous, relayhost = [smtp.orange.fr]:465, smtp_tls_wrappermode = yes, smtputf8_enable = no
24
########## smtp.sfr.fr:465 (expose mechanisms : LOGIN PLAIN)
24
########## smtp.sfr.fr:465 (expose mechanisms : LOGIN PLAIN)
25
## smtp_sasl_security_option = noanonymous, relayhost = [smtp.sfr.fr]:465, smtp_tls_wrappermode = yes
25
## smtp_sasl_security_option = noanonymous, relayhost = [smtp.sfr.fr]:465, smtp_tls_wrappermode = yes
26
########## smtp.laposte.net:465 (expose mechanisms : LOGIN PLAIN)
26
########## smtp.laposte.net:465 (expose mechanisms : LOGIN PLAIN)
27
## smtp_sasl_security_option = noanonymous, relayhost = [laposte.net]:465, smtp_tls_wrappermode = yes
27
## smtp_sasl_security_option = noanonymous, relayhost = [laposte.net]:465, smtp_tls_wrappermode = yes
28
########## smtp.bbox.net:465 (expose mechanisms : LOGIN PLAIN)
28
########## smtp.bbox.net:465 (expose mechanisms : LOGIN PLAIN)
Line 184... Line 184...
184
	if [ "$smtpPort" = "465" ]; then # wrappermode is madatory only if port = 465
184
	if [ "$smtpPort" = "465" ]; then # wrappermode is madatory only if port = 465
185
		$SED "s/^smtp_tls_wrappermode =.*/smtp_tls_wrappermode = yes/g" $POSTFIX_CONF_FILE
185
		$SED "s/^smtp_tls_wrappermode =.*/smtp_tls_wrappermode = yes/g" $POSTFIX_CONF_FILE
186
	else
186
	else
187
		$SED "s/^smtp_tls_wrappermode =.*/smtp_tls_wrappermode = no/g" $POSTFIX_CONF_FILE
187
		$SED "s/^smtp_tls_wrappermode =.*/smtp_tls_wrappermode = no/g" $POSTFIX_CONF_FILE
188
	fi
188
	fi
189
	domain_of_smtpIP=`echo $smtpIP|rev|cut -d '.' -f1-2|rev`
-
 
190
	$SED "s/^myhostname =.*/myhostname = $domain_of_smtpIP/g" $POSTFIX_CONF_FILE # use the domain name of $mail_Addr to avoid extern smtp servers reject
189
	$SED "s/^myhostname =.*/myhostname = alcasar.net/g" $POSTFIX_CONF_FILE # use the alcasar domain name to avoid extern smtp servers reject
191
	[ -d ${SASLPATH} ] || mkdir ${SASLPATH}
190
	[ -d ${SASLPATH} ] || mkdir ${SASLPATH}
192
	echo "[${smtpIP}]:${smtpPort} ${mailAddr}:${mailMdp}" > ${SASLPATH}/sasl_passwd
191
	echo "[${smtpIP}]:${smtpPort} ${mailAddr}:${mailMdp}" > ${SASLPATH}/sasl_passwd
193
	postmap ${SASLPATH}/sasl_passwd
192
	postmap ${SASLPATH}/sasl_passwd
194
	chmod -R 644 ${SASLPATH}
193
	chmod -R 644 ${SASLPATH}
195
	chown root:root ${SASLPATH}/sasl_passwd*
194
	chown root:root ${SASLPATH}/sasl_passwd*