LINUX.ORG.RU

Нет подключаеться к почтовому ящику Thunderbird

 , ,


0

2

После ввода данных от почтового ящика пишет что «При проверке указанного сервера были найдены следующие настройки» после чего нажимаю готово и в ответ «Проверка палоля...» и «Конфигурация не может быть проверена. Убедитесь, что имя пользователя и пароль введены правильно.» Но имя и пароль введены правильно, я перепроверял и повторно переписывал все. По статусу:

systemctl status postfix
● postfix.service - Postfix Mail Transport Agent
   Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)
   Active: active (running) since Пнд 2018-04-02 09:33:46 EEST; 3s ago
  Process: 19247 ExecStop=/usr/sbin/postfix stop (code=exited, status=0/SUCCESS)
  Process: 19264 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS)
  Process: 19261 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)
  Process: 19258 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS)
 Main PID: 19336 (master)
   CGroup: /system.slice/postfix.service
           ├─19336 /usr/libexec/postfix/master -w
           ├─19337 pickup -l -t unix -u
           └─19338 qmgr -l -t unix -u

Апр 02 09:33:45 ns.thxlor postfix[19264]: /usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_ma...d=4048
Апр 02 09:33:45 ns.thxlor postfix[19264]: /usr/sbin/postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_c...ctions
Апр 02 09:33:45 ns.thxlor postfix[19264]: /usr/sbin/postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_c...ctions
Апр 02 09:33:45 ns.thxlor postfix[19264]: /usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_ma...d=4048
Апр 02 09:33:46 ns.thxlor postfix[19264]: /usr/sbin/postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_c...ctions
Апр 02 09:33:46 ns.thxlor postfix[19264]: /usr/sbin/postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_c...ctions
Апр 02 09:33:46 ns.thxlor postfix[19264]: /usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_ma...d=4048
Апр 02 09:33:46 ns.thxlor postfix/postfix-script[19334]: starting the Postfix mail system
Апр 02 09:33:46 ns.thxlor postfix/master[19336]: daemon started -- version 2.10.1, configuration /etc/postfix
Апр 02 09:33:46 ns.thxlor systemd[1]: Started Postfix Mail Transport Agent.
Hint: Some lines were ellipsized, use -l to show in full.
[root@localhost ~]# systemctl status dovecot
● dovecot.service - Dovecot IMAP/POP3 email server
   Loaded: loaded (/usr/lib/systemd/system/dovecot.service; enabled; vendor preset: disabled)
   Active: active (running) since Пнд 2018-04-02 09:33:41 EEST; 16s ago
  Process: 19228 ExecStartPre=/usr/libexec/dovecot/prestartscript (code=exited, status=0/SUCCESS)
 Main PID: 19235 (dovecot)
   CGroup: /system.slice/dovecot.service
           ├─19235 /usr/sbin/dovecot -F
           ├─19237 dovecot/anvil
           ├─19238 dovecot/log
           └─19240 dovecot/config

Апр 02 09:33:41 ns.thxlor systemd[1]: Starting Dovecot IMAP/POP3 email server...
Апр 02 09:33:41 ns.thxlor systemd[1]: Started Dovecot IMAP/POP3 email server.

Ответ на: комментарий от constin

Вспомнил что тут меняет скобы.

cat /etc/postfix/master.cf | egrep -v "^\s*(#|$)"
smtp      inet  n       -       n       -       -       smtpd
submission inet n       -       n       -       -       smtpd
  -o smtpd_tls_security_level=encrypt
  -o smtpd_sasl_auth_enable=yes
  -o milter_macro_daemon_name=ORIGINATING
smtps     inet  n       -       n       -       -       smtpd
  -o smtpd_tls_wrappermode=yes
  -o smtpd_sasl_auth_enable=yes
  -o milter_macro_daemon_name=ORIGINATING
pickup    unix  n       -       n       60      1       pickup
cleanup   unix  n       -       n       -       0       cleanup
qmgr      unix  n       -       n       300     1       qmgr
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
relay     unix  -       -       n       -       -       smtp
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
dovecot unix - n n - - pipe
 flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/deliver -f ${sender} -d ${recipient}

SysError
() автор топика
Ответ на: комментарий от constin

Вот еще информация со статуса.

systemctl status postfix -l
● postfix.service - Postfix Mail Transport Agent
   Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)
   Active: active (running) since Вто 2018-04-10 13:04:05 EEST; 3min 4s ago
  Process: 2603 ExecStop=/usr/sbin/postfix stop (code=exited, status=0/SUCCESS)
  Process: 2621 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS)
  Process: 2618 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)
  Process: 2615 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS)
 Main PID: 2693 (master)
   CGroup: /system.slice/postfix.service
           ├─2693 /usr/libexec/postfix/master -w
           ├─2694 pickup -l -t unix -u
           └─2695 qmgr -l -t unix -u

