Ставил сервер по How To от http://www.sys-adm.org.ua/mail/mail-howto-p1.php
Внутри сети(localhost) почта ходит без проблем.Так же принимаю почту из вне,но не могу отправить почту на внешние сервера.В логах лезет:
в логах:
Код: Выделить всё
Aug 6 22:13:28 mail postfix/smtpd[1850]: connect from localhost[127.0.0.1]
Aug 6 22:13:59 mail postfix/smtpd[1850]: 77771136822: client=localhost[127.0.0.1]
Aug 6 22:14:05 mail postfix/cleanup[1852]: 77771136822: message-id=<20080806181359.77771136822@mail.mycompany.ru>
Aug 6 22:14:05 mail postfix/qmgr[1619]: 77771136822: from=<support@mycompany.ru>, size=348, nrcpt=1 (queue active)
Aug 6 22:14:07 mail postfix/smtpd[1850]: disconnect from localhost[127.0.0.1]
Aug 6 22:14:35 mail postfix/smtp[1853]: connect to mx2.hotmail.com[65.54.245.40]: Operation timed out (port 25)
Aug 6 22:15:05 mail postfix/smtp[1853]: connect to mx3.hotmail.com[65.54.244.200]: Operation timed out (port 25)
Aug 6 22:15:35 mail postfix/smtp[1853]: connect to mx4.hotmail.com[65.54.244.232]: Operation timed out (port 25)
Aug 6 22:16:05 mail postfix/smtp[1853]: connect to mx1.hotmail.com[65.54.244.8]: Operation timed out (port 25)
Aug 6 22:16:35 mail postfix/smtp[1853]: connect to mx2.hotmail.com[65.54.244.40]: Operation timed out (port 25)
Код: Выделить всё
#
# /usr/local/etc/postfix/main.cf
#
queue_directory = /var/spool/postfix
command_directory = /usr/local/sbin
base = /usr/local/etc/postfix
daemon_directory = /usr/local/libexec/postfix
mail_owner = postfix
default_privs = nobody
myhostname = mail.mycompany.ru
mydomain = mycompany.ru
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost
local_recipient_maps = unix:passwd.byname $alias_maps
mynetworks = 127.0.0.0/8
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
smtpd_banner = $myhostname ESMTP
debug_peer_level = 2
# RESTRICTIONS
#
# client, helo, sender, recipient, data, end-of-data
#
smtpd_client_restrictions = permit_mynetworks,
permit_sasl_authenticated,
check_client_access hash:$base/client_access,
reject_unknown_client_hostname
smtpd_helo_restrictions = check_helo_access hash:$base/hello_access,
permit_mynetworks,
permit_sasl_authenticated,
reject_invalid_helo_hostname,
reject_non_fqdn_helo_hostname,
reject_unknown_helo_hostname
smtpd_sender_restrictions = permit_mynetworks,
check_sender_access hash:$base/sender_access,
reject_authenticated_sender_login_mismatch,
reject_unknown_sender_domain,
reject_unlisted_sender,
reject_unverified_sender
smtpd_recipient_restrictions = permit_mynetworks,
permit_sasl_authenticated,
reject_unauth_destination,
check_recipient_access hash:$base/recipient_access,
reject_unlisted_recipient,
reject_unknown_recipient_domain,
reject_non_fqdn_recipient,
# reject_unverified_recipient
smtpd_etrn_restrictions = reject
smtpd_reject_unlisted_sender = yes
disable_vrfy_command = yes
strict_rfc821_envelopes = yes
show_user_unknown_table_name = no
address_verify_sender = <>
unverified_sender_reject_code = 550
smtpd_helo_required = yes
smtp_always_send_ehlo = yes
smtpd_hard_error_limit = 8
smtpd_sasl_auth_enable = yes
smtpd_sasl_application_name = smtpd
broken_sasl_auth_clients = yes
smtpd_sasl_security_options = noanonymous
smtpd_sender_login_maps = mysql:$base/mysqlLookupMaps/sender.conf
virtual_alias_maps = mysql:$base/mysqlLookupMaps/alias.conf
virtual_mailbox_domains = mysql:$base/mysqlLookupMaps/domain.conf
virtual_mailbox_maps = mysql:$base/mysqlLookupMaps/mailbox.conf
virtual_mailbox_base = /var/spool/mail
virtual_mailbox_limit_maps = mysql:$base/mysqlLookupMaps/quota.conf
virtual_maildir_extended=yes
virtual_mailbox_limit_override=yes
virtual_create_maildirsize = yes
virtual_overquota_bounce = yes
virtual_maildir_limit_message="Sorry, the user's maildir has overdrawn is diskspace quota, please try again later"
message_size_limit = 5242880
virtual_gid_maps = static:1981
virtual_uid_maps = static:1981
virtual_minimum_uid = 1000Код: Выделить всё
Aug 6 22:35:12 mail postfix/smtpd[2009]: NOQUEUE: reject: RCPT from blu0-omc2-s35.blu0.hotmail.com[65.55.111.110]: 450 4.1.7 <dead_zmei@hotmail.com>: Sender address rejected: unverified address: Address verification in progress; from=<dead_zmei@hotmail.com> to=<support@mycompany.ru> proto=ESMTP helo=<blu0-omc2-s35.blu0.hotmail.com>Код: Выделить всё
450 4.7.1 : Helo command rejected: Host not found Третий день уже бьюсь над этой проблемой.


