LINUX.ORG.RU

Postfix


0

1

Необходимо пересылать почту по приходу ее на сервак сразу на другой сервер внутри сети. Почта приходит на сервер, логи ниже, но на второй не пересылается.

=========main.cf==========

alias_database = hash:/etc/aliases

alias_maps = hash:/etc/aliases

append_dot_mydomain = no

biff = no

bounce_queue_lifetime = 1d

config_directory = /etc/postfix

delay_warning_time = 4h

inet_interfaces = all

local_recipient_maps =

mailbox_size_limit = 0

maximal_queue_lifetime = 2d

message_size_limit = 20480000

mydestination = mail.my.ru, my.ru, localhost

myhostname = mail.my.ru

mynetworks = 127.0.0.0/8, 10.0.0.0/24

queue_run_delay = 90s

receive_override_options = no_address_mappings

recipient_delimiter = +

relay_domains = my.ru

relay_recipient_maps = hash:/etc/postfix/relay_recipients

remote_header_rewrite_domain = my.ru

show_user_unknown_table_name = no

smtpd_banner = mail.kaspnirh.ru ESMTP Ready

smtpd_client_restrictions = permit_mynetworks, permit

smtpd_helo_restrictions = permit_mynetworks, reject_invalid_hostname, permit

smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination, permit

smtpd_sasl_auth_enable = no

smtpd_sasl_local_domain =

smtpd_sasl_security_options = noanonymous

smtpd_sender_restrictions = permit_mynetworks, reject_unknown_sender_domain,

permit

smtpd_tls_cert_file = /etc/ssl/certs/mail.pem

smtpd_tls_key_file = /etc/ssl/private/mail.key

smtpd_tls_loglevel = 1

smtpd_tls_security_level = may

smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache

transport_maps = hash:/etc/postfix/transport

unknown_local_recipient_reject_code = 550

virtual_gid_maps = static:105

virtual_mailbox_domains =

virtual_mailbox_limit = 51200000

virtual_mailbox_maps =

virtual_minimum_uid = 104

virtual_transport = $transport_maps

virtual_uid_maps = static:104

========================

Oct 18 17:36:00 mail postfix/master[22492]: daemon started — version 2.7.1, configuration /etc/postfix

Oct 18 17:36:28 mail postfix/smtpd[22499]: connect from f139.mail.ru[217.69.128.94]

Oct 18 17:36:28 mail postfix/smtpd[22499]: setting up TLS connection from f139.mail.ru[217.69.128.94]

Oct 18 17:36:28 mail postfix/smtpd[22499]: Anonymous TLS connection established from f139.mail.ru[217.69.128.94]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)

Oct 18 17:36:29 mail postfix/smtpd[22499]: D9CA5AEC1F9: client=f139.mail.ru[217.69.128.94]

Oct 18 17:36:29 mail postfix/cleanup[22503]: D9CA5AEC1F9: message-id= <1350567388.931782775@f139.mail.ru>

Oct 18 17:36:30 mail postfix/smtpd[22499]: disconnect from f139.mail.ru[217.69.128.94] =======================

cat /etc/postfix/transport

kaspnirh.ru smtp:[ip]

=================

postmap /etc/postfix/transport && service postfix restart

может быть просто пробросить 25 порт на этой машине, и не городить постфикс?

Komintern ★★★★★ ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.