LinuxForum.Fans
Тема

Настройка почтового сервера. Centos Postfix Dovecot и прочее...

Автор: srsd 33 сообщений 5680 просмотров
#372899

День добрый!
Вобщем ситуация патовая.
Настраиваю почтовый сервер на сentos (Postfix Dovecot MySQL postfixadmin spamassassin clamav roundcube) но проблема на проблеме, где то я что то упускаю. Уже сделал по мануалу: http://vinogradov.iptel.od.ua/nastrojka-pochtovogo-servera-centos-postfix-dovecot-mysql-postfixadmin-spam/. Но вот опять проблема.
Вроде все сделал, вхожу в postfixadmin панель добавил пользователя, но 25 порт "не работает", телнетом 110 порт работает а 25 говорит не удалось подключится.
Знаю что я гдето пропустил, а где не вижу (просто уже долго ковыряюсь и еще есть несколько задач - хоть они работают).
У меня в облаке сервак:
(допустим мои данные)
в 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: 1

main.cf

text

soft_bounce = no
queue_directory = /var/spool/postfix
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
default_privs = nobody
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

text

#
# 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}
#372900

Введи команду:

grep -E -e 'warning|critical|error' /var/log/maillog

И здесь вывод покажи.

#372901
XOPOLIIO написал:
Введи команду:

grep -E -e 'warning|critical|error' /var/log/maillog

И здесь вывод покажи.

text
Mar 17 04:59:40 mailme postfix/postalias[27420]: warning: /etc/aliases.db, line 1: name must be local
Mar 17 05:57:02 mailme postfix/postalias[30912]: warning: /etc/aliases.db, line 1: name must be local
Mar 17 09:28:23 mailme postfix/postalias[1247]: warning: /etc/aliases.db, line 1: name must be local
Mar 17 09:49:42 mailme postfix/postalias[2792]: warning: /etc/aliases.db, line 1: name must be local
Mar 18 03:57:24 mailme postfix/postalias[4076]: warning: /etc/aliases.db, line 1: name must be local
Mar 18 04:00:45 mailme postfix/postalias[1285]: warning: /etc/aliases.db, line 1: name must be local
#372905

В файле /etc/postfix/main.cf
Поменяйте

text
alias_database = hash:/etc/aliases.db

на

text
alias_database = hash:/etc/aliases

Потом

service postfix restart

И телнетом проверит 25 порт.

#372906

Без изменений.
Firewall выключен, на 110 порт пишет довекот реди, а 25 - не удалось.

#372908
"srsd" написал:
/etc/aliases.db, line 1: name must be local

что в этом файле? В первой строке?

"XOPOLIIO" написал:
Поменяйте

на кой ляд?

#372909

Фай открывается через vi крякозяблями:

text
^@^@^@^@^A^@^@^@^@^@^@^@a^U^F^@ ^@^@^@^@^P^@^@^@^H^@^@^@^@^@^@^B^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^Kц└^L^@^Aц┼^@^@<8a>tц⌠jU^E^@^@^@^@^@^@^A^@^@^@^A^@^@^@^@^^@^@^@^@^@O^P^@^@ц▒<8d>h^^A^@^@^@^A^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@

*SORRY*

#372910

Конечно если он хэшированный, но не в этом дело. Даже если варнинг, он должен работать.
А на локалхост телнет работает?

text
telnet 127.0.0.1 25
#372911

telnet: connect to address 127.0.0.1: Connection refused
а 110 работает...... в любом случае.

#372914

проблема вроде стандартная, либо фаер блочит или демон постфикса не работает.
По логам видно что вроде постфик работает, но телнета нет, как будто он слушает другой порт.
Может нетстатом проверить слушаемость портов?

text
netstat -nlp 

И статус постфикса сюда