Апр 10 13:04:04 host.local systemd[1]: Starting Postfix Mail Transport Agent...
Апр 10 13:04:05 host.local postfix/postfix-script[2691]: starting the Postfix mail system
Апр 10 13:04:05 host.local postfix/master[2693]: daemon started -- version 2.10.1, configuration /etc/postfix
Апр 10 13:04:05 host.local systemd[1]: Started Postfix Mail Transport Agent.
Апр 10 13:05:02 host.local postfix/pickup[2694]: 3F45114238B: uid=0 from=<root>
Апр 10 13:05:02 host.local postfix/trivial-rewrite[2702]: warning: database /etc/postfix/vmailbox.db is older than source file /etc/postfix/vmailbox
Апр 10 13:05:02 host.local postfix/cleanup[2700]: 3F45114238B: message-id=<20180410100502.3F45114238B@host.local>
Апр 10 13:05:02 host.local postfix/qmgr[2695]: 3F45114238B: from=<root@host.local>, size=1411, nrcpt=1 (queue active)
Апр 10 13:05:02 host.local postfix/local[2703]: 3F45114238B: to=<root@host.local>, orig_to=<root>, relay=local, delay=0.14, delays=0.11/0.02/0/0.01, dsn=2.0.0, status=sent (delivered to maildir)
Апр 10 13:05:02 host.local postfix/qmgr[2695]: 3F45114238B: removed

SysError
() автор топика
Ответ на: комментарий от constin

Возможно из-за того что я решил убрать test@host.local с vmailbox появился варнинг

SysError
() автор топика
Ответ на: комментарий от constin

Прописал postmap и решил проблему. Статус

systemctl status postfix -l
● postfix.service - Postfix Mail Transport Agent
   Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)
   Active: active (running) since Вто 2018-04-10 13:17:12 EEST; 3min 15s ago
  Process: 2852 ExecStop=/usr/sbin/postfix stop (code=exited, status=0/SUCCESS)
  Process: 2868 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS)
  Process: 2865 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)
  Process: 2862 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS)
 Main PID: 2940 (master)
   CGroup: /system.slice/postfix.service
           ├─2940 /usr/libexec/postfix/master -w
           ├─2941 pickup -l -t unix -u
           ├─2942 qmgr -l -t unix -u
           ├─2954 cleanup -z -t unix -u
           ├─2956 trivial-rewrite -n rewrite -t unix -u
           └─2957 local -t unix

Апр 10 13:17:12 host.local systemd[1]: Starting Postfix Mail Transport Agent...
Апр 10 13:17:12 host.local postfix/postfix-script[2938]: starting the Postfix mail system
Апр 10 13:17:12 host.local postfix/master[2940]: daemon started -- version 2.10.1, configuration /etc/postfix
Апр 10 13:17:12 host.local systemd[1]: Started Postfix Mail Transport Agent.
Апр 10 13:20:01 host.local postfix/pickup[2941]: 9CCB814238B: uid=0 from=<root>
Апр 10 13:20:01 host.local postfix/cleanup[2954]: 9CCB814238B: message-id=<20180410102001.9CCB814238B@host.local>
Апр 10 13:20:01 host.local postfix/qmgr[2942]: 9CCB814238B: from=<root@host.local>, size=1411, nrcpt=1 (queue active)
Апр 10 13:20:01 host.local postfix/local[2957]: 9CCB814238B: to=<root@host.local>, orig_to=<root>, relay=local, delay=0.14, delays=0.11/0.02/0/0.01, dsn=2.0.0, status=sent (delivered to maildir)
Апр 10 13:20:01 host.local postfix/qmgr[2942]: 9CCB814238B: removed


SysError
() автор топика
Ответ на: комментарий от constin

Эти юзеры были созданы первоначально через postfixadmin, а далее мне сказали что не нужно иметь постфикс админ и нужно все так делать. После чего я все прописывал по статье и вносил все в конфиги. Возможно как то можно точно проверить. Так как я после недели болезни не особо помню, но последовательность была такая.

SysError
() автор топика
Ответ на: комментарий от constin

Я читал и видел что не критично. Но как то приятней когда нету ворнингов) Потому решил исправить.

SysError
() автор топика
Ответ на: комментарий от constin

Рестартнул и проверил по новой. Все без ошибок есио\\ли не ошибаюсь.

systemctl status postfix -l
● postfix.service - Postfix Mail Transport Agent
   Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)
   Active: active (running) since Вто 2018-04-10 13:33:49 EEST; 3min 6s ago
  Process: 3031 ExecStop=/usr/sbin/postfix stop (code=exited, status=0/SUCCESS)
  Process: 3049 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS)
  Process: 3046 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)
  Process: 3043 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS)
 Main PID: 3121 (master)
   CGroup: /system.slice/postfix.service
           ├─3121 /usr/libexec/postfix/master -w
           ├─3122 pickup -l -t unix -u
           └─3123 qmgr -l -t unix -u

