Всем доброго дня!
Народ, имеется такая проблема: установлен сервер ubuntu 8.04 во внутренней сети (адрес 192.168.0.22) и Ebox поверх него. Под Ebox настроена почтовый сервер и с локальным почтовым доменом mailserv.domain01. Почта извне пересылается через другой локальный почтовый сервер, приходит нормально, но вот отправлять во внешнюю сеть не желает категорически. При попытке отправить сообщение вовне, получаю сообщение "Ошибка отправки почты. Почтовый сервер ответил: 5.7.1 <igorpol3@rambler.ru> Relay access denied":
Прошу помощи.
Вот кусок из mail.log:
Jan 19 11:11:45 ubuntu-domain01 couriertcpd: Connection, ip=[::ffff:192.168.0.225]
Jan 19 11:11:45 ubuntu-domain01 couriertcpd: LOGIN, user=igorpol3@mailserv.domain01, ip=[::ffff:192.168.0.225], port=[35361]
Jan 19 11:11:45 ubuntu-domain01 couriertcpd: LOGOUT, user=igorpol3@mailserv.domain01, ip=[::ffff:192.168.0.225], port=[35361], top=0, retr=0, rcvd=12, sent=39, time=0
Jan 19 11:11:57 ubuntu-domain01 postfix/smtpd[27240]: connect from unknown[192.168.0.225]
Jan 19 11:11:58 ubuntu-domain01 postfix/smtpd[27240]: setting up TLS connection from unknown[192.168.0.225]
Jan 19 11:12:07 ubuntu-domain01 postfix/smtpd[27240]: Anonymous TLS connection established from unknown[192.168.0.225]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
Jan 19 11:12:07 ubuntu-domain01 postfix/smtpd[27240]: NOQUEUE: reject: RCPT from unknown[192.168.0.225]: 554 5.7.1 <igorpol3@rambler.ru>: Relay access denied; from=<igorpol3@karavay.krasnoyarsk.ru> to=<igorpol3@rambler.ru> proto=ESMTP helo=<[192.168.0.225]>
Jan 19 11:12:11 ubuntu-domain01 postfix/smtpd[27240]: disconnect from unknown[192.168.0.225]
===
Это мой /etc/postfix/main.cf:
===
# Generated by eBox
# require helo
smtpd_delay_reject = yes
smtpd_helo_required = yes
smtpd_banner = eBox ESMTP
biff = no
append_dot_mydomain = no
myhostname = ubuntu-domain01
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8
message_size_limit = 3145728
mailbox_size_limit = 0
virtual_mailbox_limit = 0
recipient_delimiter = +
inet_interfaces = all
# Virtual Aliases
virtual_alias_maps = ldap:valiases
valiases_server_host = ldap://127.0.0.1
valiases_search_base = ou=mailalias, ou=postfix, dc=ebox
valiases_query_filter = (&(mail=%s)(objectClass=CourierMailAlias))
valiases_result_attribute = maildrop
valiases_bind = no
# Virtual Domains
virtual_transport = virtual
virtual_mailbox_base = /var/vmail/
virtual_mailbox_maps= ldap:ldapvirtualmap
ldapvirtualmap_server_host = ldap://127.0.0.1
ldapvirtualmap_bind = no
ldapvirtualmap_search_base = ou=Users,dc=ebox
ldapvirtualmap_query_filter = (&(mail=%s)(!(quota=-1))(objectClass=CourierMailAccount))
ldapvirtualmap_result_attribute = mailbox
#virtual_mailbox_domains = $virtual_mailbox_maps hash:/etc/postfix/vmaildomains
virtual_mailbox_domains = ldap:vmaildomains
vmaildomains_server_host = ldap://127.0.0.1
vmaildomains_bind = no
vmaildomains_search_base = ou=vdomains, ou=postfix, dc=ebox
vmaildomains_query_filter = (domainComponent=%s)
vmaildomains_result_attribute = dc
virtual_minimum_uid = 100
virtual_uid_maps = static:121
virtual_gid_maps = static:134
mailbox_transport = virtual
virtual_mailbox_limit_inbox = yes
virtual_mailbox_limit_maps = ldap:ldapvquota
ldapvquota_server_host = ldap://127.0.0.1
ldapvquota_bind = no
ldapvquota_search_base = ou=Users,dc=ebox
ldapvquota_query_filter = (&(mail=%s)(objectClass=usereboxmail))
ldapvquota_result_attribute = userMaildirSize
virtual_mailbox_limit_override = yes
virtual_maildir_extended = yes
virtual_create_maildirsize = yes
## TLS/SSL
smtpd_use_tls = yes
smtpd_tls_note_starttls = yes
smtpd_tls_key_file = /etc/postfix/sasl/smtpd-key.pem
smtpd_tls_cert_file = /etc/postfix/sasl/smtpd.pem
smtpd_tls_loglevel = 1
Это /etc/postfix/master.cf:
# Generated by eBox
#
# Postfix master process configuration file. For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - - - - smtpd
-o content_filter=spamfltr:dummy
spamfltr unix - n n - - pipe
user=spamd argv=/usr/bin/spamc -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
#submission inet n - - - - smtpd
# -o smtpd_enforce_tls=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps inet n - - - - smtpd
# -o smtpd_tls_wrappermode=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#628 inet n - - - - qmqpd
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - - 300 1 oqmgr
tlsmgr unix - - - 1000? 1 tlsmgr
smtps inet n - - - - smtpd
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - - - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - - - - smtp
-o smtp_fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - - - - showq
error unix - - - - - error
retry unix - - - - - error
discard unix - - - - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - - - - lmtp
anvil unix - - - - 1 anvil
scache unix - - - - 1 scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(
delivery
# agent. See the pipe(
man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix - n n - 2 pipe
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}
===