text
service postfix status
#372916
text
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
tcp        0      0 0.0.0.0:110                 0.0.0.0:*                   LISTEN      1201/dovecot
tcp        0      0 127.0.0.1:783               0.0.0.0:*                   LISTEN      8601/spamd.pid
tcp        0      0 0.0.0.0:143                 0.0.0.0:*                   LISTEN      1201/dovecot
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      1024/sshd
tcp        0      0 127.0.0.1:3306              0.0.0.0:*                   LISTEN      1171/mysqld
tcp        0      0 :::80                       :::*                        LISTEN      1362/httpd
tcp        0      0 :::22                       :::*                        LISTEN      1024/sshd
Active UNIX domain sockets (only servers)
Proto RefCnt Flags       Type       State         I-Node PID/Program name    Path
unix  2      [ ACC ]     STREAM     LISTENING     8575   1171/mysqld         /var/lib/mysql/mysql.sock
unix  2      [ ACC ]     STREAM     LISTENING     8651   1201/dovecot        /var/spool/postfix/dovecot-auth
unix  2      [ ACC ]     STREAM     LISTENING     8629   1201/dovecot        /var/run/dovecot/dns-client
unix  2      [ ACC ]     STREAM     LISTENING     8631   1201/dovecot        /var/run/dovecot/login/dns-client
unix  2      [ ACC ]     STREAM     LISTENING     8633   1201/dovecot        /var/run/dovecot/director-admin
unix  2      [ ACC ]     STREAM     LISTENING     8635   1201/dovecot        /var/run/dovecot/dict
unix  2      [ ACC ]     STREAM     LISTENING     8637   1201/dovecot        /var/run/dovecot/config
unix  2      [ ACC ]     STREAM     LISTENING     8639   1201/dovecot        /var/run/dovecot/login/login
unix  2      [ ACC ]     STREAM     LISTENING     8641   1201/dovecot        /var/run/dovecot/auth-login
unix  2      [ ACC ]     STREAM     LISTENING     8643   1201/dovecot        /var/run/dovecot/auth-client
unix  2      [ ACC ]     STREAM     LISTENING     8645   1201/dovecot        /var/run/dovecot/auth-userdb
unix  2      [ ACC ]     STREAM     LISTENING     8647   1201/dovecot        /var/run/dovecot/auth-master
unix  2      [ ACC ]     STREAM     LISTENING     8653   1201/dovecot        /var/run/dovecot/auth-worker
unix  2      [ ACC ]     STREAM     LISTENING     8655   1201/dovecot        /var/run/dovecot/anvil
unix  2      [ ACC ]     STREAM     LISTENING     6331   1/init              @/com/ubuntu/upstart
unix  2      [ ACC ]     STREAM     LISTENING     8657   1201/dovecot        /var/run/dovecot/anvil-auth-penalty
unix  2      [ ACC ]     STREAM     LISTENING     8619   1201/dovecot        /var/run/dovecot/login/ssl-params
unix  2      [ ACC ]     STREAM     LISTENING     8621   1201/dovecot        /var/run/dovecot/login/pop3
unix  2      [ ACC ]     STREAM     LISTENING     8624   1201/dovecot        /var/run/dovecot/login/imap
unix  2      [ ACC ]     STREAM     LISTENING     8627   1201/dovecot        /var/run/dovecot/doveadm-server

Я не вижу постфикса!?!?!?

#372917

В логе maillog вижу:

text
Mar 18 07:11:43 mailme postfix/postfix-script[13242]: starting the Postfix mail system
Mar 18 07:11:43 mailme postfix/master[13243]: fatal: /etc/postfix/master.cf: line 106: bad transport type: user=vmail:mail

строчка 106 это:

text
flags=Drhu user=vmail:mail argv=/usr/libexec/dovecot/deliver -d $(recipient)
#372918

Попробуйте так написать в master.cf

text
dovecot    unix    -    n    n    -    -    pipe
             flags=DRhu user=vmail:mail argv=/usr/libexec/dovecot/deliver -d $(recipient)
#372923

У меня вроде так же и написанно:

text
dovecot unix - n n - - pipe
flags=Drhu user=vmail:mail argv=/usr/libexec/dovecot/deliver -d $(recipient)

И как я понимаю ругается он именно на user=vmail:mail.
Может ошибка в dovecot!?
/etc/dovecot/dovecot.conf

text

protocols = imap pop3
listen = *

shutdown_clients = yes

mail_uid = 1000 mail_gid = 1000

first_valid_uid = 1000 last_valid_uid = 1000

mail_debug = yes auth_verbose = yes auth_debug = yes auth_debug_passwords = yes

ssl = no #ssl_cert = #ssl_key =

disable_plaintext_auth = no

mail_location = maildir:/var/vmail/%d/%n/Maildir

auth_default_realm = drop.me

auth_mechanisms = PLAIN LOGIN CRAM-MD5

service auth { unix_listener /var/spool/postfix/dovecot-auth { user = postfix group = postfix mode = 0660 } unix_listener auth-master { user = vmail group = mail mode = 0660 } unix_listener auth-userdb { user = vmail group = mail mode = 0660 } } userdb { args = /etc/dovecot-sql.conf driver = sql }

