Добрый день!
Настраиваю почтовый сервер на сentos (Postfix Dovecot MySQL postfixadmin spamassassin clamav roundcube)(все последние версии програм) но проблема на проблеме, где то я что то упускаю. Уже сделал по мануалу: http://vinogradov.iptel.od.ua/nastrojka … dmin-spam/. Но вот опять проблема.
Вроде все сделал, вхожу в postfixadmin панель добавил домен и пользователя. НО. Почта не получается и не отправляется. 25 и 110 порт открыты, firewall выключен.
У меня в облаке сервак:
(допустим мои данные)
в DNS управлении есть мой домен: drop.me
делаю сервак с IP 97.107.152.32 и к нему mail.drop.me
DNS запись mail.allabout.me A 97.107.152.32
drop.me MX mail.drop.me Priority: 1main.cf
soft_bounce = no
queue_directory = /var/spool/postfix
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
default_privs = nobody
inet_interfaces = all
myhostname = mail.drop.me
mydomain = drop.me
myorigin = $mydomain
mydestination = $myhostname,localhost.$myhostname,localhost
local_recipient_maps = $virtual_mailbox_maps, $virtual_alias_maps, $transport_maps
unknown_local_recipient_reject_code = 550
mynetworks = 97.107.152.0/25 127.0.0.0/25
relay_domains = $transport_maps
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases.db
mail_spool_directory = /var/mail
smtpd_banner = $myhostname ESMTP
debug_peer_level = 2
debug_peer_list = 127.0.0.1
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
mailq_path = /usr/bin/mailq
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/local/man
config_directory = /etc/postfix
virtual_mailbox_domains = mysql:$config_directory/sql/vdomains.cf
virtual_mailbox_base = /var/vmail
virtual_mailbox_maps = mysql:$config_directory/sql/vmailbox.cf
virtual_alias_maps = mysql:$config_directory/sql/valias.cf
virtual_minimum_uid = 1150
virtual_uid_maps = static:1150
virtual_gid_maps = static:12
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
smtpd_sasl_auth_enable = yes
smtpd_sasl_exceptions_networks = $mynetworks
broken_sasl_auth_clients = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = /var/spool/postfix/dovecot-auth
content_filter = scan:127.0.0.1:10025
receive_override_options = no_address_mappings
smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated,permit
smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname, reject_unknown_helo_hostname, permit
smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_sender, reject_unknown_sender_domain, permit
smtpd_recipient_restrictions = reject_non_fqdn_recipient, reject_unknown_recipient_domain, permit_sasl_authenticated, reject_unlisted_recipient, permit_mynetworks, reject_unauth_destination, permit
smtpd_data_restrictions = permit_mynetworks, reject_unauth_pipelining, reject_multi_recipient_bounce, permit
smtpd_etrn_restrictions = reject
smtpd_helo_required = yes
smtpd_discard_ehlo_keywords = etrn, silent-discard
smtpd_forbidden_commands = CONNECT GET POST
disable_vrfy_command = yes
#smtp_use_tls = yes
#smtpd_use_tls = yes
#smtpd_tls_auth_only = yes
#smtp_tls_note_starttls_offer = yes
#smtpd_tls_cert_file = /etc/postfix/certs/smtpd.pem
#smtpd_tls_key_file = /etc/postfix/certs/smtpd.pem
#smtpd_tls_CAfile = /etc/postfix/certs/smtpd.pem
#smtpd_tls_received_header = yes
#smtpd_tls_loglevel = 2
master.cf
#
# Postfix master process configuration file. For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# Do not forget to execute "postfix reload" after editing this file.
#
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd
#submission inet n - n - - smtpd
# -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 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 - n - - qmqpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - n 300 1 oqmgr
tlsmgr unix - - n 1000? 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - n - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - n - - smtp
-o smtp_fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
retry unix - - n - - error
discard unix - - n - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
scache unix - - n - 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(8) delivery
# agent. See the pipe(8) 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/local/bin/maildrop -d ${recipient}
#
# ====================================================================
#
# The Cyrus deliver program has changed incompatibly, multiple times.
#
#old-cyrus unix - n n - - pipe
# flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension} ${user}
#
# ====================================================================
#
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
#
#cyrus unix - n n - - pipe
# user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m ${extension} ${user}
#
# ====================================================================
#
# 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/local/sbin/bsmtp -f $sender $nexthop $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:mail argv=/usr/libexec/dovecot/deliver -d $(recipient)
scan unix - - n - 16 smtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes
-o disable_dns_lookups=yes
127.0.0.1:10026 inet n . n . 16 smtpd
-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_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
spamfilter unix . n n . - pipe
flags=Rq user=spamfilter argv=/usr/bin/spamc -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
И теперь в логах maillog вижу:
Mar 19 04:14:05 mailme postfix/qmgr[1533]: warning: private/scan socket: malformed response
Mar 19 04:14:05 mailme postfix/master[1530]: warning: process /usr/libexec/postfix/smtp pid 676 exit status 1
Mar 19 04:14:05 mailme postfix/master[1530]: warning: /usr/libexec/postfix/smtp: bad command startup -- throttling
Mar 19 04:14:05 mailme postfix/error[677]: B1D9411E263: to=<sasa@drop.me>, relay=none, delay=67657, delays=67656/1/0/0.02, dsn=4.3.0, status=deferred (mail transport unavailable)
Mar 19 04:15:50 mailme postfix/smtpd[743]: warning: 218.26.167.121: hostname 121.167.26.218.internet.sx.cn verification failed: Name or service not known
Mar 19 04:15:50 mailme postfix/smtpd[743]: connect from unknown[218.26.167.121]
Mar 19 04:15:51 mailme dovecot: auth: Debug: Loading modules from directory: /usr/lib64/dovecot/auth
Mar 19 04:15:51 mailme dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libauthdb_ldap.so
Mar 19 04:15:51 mailme dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libdriver_mysql.so
Mar 19 04:15:51 mailme dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libdriver_sqlite.so
Mar 19 04:15:51 mailme dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libmech_gssapi.so
Mar 19 04:15:51 mailme postfix/smtpd[743]: lost connection after CONNECT from unknown[218.26.167.121]
Mar 19 04:15:51 mailme postfix/smtpd[743]: disconnect from unknown[218.26.167.121]
Mar 19 04:15:51 mailme dovecot: auth: Debug: auth client connected (pid=743)
Mar 19 04:19:04 mailme postfix/qmgr[1533]: 2AB5D11E253: from=<main@mail.drop.me>, size=627, nrcpt=1 (queue active)
Mar 19 04:19:04 mailme postfix/smtp[988]: fatal: unexpected command-line argument: 127.0.0.1:10026
Mar 19 04:19:05 mailme postfix/qmgr[1533]: warning: private/scan socket: malformed response
Mar 19 04:19:05 mailme postfix/master[1530]: warning: process /usr/libexec/postfix/smtp pid 988 exit status 1
Mar 19 04:19:05 mailme postfix/master[1530]: warning: /usr/libexec/postfix/smtp: bad command startup -- throttling
Mar 19 04:19:05 mailme postfix/error[989]: 2AB5D11E253: to=<sench@mail.ru>, relay=none, delay=68302, delays=68301/1/0/0.02, dsn=4.3.0, status=deferred (mail transport unavailable)
Mar 19 04:19:11 mailme postfix/anvil[744]: statistics: max connection rate 1/60s for (smtp:218.26.167.121) at Mar 19 04:15:50
Mar 19 04:19:11 mailme postfix/anvil[744]: statistics: max connection count 1 for (smtp:218.26.167.121) at Mar 19 04:15:50
Mar 19 04:19:11 mailme postfix/anvil[744]: statistics: max cache size 1 at Mar 19 04:15:50
Mar 19 04:24:04 mailme postfix/qmgr[1533]: B890D11E266: from=<main@mail.drop.me>, size=620, nrcpt=1 (queue active)
Mar 19 04:24:04 mailme postfix/smtp[1289]: fatal: unexpected command-line argument: 127.0.0.1:10026
Mar 19 04:24:05 mailme postfix/qmgr[1533]: warning: private/scan socket: malformed response
Mar 19 04:24:05 mailme postfix/master[1530]: warning: process /usr/libexec/postfix/smtp pid 1289 exit status 1
Mar 19 04:24:05 mailme postfix/master[1530]: warning: /usr/libexec/postfix/smtp: bad command startup -- throttling
Mar 19 04:24:05 mailme postfix/error[1290]: B890D11E266: to=<sench@mail.ru>, relay=none, delay=63561, delays=63560/1/0/0.04, dsn=4.3.0, status=deferred (mail transport unavailable)
Я прям незнаю куда копать (мало опыта общения с почтовиками), нужна помощь.