Добрый день!
письма не уходят с postfix на внешку, MAIL.ru отвечает
<kow_igor@mail.ru>: host mxs.mail.ru[94.100.176.20] said: 550 We cannot
accept email from IP 195.98.*.* without a DNS PTR record. Contact your
ISP/HSP to set up PTR record for your server. (in reply to end of DATA
command)
server POSTFIX подключен через тот же модем что и MDAEMON, хотя с MDAEMON письма уходят нормально и на внешку и внутр.
при проверки PTR
root@mail:~# dig -x 195.98.*.*
; <<>> DiG 9.7.0-P1 <<>> -x 195.98.*.*
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 22940
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;*.*.98.195.in-addr.arpa. IN PTR
;; AUTHORITY SECTION:
*.*.195.in-addr.arpa. 86400 IN SOA ns.ru. dnsmaster.ic.ru. 2008081920 14400 1800 1209600 86400
;; Query time: 25 msec
;; SERVER: 192.168.0.1#53(192.168.0.1) IP моего модема(через него и выходят мои почтовики)
;; WHEN: Wed Mar 6 10:16:06 2013
;; MSG SIZE rcvd: 100
№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№
root@mail:~# dig el.vrn.ru MX
; <<>> DiG 9.7.0-P1 <<>> el.vrn.ru MX
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59763
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 3, ADDITIONAL: 5
;; QUESTION SECTION:
;el.vrn.ru. IN MX
;; ANSWER SECTION:
el.vrn.ru. 7200 IN MX 5 mail.el.vrn.ru.
el.vrn.ru. 7200 IN MX 10 el.vrn.ru.
;; AUTHORITY SECTION:
vrn.ru. 7200 IN NS ns2.vrn.ru.
vrn.ru. 7200 IN NS ns1.vrn.ru.
vrn.ru. 7200 IN NS ns.vrn.ru.
;; ADDITIONAL SECTION:
mail.el.vrn.ru. 7200 IN A 193.106.*.*
el.vrn.ru. 7200 IN A 195.98.*.*
ns.vrn.ru. 7200 IN A 195.98.*.*
ns1.vrn.ru. 7200 IN A 195.98.*.*
ns2.vrn.ru. 7200 IN A 195.98.*.*
;; Query time: 28 msec
;; SERVER: 192.168.200.1#53(192.168.200.1)
;; WHEN: Wed Mar 6 18:52:14 2013
;; MSG SIZE rcvd: 199
postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
body_checks = regexp:/etc/postfix/body_checks
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
content_filter = scan:127.0.0.1:10025
header_checks = regexp:/etc/postfix/header_checks
home_mailbox = Maildir/
inet_interfaces = all
mailbox_command = /usr/lib/dovecot/deliver -c /etc/dovecot/conf.d/01-dovecot-postfix.conf -n -m "${EXTENSION}"
mailbox_size_limit = 0
message_size_limit = 20000000
mydestination = localhost, localhost.$myhostname, $myhostname
mydomain = el.vrn.ru
myhostname = mail.el.vrn.ru
mynetworks = 127.0.0.0/8 192.168.100.0/24 192.168.200.0/24
myorigin = $mydomain
receive_override_options = no_address_mappings
recipient_delimiter = +
relay_domains = no
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_banner = $myhostname Welcome to the Sendmail server
smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated,
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_unauth_pipelining, reject_unauth_destination, check_policy_service inet:127.0.0.1:10023
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unknown_sender_domain
smtpd_tls_CAfile = /etc/postfix/ssl/smtpd.pem
smtpd_tls_CApath = /etc/ssl/cert
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.pem
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
transport_maps = hash:/etc/postfix/transport
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql-email2email.cf
virtual_gid_maps = static:5000
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
virtual_minimum_uid = 1000
virtual_transport = dovecot
virtual_uid_maps = static:5000
master.cf
smtp inet n - - - - smtpd
-o content_filter=spamassassin
# -o receive_override_options=
submission inet n - n - - smtpd
-o content_filter=spamassassin
-o smtpd_tls_security_level=encrypt
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
-o milter_macro_daemon_name=ORIGINATING
smtps inet n - n - - smtpd
-o content_filter=spamassassin
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
-o milter_macro_daemon_name=ORIGINATING
#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
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
proxywrite unix - - n - 1 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
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}
dovecot unix - n n - - pipe
flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -d ${recipient}
scan unix - - n - 16 smtp
-o smtp_send_xforward_command=yes
127.0.0.1:10026 inet n - n - 16 smtpd
-o content_filter=
# -o receive_override_options=no_address_mappings
-o smtpd_helo_restrictions=
-o smtpd_client_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks_style=host
-o smtpd_authorized_xforward_hosts=127.0.0.0/8
spamassassin unix - n n - - pipe
user=spamI argv=/usr/bin/spamc -f -e
/usr/sbin/sendmail -oi -f ${sender} ${recipient}