passdb { args = /etc/dovecot-sql.conf driver = sql }

#372924

Кусок maillog за сегодня:

text

Mar 18 03:49:27 mailme dovecot: auth: Debug: Loading modules from directory: /usr/lib64/dovecot/auth
Mar 18 03:49:27 mailme dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libauthdb_ldap.so
Mar 18 03:49:27 mailme dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libdriver_mysql.so
Mar 18 03:49:27 mailme dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libdriver_sqlite.so
Mar 18 03:49:27 mailme dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libmech_gssapi.so
Mar 18 03:49:27 mailme dovecot: auth: Debug: auth client connected (pid=3568)
Mar 18 03:49:33 mailme dovecot: pop3-login: Disconnected: Too many bad commands (no auth attempts): rip=176.222.158.174, lip=97.107.152.32
Mar 18 03:57:24 mailme postfix/postfix-script[4073]: fatal: the Postfix mail system is not running
Mar 18 03:57:24 mailme postfix/postalias[4076]: warning: /etc/aliases.db, line 1: name must be local
Mar 18 03:57:24 mailme postfix/postfix-script[4144]: starting the Postfix mail system
Mar 18 03:57:24 mailme postfix/master[4145]: fatal: /etc/postfix/master.cf: line 106: bad transport type: user=vmail:mail
Mar 18 04:00:01 mailme dovecot: master: Dovecot v2.0.9 starting up (core dumps disabled)
Mar 18 04:00:13 mailme spamd[1222]: logger: removing stderr method
Mar 18 04:00:14 mailme spamd[1224]: config: failed to parse line, skipping, in "/etc/mail/spamassassin/local.cf": auto_whitelist_path /etc/mail/spamassassin/auto-whitelist
Mar 18 04:00:14 mailme spamd[1224]: config: failed to parse line, skipping, in "/etc/mail/spamassassin/local.cf": auto_whitelist_file_mode 0666
Mar 18 04:00:44 mailme spamd[1224]: rules: meta test FROM_41_FREEMAIL has dependency 'NSL_RCVD_FROM_41' with a zero score
Mar 18 04:00:44 mailme spamd[1224]: spamd: server started on port 783/tcp (running version 3.3.1)
Mar 18 04:00:44 mailme spamd[1224]: spamd: server pid: 1224
Mar 18 04:00:44 mailme spamd[1224]: spamd: server successfully spawned child process, pid 1278
Mar 18 04:00:44 mailme spamd[1224]: spamd: server successfully spawned child process, pid 1280
Mar 18 04:00:44 mailme spamd[1224]: prefork: child states: II
Mar 18 04:00:45 mailme postfix/postalias[1285]: warning: /etc/aliases.db, line 1: name must be local
Mar 18 04:00:45 mailme postfix/postfix-script[1353]: starting the Postfix mail system
Mar 18 04:00:46 mailme postfix/master[1354]: fatal: /etc/postfix/master.cf: line 106: bad transport type: user=vmail:mail
Mar 18 05:32:02 mailme postfix/postfix-script[6939]: fatal: the Postfix mail system is not running
Mar 18 05:32:03 mailme postfix/postfix-script[7009]: starting the Postfix mail system
Mar 18 05:32:03 mailme postfix/master[7010]: fatal: /etc/postfix/master.cf: line 106: bad transport type: user=vmail:mail
Mar 18 05:36:41 mailme dovecot: auth: Debug: Loading modules from directory: /usr/lib64/dovecot/auth
Mar 18 05:36:41 mailme dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libauthdb_ldap.so
Mar 18 05:36:41 mailme dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libdriver_mysql.so
Mar 18 05:36:41 mailme dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libdriver_sqlite.so
Mar 18 05:36:41 mailme dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libmech_gssapi.so
Mar 18 05:36:41 mailme dovecot: auth: Debug: auth client connected (pid=7310)
Mar 18 05:36:43 mailme dovecot: pop3-login: Disconnected: Too many bad commands (no auth attempts): rip=212.76.7.44, lip=97.107.152.32
Mar 18 05:58:32 mailme spamd[1224]: spamd: server killed by SIGTERM, shutting down
Mar 18 05:58:35 mailme spamd[8599]: logger: removing stderr method
Mar 18 05:58:36 mailme spamd[8601]: config: failed to parse line, skipping, in "/etc/mail/spamassassin/local.cf": auto_whitelist_path /etc/mail/spamassassin/auto-whitelist
Mar 18 05:58:36 mailme spamd[8601]: config: failed to parse line, skipping, in "/etc/mail/spamassassin/local.cf": auto_whitelist_file_mode 0666
Mar 18 05:59:06 mailme spamd[8601]: spamd: server started on port 783/tcp (running version 3.3.1)
Mar 18 05:59:06 mailme spamd[8601]: spamd: server pid: 8601
Mar 18 05:59:06 mailme spamd[8601]: spamd: server successfully spawned child process, pid 8656
Mar 18 05:59:07 mailme spamd[8601]: spamd: server successfully spawned child process, pid 8657
Mar 18 05:59:07 mailme spamd[8601]: prefork: child states: IS
Mar 18 05:59:07 mailme spamd[8601]: prefork: child states: II
Mar 18 06:14:21 mailme dovecot: auth: Debug: Loading modules from directory: /usr/lib64/dovecot/auth
Mar 18 06:14:21 mailme dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libauthdb_ldap.so
Mar 18 06:14:21 mailme dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libdriver_mysql.so
Mar 18 06:14:21 mailme dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libdriver_sqlite.so
Mar 18 06:14:21 mailme dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libmech_gssapi.so
Mar 18 06:14:21 mailme dovecot: auth: Debug: auth client connected (pid=9514)
Mar 18 06:14:27 mailme dovecot: pop3-login: Disconnected: Too many bad commands (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
Mar 18 06:14:29 mailme dovecot: auth: Debug: auth client connected (pid=9518)
Mar 18 06:14:34 mailme dovecot: pop3-login: Disconnected: Too many bad commands (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
Mar 18 06:15:19 mailme dovecot: auth: Debug: auth client connected (pid=9572)
Mar 18 06:15:22 mailme dovecot: pop3-login: Disconnected: Too many bad commands (no auth attempts): rip=97.107.152.32, lip=97.107.152.32, secured
Mar 18 07:11:17 mailme postfix/postfix-script[13083]: fatal: the Postfix mail system is not running
Mar 18 07:11:18 mailme postfix/postfix-script[13153]: starting the Postfix mail system
Mar 18 07:11:18 mailme postfix/master[13154]: fatal: /etc/postfix/master.cf: line 106: bad transport type: user=vmail:mail
Mar 18 07:11:43 mailme postfix/postfix-script[13172]: fatal: the Postfix mail system is not running
Mar 18 07:11:43 mailme postfix/postfix-script[13242]: starting the Postfix mail system
Mar 18 07:11:43 mailme postfix/master[13243]: fatal: /etc/postfix/master.cf: line 106: bad transport type: user=vmail:mail
Mar 18 07:55:51 mailme postfix/postfix-script[15848]: fatal: the Postfix mail system is not running
Mar 18 07:55:52 mailme postfix/postfix-script[15918]: starting the Postfix mail system
Mar 18 07:55:52 mailme postfix/master[15919]: fatal: /etc/postfix/master.cf: line 106: bad transport type: user=vmail:mail
#372925

У меня идей нет. Может пользователя не создали?
Который vmail.

#372926

Пользователь есть:

text
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
vmail:x:1000:12:Virtual Mailbox:/var/vmail:/sbin/nologin

Может это быть ошибка dovecot?
Или может есть какое то правило заполнение конфига, типа пробелы или отступы?

#372927

Конечно есть, вы думаете я зря вам написал с указанием пробелов.
Это Postfix, обязательно надо ставить два пробела впереди строки чтобы она считалась продолжением предыдущей.

Поэтому так неправильно писать

text
dovecot unix - n n - - pipe
flags=Drhu user=vmail:mail argv=/usr/libexec/dovecot/deliver -d $(recipient)

А правильно

text
dovecot unix - n n - - pipe
                 flags=Drhu user=vmail:mail argv=/usr/libexec/dovecot/deliver -d $(recipient)
#372929

Поставил перед flags два пробела, и о чудо чудное диво дивное, пред этим тоже стояли пробелы, но...

text
telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
220 mail.drop.me ESMTP
telnet 127.0.0.1 110
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
+OK Dovecot ready.

Буду пробывать дальше, чувствую что еще будут вопросы.

#372933

srsd,

Пользуйтесь тегами оформления сообщений BBCode.
Не надо полностью цитировать предыдущее сообщение.
verg

Войдите или зарегистрируйтесь, чтобы ответить.