Portál AbcLinuxu, 6. května 2025 17:26
postconf ... postmap ...NN
smtpd_banner = $myhostname ESMTP biff = no append_dot_mydomain = no readme_directory = no # TLS smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key smtpd_use_tls=yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache # ACL smtp_recipient_restriction = permit_mynetworks reject_unauth_destination # STRESS smtpd_timeout = ${stress?10}${stress:300} smtpd_soft_error_limit = ${stress?1}${stress:10} smtpd_hard_error_limit = ${stress?1}${stress:20} smtpd_junk_command_limit = ${stress?1}${stress:100} smtpd_client_connection_rate_limit = ${stress?10}${stress:0} smtpd_client_message_rate_limit = ${stress?30}${stress:0} smtpd_client_recipient_rate_limit = ${stress?300}${stress:0} smtpd_recipient_overshoot_limit = ${stress?10}${stress:1000} # DEFAULT mydomain = exchange.cz myhostname = server.exchange.cz myorigin = $mydomain inet_interfaces = all inet_protocols = all mydestination = virtual_recipient_maps = hash:/etc/postfix/virtual mynetworks = EXCHANGE_IP 195.113.83.0/26 127.0.0.0/8 [xxxxxx::]/64 [::ffff:127.0.0.0]/104 [::1]/128 relay_domains = $mydomain relay_recipient_maps = hash:/etc/postfix/relay_recipients transport_maps = hash:/etc/postfix/transport -------- virtual root root@localhost jan.novak jan.novak@localhost ... -------- transport exchange.cz smtp:[inside-gateway.example.com] ------- relay_recipients @exchange.cz xProblem bude v tom, ze maily budou prichazet lokalne, ale budou odchaze z domenou exchange.cz podle, $myorigin, ale to se da zmenit na $myhostname. NN
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.