Апр 10 13:33:48 host.local systemd[1]: Starting Postfix Mail Transport Agent...
Апр 10 13:33:49 host.local postfix/postfix-script[3119]: starting the Postfix mail system
Апр 10 13:33:49 host.local postfix/master[3121]: daemon started -- version 2.10.1, configuration /etc/postfix
Апр 10 13:33:49 host.local systemd[1]: Started Postfix Mail Transport Agent.
Апр 10 13:35:02 host.local postfix/pickup[3122]: 029B214238B: uid=0 from=<root>
Апр 10 13:35:02 host.local postfix/cleanup[3128]: 029B214238B: message-id=<20180410103502.029B214238B@host.local>
Апр 10 13:35:02 host.local postfix/qmgr[3123]: 029B214238B: from=<root@host.local>, size=1411, nrcpt=1 (queue active)
Апр 10 13:35:02 host.local postfix/local[3131]: 029B214238B: to=<root@host.local>, orig_to=<root>, relay=local, delay=0.15, delays=0.12/0.02/0/0.01, dsn=2.0.0, status=sent (delivered to maildir)
Апр 10 13:35:02 host.local postfix/qmgr[3123]: 029B214238B: removed
[root@host dovecot]# systemctl status dovecot -l
● dovecot.service - Dovecot IMAP/POP3 email server
   Loaded: loaded (/usr/lib/systemd/system/dovecot.service; enabled; vendor preset: disabled)
   Active: active (running) since Вто 2018-04-10 13:33:43 EEST; 3min 16s ago
  Process: 3012 ExecStartPre=/usr/libexec/dovecot/prestartscript (code=exited, status=0/SUCCESS)
 Main PID: 3019 (dovecot)
   CGroup: /system.slice/dovecot.service
           ├─3019 /usr/sbin/dovecot -F
           ├─3021 dovecot/anvil
           ├─3022 dovecot/log
           └─3024 dovecot/config

Апр 10 13:33:43 host.local systemd[1]: Starting Dovecot IMAP/POP3 email server...
Апр 10 13:33:43 host.local systemd[1]: Started Dovecot IMAP/POP3 email server.

SysError
() автор топика
Ответ на: комментарий от constin

И вот что выдает статус после попытки конекта. с убунты

Апр 10 13:41:46 host.local postfix/smtpd[3166]: connect from bubunta.thxlor[192.168.100.56]
Апр 10 13:41:46 host.local postfix/smtpd[3166]: improper command pipelining after EHLO from bubunta.thxlor[192.168.100.56]: QUIT\r\n
Апр 10 13:41:46 host.local postfix/smtpd[3166]: disconnect from bubunta.thxlor[192.168.100.56]
Апр 10 13:42:06 host.local postfix/smtpd[3166]: connect from bubunta.thxlor[192.168.100.56]
Апр 10 13:42:06 host.local postfix/smtpd[3166]: disconnect from bubunta.thxlor[192.168.100.56]

SysError
() автор топика
Ответ на: комментарий от SysError
cp /etc/postfix/main.cf /etc/postfix/main.cf.backup
touch /etc/postfix/alias && postmap /etc/postfix/alias
#на всякий случай или что там в centos?  yum install dovecot-pop3d  dovecot-imap ?
apt-get install  dovecot-pop3d  dovecot-imap

новый /etc/postfix/main.cf

biff = no
append_dot_mydomain = no
recipient_delimiter = +
readme_directory = no
myhostname = host.local
mydomain = host.local
myorigin = $mydomain
inet_interfaces = all
mydestination = localhost
mynetworks = 127.0.0.0/8

virtual_mailbox_domains = host.local
virtual_mailbox_base = /var/mail/vhosts/
virtual_alias_maps = hash:/etc/postfix/alias
virtual_minimum_uid = 100
virtual_uid_maps = static: 4048
virtual_gid_maps = static: 4048
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
mailbox_size_limit = 0


smtpd_sasl_auth_enable = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $mydomain
broken_sasl_auth_clients = yes


smtpd_tls_protocols = !SSLv2 !SSLv3
smtp_tls_protocols = !SSLv2 !SSLv3
lmtp_tls_protocols = !SSLv2 !SSLv3
smtpd_tls_mandatory_protocols = !SSLv2 !SSLv3
smtp_tls_mandatory_protocols = !SSLv2 !SSLv3
lmtp_tls_mandatory_protocols = !SSLv2 !SSLv3


smtpd_use_tls=yes
smtpd_tls_security_level = may
smtpd_tls_auth_only = yes
smtpd_tls_cert_file=/etc/postfix/ssl/postfix.crt
smtpd_tls_key_file=/etc/postfix/ssl/postfix.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_tls_received_header = yes
tls_random_source = dev:/dev/urandom
smtpd_tls_security_level = may
smtp_tls_security_level = may



smtpd_helo_required=yes
strict_rfc821_envelopes = yes
disable_vrfy_command = yes
smtpd_delay_reject = yes


anvil_rate_time_unit = 60s
smtpd_client_connection_rate_limit = 5
smtpd_client_connection_count_limit = 5

smtpd_error_sleep_time = 5s
smtpd_soft_error_limit = 2
smtpd_hard_error_limit = 3

smtpd_helo_restrictions= 
  permit_sasl_authenticated,
  reject_non_fqdn_hostname,
  reject_unknown_helo_hostname,
  reject_invalid_helo_hostname,

smtpd_client_restrictions = 
  permit_mynetworks,
  permit_sasl_authenticated,
  reject_unknown_client_hostname,
  reject_unauth_pipelining

smtpd_sender_restrictions = reject_non_fqdn_sender,
  reject_unknown_sender_domain

smtpd_recipient_restrictions = 
  permit_mynetworks,
  permit_sasl_authenticated,
  reject_invalid_hostname,
  reject_non_fqdn_hostname,
  reject_non_fqdn_sender,
  reject_non_fqdn_recipient,
  reject_unauth_destination,
  reject_unauth_pipelining
 
smtpd_recipient_limit = 250
alias_maps = hash:/etc/aliases
cp /etc/dovecot/dovecot.conf /etc/dovecot/dovecot.conf.backup

новый /etc/dovecot/dovecot.conf

