El 2019-04-02 10:17, felix.roble escribió:
BUENOS DIAS LISTEROS RESIENTE MENTE INSTALE UN SERVIDOR DE CORREO
IREDMAIL SOBRE UN CONTENEDOR CENTOS7 PERO NECESITO REALIZAR LA
CONFIGURACION DEL POSFIX PARA LIMITAR LAS CUENTAS NACIONALES E
INTERNACIONALES. POR OTRA PARTE NECESITO CONFIGURAR EL SERVIDOR PARA
QUE LOS CORREOS QUE NO SON DE MI VPN SEAN ENTREGADOS A UN SMTP
EXTERNO. MI VPN ES LA DEL MINTUR.
LES COMENTO QUE PROBE CON EL COMANDO RELAYHOST PERO TODOS MIS CORREOS
INCLULLENDO LOS DE MIS DOMINIOS Y LOS QUE ESTAN EN MI VPN NO SON
ENTREGADOS SINO QUE VAN DIRECTAMENTE A EL SMTP EXTERNO. ESPERO SU
AYUDA GRACIAS DE ANTE MANO
___
Gutl-l mailing list -- gutl-l@listas.jovenclub.cu
To unsubscribe send an email to gutl-l-le...@listas.jovenclub.cu
mano es Sencillo LAS CUENTAS NACIONALES E
INTERNACIONALES debes crear primeramente las clases de restricciones en
el main.cf :
smtpd_restriction_classes = nacional_out
nacional_in
internacional
nacional_out = check_recipient_access
regexp:/etc/postfix/filtros/filtro_nac, reject
nacional_in = check_sender_access
regexp:/etc/postfix/filtros/filtro_nac, reject
internacional = permit
luego intregarlas en laas reglas de restriccion aplicas
#Sender restrictions
smtpd_sender_restrictions =
reject_sender_login_mismatch
check_recipient_access hash:/etc/postfix/filtros/usuarios_in
reject_unknown_sender_domain
reject_non_fqdn_sender
reject_unlisted_sender
permit_mynetworks
permit_sasl_authenticated
check_sender_access pcre:/etc/postfix/sender_access.pcre
# Recipient restrictions
smtpd_recipient_restrictions =
check_sender_access hash:/etc/postfix/filtros/usuarios_out
reject_non_fqdn_recipient
reject_unlisted_recipient
permit_mynetworks
permit_sasl_authenticated
reject_unauth_destination
Debes crear los archivos ejemplo filtro_nac con el sigiuente contenido
/^([fF]rom:(\s*|=))?<>$/ RELAY
/\@*\.cu$/ RELAY
/^\@/ REJECT 550 El formato de la direccion electronica no es valido
/[!%\@].*\@/REJECT 550 Formato de direccion electronica incorrecto.
/\@*/ REJECT 550 Su cuenta de correo no esta Autorizada a Enviar ni
Recibir de Dominios Internacionales.
Debes crear un archivo usuarios_in
#Con Salida Internacional
mina...@algo.diferente.cu internacional
#Con salida Nacional
algo.diferente.cunacional_out
Debes crear un archivo usuarios_out
#Con entrada Internacional
mina...@algo.diferente.cu internacional
#Con salida Nacional
algo.diferente.cunacional_out
Recordar que estos archivos desbes hacerle postmap para generar los
archivos .db
Es mas o menos asi
Saludos
___
Gutl-l mailing list -- gutl-l@listas.jovenclub.cu
To unsubscribe send an email to gutl-l-le...@listas.jovenclub.cu