auth_mechanisms = plain login
disable_plaintext_auth = no
log_path = /var/log/dovecot.log
mail_location = maildir:/var/mail/vhosts/%d/%n
mail_home = /var/mail/vhosts/%d/%n
passdb {
  args = /etc/dovecot/users
  driver = passwd-file
}
userdb {
  args = /etc/dovecot/users
  driver = passwd-file                                               
  default_fields = uid=vmail gid=vmail userdb_home=/var/mail/vhosts/%Ld/%Ln userdb_location=maildir:/var/mail/vhosts/%Ld/%Ln
}         
protocols = imap pop3
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = vmail
    mode = 0660
    user = postfix
  }
  unix_listener auth-master {
    group = vmail
    mode = 0600
    user = vmail
  }
}
ssl_cert = </etc/postfix/ssl/postfix.crt
ssl_key = </etc/postfix/ssl/postfix.key

#Disable SSLv3
ssl_protocols = !SSLv2 !SSLv3


protocol lda {
  auth_socket_path = /var/run/dovecot/auth-master
  hostname = host.local
  mail_plugin_dir = /usr/lib/dovecot/modules
  postmaster_address = postmaster@host.local
}
service postfix restart
service dovecot restart
constin ★★★★
()
Последнее исправление: constin (всего исправлений: 3)
Ответ на: комментарий от SysError

а сервисы все запущены? все порты слушаются? уже мог бы сам предварительную аналитику делать

constin ★★★★
()
Ответ на: комментарий от SysError

и не надо ей пока лдавать ничего самой искать smtp 587 starttls imap 143 starttls username полныйемаел

constin ★★★★
()
Ответ на: комментарий от constin

Простите, ехал домой. Вот что по статусу

systemctl status postfix -l
● postfix.service - Postfix Mail Transport Agent
   Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)
   Active: active (running) since Вто 2018-04-10 15:15:31 EEST; 4h 28min ago
  Process: 1917 ExecStop=/usr/sbin/postfix stop (code=exited, status=0/SUCCESS)
  Process: 1934 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS)
  Process: 1931 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)
  Process: 1928 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS)
 Main PID: 2006 (master)
   CGroup: /system.slice/postfix.service
           ├─2006 /usr/libexec/postfix/master -w
           ├─2008 qmgr -l -t unix -u
           └─3129 pickup -l -t unix -u

Апр 10 19:40:33 host.local postfix/qmgr[2008]: B93B9137656: from=<root@host.local>, size=1412, nrcpt=1 (queue active)
Апр 10 19:40:33 host.local postfix/qmgr[2008]: 0BA02137687: from=<root@host.local>, size=1411, nrcpt=1 (queue active)
Апр 10 19:40:33 host.local postfix/qmgr[2008]: 0AA9413764E: from=<root@host.local>, size=1411, nrcpt=1 (queue active)
Апр 10 19:40:33 host.local postfix/qmgr[2008]: 7AD6D13765C: from=<root@host.local>, size=1412, nrcpt=1 (queue active)
Апр 10 19:40:33 host.local postfix/pipe[3188]: 896D9137640: to=<root@host.local>, orig_to=<root>, relay=dovecot, delay=8732, delays=8732/0.01/0/0.04, dsn=4.3.0, status=deferred (temporary failure. Command output: Can't open log file /var/log/dovecot.log: Permission denied )
Апр 10 19:40:33 host.local postfix/pipe[3192]: 8FEE613765A: to=<root@host.local>, orig_to=<root>, relay=dovecot, delay=932, delays=932/0.03/0/0.04, dsn=4.3.0, status=deferred (temporary failure. Command output: Can't open log file /var/log/dovecot.log: Permission denied )
Апр 10 19:40:33 host.local postfix/pipe[3188]: B93B9137656: to=<root@host.local>, orig_to=<root>, relay=dovecot, delay=2132, delays=2131/0.05/0/0.07, dsn=4.3.0, status=deferred (temporary failure. Command output: Can't open log file /var/log/dovecot.log: Permission denied )
Апр 10 19:40:33 host.local postfix/pipe[3194]: 0BA02137687: to=<root@host.local>, orig_to=<root>, relay=dovecot, delay=12931, delays=12931/0.06/0/0.07, dsn=4.3.0, status=deferred (temporary failure. Command output: Can't open log file /var/log/dovecot.log: Permission denied )
Апр 10 19:40:33 host.local postfix/pipe[3192]: 0AA9413764E: to=<root@host.local>, orig_to=<root>, relay=dovecot, delay=4531, delays=4531/0.07/0/0.08, dsn=4.3.0, status=deferred (temporary failure. Command output: Can't open log file /var/log/dovecot.log: Permission denied )
Апр 10 19:40:33 host.local postfix/pipe[3197]: 7AD6D13765C: to=<root@host.local>, orig_to=<root>, relay=dovecot, delay=332, delays=332/0.1/0/0.07, dsn=4.3.0, status=deferred (temporary failure. Command output: Can't open log file /var/log/dovecot.log: Permission denied )
[root@host ~]# systemctl status dovecot -l
● dovecot.service - Dovecot IMAP/POP3 email server
   Loaded: loaded (/usr/lib/systemd/system/dovecot.service; enabled; vendor preset: disabled)
   Active: active (running) since Вто 2018-04-10 15:15:39 EEST; 4h 28min ago
  Process: 2028 ExecStartPre=/usr/libexec/dovecot/prestartscript (code=exited, status=0/SUCCESS)
 Main PID: 2035 (dovecot)
   CGroup: /system.slice/dovecot.service
           ├─2035 /usr/sbin/dovecot -F
           ├─2038 dovecot/anvil
           ├─2039 dovecot/log
           └─2041 dovecot/config

Апр 10 15:15:39 host.local systemd[1]: Starting Dovecot IMAP/POP3 email server...
Апр 10 15:15:39 host.local systemd[1]: Started Dovecot IMAP/POP3 email server.
А так же при отправке письма
Apr 10 19:47:26 localhost postfix/pickup[3129]: D180013765F: uid=0 from=<root>
Apr 10 19:47:26 localhost postfix/cleanup[3229]: D180013765F: message-id=<20180410164726.D180013765F@host.local>
Apr 10 19:47:26 localhost postfix/qmgr[2008]: D180013765F: from=<root@host.local>, size=412, nrcpt=1 (queue active)
Apr 10 19:47:26 localhost postfix/pipe[3231]: D180013765F: to=<postfix@host.local>, relay=dovecot, delay=0.16, delays=0.08/0.02/0/0.06, dsn=4.3.0, status=deferred (temporary failure. Command output: Can't open log file /var/log/dovecot.log: Permission denied )
И телнет
telnet localhost 25
Trying ::1...
Connected to localhost.
Escape character is '^]'.
220 host.local ESMTP Postfix
quit
221 2.0.0 Bye
Connection closed by foreign host.
[root@host ~]# telnet localhost 587
Trying ::1...
Connected to localhost.
Escape character is '^]'.
220 host.local ESMTP Postfix
quit
221 2.0.0 Bye
Connection closed by foreign host.

SysError
() автор топика
Ответ на: комментарий от constin
systemctl status dovecot -l
● dovecot.service - Dovecot IMAP/POP3 email server
   Loaded: loaded (/usr/lib/systemd/system/dovecot.service; enabled; vendor preset: disabled)
   Active: active (running) since Вто 2018-04-10 21:13:52 EEST; 6min ago
  Process: 4109 ExecStartPre=/usr/libexec/dovecot/prestartscript (code=exited, status=0/SUCCESS)
 Main PID: 4116 (dovecot)
   CGroup: /system.slice/dovecot.service
           ├─4116 /usr/sbin/dovecot -F
           ├─4118 dovecot/anvil
           ├─4119 dovecot/log
           └─4128 dovecot/auth

Апр 10 21:13:52 host.local systemd[1]: Starting Dovecot IMAP/POP3 email server...
Апр 10 21:13:52 host.local systemd[1]: Started Dovecot IMAP/POP3 email server.
[root@host ~]# systemctl status postfix -l
● postfix.service - Postfix Mail Transport Agent
   Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)
   Active: active (running) since Вто 2018-04-10 21:13:47 EEST; 7min ago
  Process: 3985 ExecStop=/usr/sbin/postfix stop (code=exited, status=0/SUCCESS)
  Process: 4003 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS)
  Process: 4000 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)
  Process: 3997 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS)
 Main PID: 4075 (master)
   CGroup: /system.slice/postfix.service
           ├─4075 /usr/libexec/postfix/master -w
           ├─4076 pickup -l -t unix -u
           ├─4077 qmgr -l -t unix -u
           ├─4140 cleanup -z -t unix -u
           ├─4142 trivial-rewrite -n rewrite -t unix -u
           ├─4143 pipe -n dovecot -t unix flags=DRhu user=vmail vmail argv=/usr/libexec/dovecot/deliver -f ${sender} -d ${recipient}
           └─4145 bounce -z -t unix -u

Апр 10 21:20:02 host.local postfix/pickup[4076]: 4415D14238B: uid=0 from=<root>
Апр 10 21:20:02 host.local postfix/cleanup[4140]: 4415D14238B: message-id=<20180410182002.4415D14238B@host.local>
Апр 10 21:20:02 host.local postfix/qmgr[4077]: 4415D14238B: from=<root@host.local>, size=1412, nrcpt=1 (queue active)
Апр 10 21:20:02 host.local postfix/pipe[4143]: 4415D14238B: to=<root@host.local>, orig_to=<root>, relay=dovecot, delay=0.19, delays=0.11/0.02/0/0.06, dsn=5.1.1, status=bounced (user unknown)
Апр 10 21:20:02 host.local postfix/cleanup[4140]: 623D8142106: message-id=<20180410182002.623D8142106@host.local>
Апр 10 21:20:02 host.local postfix/qmgr[4077]: 623D8142106: from=<>, size=3101, nrcpt=1 (queue active)
Апр 10 21:20:02 host.local postfix/bounce[4145]: 4415D14238B: sender non-delivery notification: 623D8142106
Апр 10 21:20:02 host.local postfix/qmgr[4077]: 4415D14238B: removed
Апр 10 21:20:02 host.local postfix/pipe[4143]: 623D8142106: to=<root@host.local>, relay=dovecot, delay=0.07, delays=0.03/0/0/0.04, dsn=5.1.1, status=bounced (user unknown)
Апр 10 21:20:02 host.local postfix/qmgr[4077]: 623D8142106: removed
SysError
() автор топика
Ответ на: комментарий от constin

Логин не проходит снова, та же старая ошибка

SysError
() автор топика
Ответ на: комментарий от SysError

starttls? (это важно)

imap 143 starttls plain/normal password

smtp 587 starttls plain/normal password

constin ★★★★
()
Ответ на: комментарий от constin
tail -n 15 /var/log/dovecot.log
Apr 10 20:01:07 log: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Apr 10 20:01:07 master: Info: Dovecot v2.2.10 starting up for imap, pop3 (core dumps disabled)
Apr 10 20:01:07 master: Warning: /var/named/chroot/usr/lib64/bind is no longer mounted. See http://wiki2.dovecot.org/Mountpoints
Apr 10 20:26:00 lda(postfix@host.local): Error: user postfix@host.local: Initialization failed: Initializing mail storage from mail_location setting failed: mkdir(/var/mail/vhosts/host.local/postfix) failed: Permission denied (euid=4048(vmail) egid=4048(vmail) missing +w perm: /var/mail/vhosts/host.local, dir owned by 89:89 mode=0755)
Apr 10 20:26:00 lda(postfix@host.local): Fatal: Invalid user settings. Refer to server log for more information.
Apr 10 21:06:00 lda(postfix@host.local): Error: user postfix@host.local: Initialization failed: Initializing mail storage from mail_location setting failed: mkdir(/var/mail/vhosts/host.local/postfix) failed: Permission denied (euid=4048(vmail) egid=4048(vmail) missing +w perm: /var/mail/vhosts/host.local, dir owned by 89:89 mode=0755)
Apr 10 21:06:00 lda(postfix@host.local): Fatal: Invalid user settings. Refer to server log for more information.
Apr 10 21:13:51 master: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Apr 10 21:13:51 log: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Apr 10 21:13:52 master: Info: Dovecot v2.2.10 starting up for imap, pop3 (core dumps disabled)
Apr 10 21:13:52 master: Warning: /var/named/chroot/usr/lib64/bind is no longer mounted. See http://wiki2.dovecot.org/Mountpoints
Apr 10 22:13:48 lda(postfix@host.local): Error: user postfix@host.local: Initialization failed: Initializing mail storage from mail_location setting failed: mkdir(/var/mail/vhosts/host.local/postfix) failed: Permission denied (euid=4048(vmail) egid=4048(vmail) missing +w perm: /var/mail/vhosts/host.local, dir owned by 89:89 mode=0755)
Apr 10 22:13:48 lda(postfix@host.local): Fatal: Invalid user settings. Refer to server log for more information.
Apr 10 23:23:48 lda(postfix@host.local): Error: user postfix@host.local: Initialization failed: Initializing mail storage from mail_location setting failed: mkdir(/var/mail/vhosts/host.local/postfix) failed: Permission denied (euid=4048(vmail) egid=4048(vmail) missing +w perm: /var/mail/vhosts/host.local, dir owned by 89:89 mode=0755)
Apr 10 23:23:48 lda(postfix@host.local): Fatal: Invalid user settings. Refer to server log for more information.

http://screenshot.ru/upload/image/afbW

SysError
() автор топика
Ответ на: комментарий от constin
tail -n 15 /var/log/maillog
Apr 10 23:20:02 localhost postfix/qmgr[4077]: 5861514238B: removed
Apr 10 23:20:02 localhost postfix/pipe[4536]: 7AD8D142106: to=<root@host.local>, relay=dovecot, delay=0.07, delays=0.02/0/0/0.04, dsn=5.1.1, status=bounced (user unknown)
Apr 10 23:20:02 localhost postfix/qmgr[4077]: 7AD8D142106: removed
Apr 10 23:23:48 localhost postfix/qmgr[4077]: D180013765F: from=<root@host.local>, size=412, nrcpt=1 (queue active)
Apr 10 23:23:48 localhost postfix/pipe[4542]: D180013765F: to=<postfix@host.local>, relay=dovecot, delay=12982, delays=12982/0.04/0/0.05, dsn=4.3.0, status=deferred (temporary failure)
Apr 10 23:25:01 localhost postfix/pickup[4388]: C3FFA14238B: uid=0 from=<root>
Apr 10 23:25:01 localhost postfix/cleanup[4550]: C3FFA14238B: message-id=<20180410202501.C3FFA14238B@host.local>
Apr 10 23:25:01 localhost postfix/qmgr[4077]: C3FFA14238B: from=<root@host.local>, size=1412, nrcpt=1 (queue active)
Apr 10 23:25:01 localhost postfix/pipe[4542]: C3FFA14238B: to=<root@host.local>, orig_to=<root>, relay=dovecot, delay=0.19, delays=0.1/0/0/0.09, dsn=5.1.1, status=bounced (user unknown)
Apr 10 23:25:01 localhost postfix/cleanup[4550]: E1F95142106: message-id=<20180410202501.E1F95142106@host.local>
Apr 10 23:25:01 localhost postfix/qmgr[4077]: E1F95142106: from=<>, size=3101, nrcpt=1 (queue active)
Apr 10 23:25:01 localhost postfix/bounce[4555]: C3FFA14238B: sender non-delivery notification: E1F95142106
Apr 10 23:25:01 localhost postfix/qmgr[4077]: C3FFA14238B: removed
Apr 10 23:25:01 localhost postfix/pipe[4542]: E1F95142106: to=<root@host.local>, relay=dovecot, delay=0.07, delays=0.02/0/0/0.04, dsn=5.1.1, status=bounced (user unknown)
Apr 10 23:25:01 localhost postfix/qmgr[4077]: E1F95142106: removed
SysError
() автор топика
Ответ на: комментарий от constin

Тоже не конектится. Сейчас подожду еще 5 минут, так как через 5 минут примерно оно дозагружает все

SysError
() автор топика
Ответ на: комментарий от constin
tail -n 15 /var/log/maillog
Apr 10 23:35:01 localhost postfix/bounce[4730]: AE20D14238B: sender non-delivery notification: D27EB142106
Apr 10 23:35:01 localhost postfix/qmgr[4687]: D27EB142106: from=<>, size=3101, nrcpt=1 (queue active)
Apr 10 23:35:01 localhost postfix/qmgr[4687]: AE20D14238B: removed
Apr 10 23:35:01 localhost postfix/pipe[4727]: D27EB142106: to=<root@host.local>, relay=dovecot, delay=0.07, delays=0.03/0/0/0.04, dsn=5.1.1, status=bounced (user unknown)
Apr 10 23:35:01 localhost postfix/qmgr[4687]: D27EB142106: removed
Apr 10 23:40:02 localhost postfix/pickup[4686]: 2FE0514238B: uid=0 from=<root>
Apr 10 23:40:02 localhost postfix/cleanup[4742]: 2FE0514238B: message-id=<20180410204002.2FE0514238B@host.local>
Apr 10 23:40:02 localhost postfix/qmgr[4687]: 2FE0514238B: from=<root@host.local>, size=1412, nrcpt=1 (queue active)
Apr 10 23:40:02 localhost postfix/pipe[4745]: 2FE0514238B: to=<root@host.local>, orig_to=<root>, relay=dovecot, delay=0.19, delays=0.12/0.02/0/0.06, dsn=5.1.1, status=bounced (user unknown)
Apr 10 23:40:02 localhost postfix/cleanup[4742]: 4DD38142106: message-id=<20180410204002.4DD38142106@host.local>
Apr 10 23:40:02 localhost postfix/qmgr[4687]: 4DD38142106: from=<>, size=3101, nrcpt=1 (queue active)
Apr 10 23:40:02 localhost postfix/bounce[4747]: 2FE0514238B: sender non-delivery notification: 4DD38142106
Apr 10 23:40:02 localhost postfix/qmgr[4687]: 2FE0514238B: removed
Apr 10 23:40:02 localhost postfix/pipe[4745]: 4DD38142106: to=<root@host.local>, relay=dovecot, delay=0.07, delays=0.02/0/0/0.05, dsn=5.1.1, status=bounced (user unknown)
Apr 10 23:40:02 localhost postfix/qmgr[4687]: 4DD38142106: removed
[root@host ~]# tail -n 15 /var/log/dovecot.log
Apr 10 21:06:00 lda(postfix@host.local): Error: user postfix@host.local: Initialization failed: Initializing mail storage from mail_location setting failed: mkdir(/var/mail/vhosts/host.local/postfix) failed: Permission denied (euid=4048(vmail) egid=4048(vmail) missing +w perm: /var/mail/vhosts/host.local, dir owned by 89:89 mode=0755)
Apr 10 21:06:00 lda(postfix@host.local): Fatal: Invalid user settings. Refer to server log for more information.
Apr 10 21:13:51 master: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Apr 10 21:13:51 log: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Apr 10 21:13:52 master: Info: Dovecot v2.2.10 starting up for imap, pop3 (core dumps disabled)
Apr 10 21:13:52 master: Warning: /var/named/chroot/usr/lib64/bind is no longer mounted. See http://wiki2.dovecot.org/Mountpoints
Apr 10 22:13:48 lda(postfix@host.local): Error: user postfix@host.local: Initialization failed: Initializing mail storage from mail_location setting failed: mkdir(/var/mail/vhosts/host.local/postfix) failed: Permission denied (euid=4048(vmail) egid=4048(vmail) missing +w perm: /var/mail/vhosts/host.local, dir owned by 89:89 mode=0755)
Apr 10 22:13:48 lda(postfix@host.local): Fatal: Invalid user settings. Refer to server log for more information.
Apr 10 23:23:48 lda(postfix@host.local): Error: user postfix@host.local: Initialization failed: Initializing mail storage from mail_location setting failed: mkdir(/var/mail/vhosts/host.local/postfix) failed: Permission denied (euid=4048(vmail) egid=4048(vmail) missing +w perm: /var/mail/vhosts/host.local, dir owned by 89:89 mode=0755)
Apr 10 23:23:48 lda(postfix@host.local): Fatal: Invalid user settings. Refer to server log for more information.
Apr 10 23:34:08 master: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Apr 10 23:34:08 anvil: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Apr 10 23:34:08 log: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Apr 10 23:34:08 master: Info: Dovecot v2.2.10 starting up for imap, pop3 (core dumps disabled)
Apr 10 23:34:08 master: Warning: /var/named/chroot/usr/lib64/bind is no longer mounted. See http://wiki2.dovecot.org/Mountpoints
SysError
() автор топика
Ответ на: комментарий от constin
ls -la /var/mail/ | grep vhosts
drwxrwxr-x  3 vmail vmail        24 Мар 29 15:05 vhosts
[root@host ~]# ls -la /var/mail/vhosts
итого 0
drwxrwxr-x  3 vmail vmail   24 Мар 29 15:05 .
drwxrwxr-x. 3 root  postfix 90 Мар 29 15:04 ..
drwxrwxr-x  2 vmail vmail    6 Мар 29 15:05 host.local
[root@host ~]# 

Я пойду по сплю 4 часика и в 4 утра продолжу, а то глаза замыкаются, а скоро вставать...

SysError
() автор топика
Ответ на: комментарий от SysError

А , ну проблем с пермишенами нет, это были логи от 23 минуты.

можно увидеть скриншот настроек тандерберда?

constin ★★★★
()
Ответ на: комментарий от constin
systemctl status postfix -l
● postfix.service - Postfix Mail Transport Agent
   Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)
   Active: active (running) since Срд 2018-04-11 04:03:36 EEST; 6h ago
  Process: 5673 ExecStop=/usr/sbin/postfix stop (code=exited, status=0/SUCCESS)
  Process: 5689 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS)
  Process: 5686 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)
  Process: 5683 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS)
 Main PID: 5761 (master)
   CGroup: /system.slice/postfix.service
           ├─5761 /usr/libexec/postfix/master -w
           ├─5763 qmgr -l -t unix -u
           └─6864 pickup -l -t unix -u

Апр 11 10:30:01 host.local postfix/pickup[6864]: 7AFEA14238B: uid=0 from=<root>
Апр 11 10:30:01 host.local postfix/cleanup[7037]: 7AFEA14238B: message-id=<20180411073001.7AFEA14238B@host.local>
Апр 11 10:30:01 host.local postfix/qmgr[5763]: 7AFEA14238B: from=<root@host.local>, size=1412, nrcpt=1 (queue active)
Апр 11 10:30:01 host.local postfix/pipe[7040]: 7AFEA14238B: to=<root@host.local>, orig_to=<root>, relay=dovecot, delay=0.19, delays=0.11/0.02/0/0.06, dsn=5.1.1, status=bounced (user unknown)
Апр 11 10:30:01 host.local postfix/cleanup[7037]: 9928F142106: message-id=<20180411073001.9928F142106@host.local>
Апр 11 10:30:01 host.local postfix/bounce[7042]: 7AFEA14238B: sender non-delivery notification: 9928F142106
Апр 11 10:30:01 host.local postfix/qmgr[5763]: 9928F142106: from=<>, size=3101, nrcpt=1 (queue active)
Апр 11 10:30:01 host.local postfix/qmgr[5763]: 7AFEA14238B: removed
Апр 11 10:30:01 host.local postfix/pipe[7040]: 9928F142106: to=<root@host.local>, relay=dovecot, delay=0.07, delays=0.03/0/0/0.04, dsn=5.1.1, status=bounced (user unknown)
Апр 11 10:30:01 host.local postfix/qmgr[5763]: 9928F142106: removed
SysError
() автор топика
Ответ на: комментарий от SysError

логи не так надо смотреть,

открываешь два терминала

в первом tail -f /var/log/maillog

во-втором tail -f /var/log/dovecot.log

открываешь тандерберд и кликнешь на перетестировать.

смотришь, что происходит именно в этот момент в логах. и копируешь сюда.

Если в логах ничего не происходит, то машина с тандербердом опять не видит host.local

constin ★★★★
()
Последнее исправление: constin (всего исправлений: 1)
Ответ на: комментарий от constin

Сейчас опробую, простите. Я вот наткнулся на статью в которой есть подсказка по исбавлению от ошибки что выдает в статусе постфикса. https://stackoverflow.com/questions/18377813/postfix-status-bounced-unknown-user-myuser

SysError
() автор топика
Ответ на: комментарий от SysError

сейчас опробую, простите. Я вот наткнулся на статью в которой есть подсказка по исбавлению от ошибки что выдает в статусе постфикса. https://stackoverflow.com/questions/18377813/postfix-status-bounced-unknown-u...

не надо плз ничего менять в конфигах сейчас, это не ошибка, у вас просто нет юзера root@host.local

constin ★★★★
()
Последнее исправление: constin (всего исправлений: 2)
Ответ на: комментарий от constin

Хорошо. Вот я попробовал отправить тестовое сообщения как мы делали это ранее

echo "test"| mail -s "test" postfix@host.local

dovecot.log

Apr 11 10:55:16 lda(postfix@host.local): Info: msgid=<20180411075516.8B0DD14238B@host.local>: saved mail to INBOX

maillog

Apr 11 10:55:16 localhost postfix/pickup[7367]: 8B0DD14238B: uid=0 from=<root>
Apr 11 10:55:16 localhost postfix/cleanup[7439]: 8B0DD14238B: message-id=<20180411075516.8B0DD14238B@host.local>
Apr 11 10:55:16 localhost postfix/qmgr[7368]: 8B0DD14238B: from=<root@host.local>, size=412, nrcpt=1 (queue active)
Apr 11 10:55:16 localhost postfix/pipe[7442]: 8B0DD14238B: to=<postfix@host.local>, relay=dovecot, delay=0.13, delays=0.06/0/0/0.07, dsn=2.0.0, status=sent (delivered via dovecot service)
Apr 11 10:55:16 localhost postfix/qmgr[7368]: 8B0DD14238B: removed

SysError
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.