LINUX.ORG.RU
решено ФорумAdmin

не доставляется почта


0

0

Конфигурация стандартная Ubuntu-server+postfix+dovecot.

Postfix настроил, почта уходит нормально. А вот доставка не работает, причем авторизация проходит но писем нет. В /var/mail/ создаются нужные каталоги и файлы но они пустые... По логам письмо приходит но не понятно что с ним проиходит... Настраивал так: ставил пакет postfix-dovecot, потом правил в конфигах недостающие параметры.

main.cf

smtpd_banner = $myhostname ESMTP $mail_name biff = no

# appending .domain is the MUA's job. append_dot_mydomain = no

# Uncomment the next line to generate «delayed mail» warnings #delay_warning_time = 4h

readme_directory = no

# TLS parameters smtpd_tls_cert_file = /etc/ssl/certs/ssl-mail.pem smtpd_tls_key_file = /etc/ssl/private/ssl-mail.key smtpd_use_tls = yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for # information on enabling SSL in the smtp client.

myhostname = mail.abc-kam.ru alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases mydomain = abc-kam.ru myorigin = $mydomain mydestination = $mydomain mail.abc-kam.ru localhost.abc-kam.ru localhost relayhost = mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.1.0/24 mailbox_command = /usr/lib/dovecot/deliver -c /etc/dovecot/conf.d/01-dovecot-postfix.conf -n -m «${EXTENSION}» mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all #inet_protocols = home_mailbox = Maildir/ #home_mailbox = Mailbox inet_protocols = all smtpd_sasl_auth_enable = yes smtpd_sasl_type = dovecot smtpd_sasl_path = private/dovecot-auth smtpd_sasl_authenticated_header = yes smtpd_sasl_security_options = noanonymous smtpd_sasl_local_domain = $myhostname broken_sasl_auth_clients = yes smtpd_recipient_restrictions = reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_unauth_pipelining, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination smtpd_sender_restrictions = reject_unknown_sender_domain smtp_use_tls = yes smtpd_tls_received_header = yes smtpd_tls_mandatory_protocols = SSLv3, TLSv1 smtpd_tls_mandatory_ciphers = medium smtpd_tls_auth_only = yes tls_random_source = dev:/dev/urandom

/etc/dovecot/conf.d/01-dovecot-postfix.conf

# Some general options protocols = imap managesieve disable_plaintext_auth = yes ssl = yes ssl_cert_file = /etc/ssl/certs/ssl-mail.pem ssl_key_file = /etc/ssl/private/ssl-mail.key ssl_cipher_list = ALL:!LOW:!SSLv2:ALL:!aNULL:!ADH:!eNULL:!EXP:RC4+RSA:+HIGH:+MEDIUM #ail_location = maildir:~/Maildir mail_location = maildir:/var/mail/%u auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@

# IMAP configuration protocol imap { mail_max_userip_connections = 10 imap_client_workarounds = outlook-idle delay-newmail }

# POP3 configuration protocol pop3 { mail_max_userip_connections = 10 pop3_client_workarounds = outlook-no-nuls oe-ns-eoh }

# LDA configuration protocol lda { postmaster_address = postmaster@abc-kam.ru mail_plugins = cmusieve quota_full_tempfail = yes deliver_log_format = msgid=%m: %$ rejection_reason = Your message to <%t> was automatically rejected:%n%r hostname = mail.abc-kam.ru }

# Plugins configuration plugin { sieve=~/.dovecot.sieve sieve_dir=~/sieve



Последнее исправление: SergGT (всего исправлений: 2)

>> По логам письмо приходит но не понятно что с ним проиходит...

А вы логи читать пробовали?

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

вот отправляю себе письмо с гуглоящика:

Jun 11 18:57:46 mail postfix/smtpd[1608]: connect from mail-bw0-f44.google.com[209.85.214.44] Jun 11 18:57:46 mail postfix/smtpd[1608]: C1A3EBA00F8: client=mail-bw0-f44.google.com[209.85.214.44] Jun 11 18:57:47 mail postfix/cleanup[1555]: C1A3EBA00F8: message-id=<AANLkTim84hndBgDk1fiOqKF4HRFxoacGPrVrEgWpZ2Io@mail.gmail.com> Jun 11 18:57:47 mail postfix/qmgr[1088]: C1A3EBA00F8: from=<poyarkov.sergey@gmail.com>, size=1886, nrcpt=1 (queue active) Jun 11 18:57:47 mail postfix/local[1611]: C1A3EBA00F8: to=<director@abc-kam.ru>, relay=local, delay=0.52, delays=0.45/0.01/0/0.07, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/lib/dovecot/deliver must not be both world-executable and setuid-root. This allows root exploits. See http://wiki.dovecot.org/LDA#multipleuids ) Jun 11 18:58:17 mail postfix/smtpd[1608]: disconnect from mail-bw0-f44.google.com[209.85.214.44]

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

Может дело в том что я всё делаю из дома. Я перевел MX запись на домашний айпишнег и настраиваю. Сам домен у меня на основном айпишнеге...? Уже не знаю че и думать...

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

сейчас уже не в этом дело:

всё снес, поставил пакет dovecot-postfix, он автоматически все настроил сам. Исходящая отлично работает. Входящая нет, но авторизуется, нужны файлы создаются, но писем нет...

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

теперь вот что в логах: Jun 11 22:32:17 mail postfix/smtpd[1482]: connect from mail-bw0-f44.google.com[209.85.214.44] Jun 11 22:32:18 mail postfix/smtpd[1482]: 50B23BA0113: client=mail-bw0-f44.google.com[209.85.214.44] Jun 11 22:32:18 mail postfix/cleanup[1485]: 50B23BA0113: message-id=<AANLkTilzAU4K4RbGXTOCkhrMKUPXy0NybI4-C6MyCOTq@mail.gmail.com> Jun 11 22:32:18 mail postfix/qmgr[1120]: 50B23BA0113: from=<poyarkov.sergey@gmail.com>, size=2436, nrcpt=1 (queue active) Jun 11 22:32:18 mail dovecot: deliver(director): Fatal: Plugin cmusieve not found from directory /usr/lib/dovecot/modules/lda Jun 11 22:32:18 mail postfix/local[1492]: 50B23BA0113: to=<director@abc-kam.ru>, relay=local, delay=0.49, delays=0.44/0/0/0.05, dsn=4.3.0, status=deferred (temporary failure) Jun 11 22:32:48 mail postfix/smtpd[1482]: disconnect from mail-bw0-f44.google.com[209.85.214.44]

не могу понять что означает вот это: Fatal: Plugin cmusieve not found from directory /usr/lib/dovecot/modules/lda

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

да уже нет этой ошибки в логах, я же пишу что все перенастроил с помощью пакета dovecot-postfix, тепрь влогах из ошибок есть только: Fatal: Plugin cmusieve not found from directory /usr/lib/dovecot/modules/lda

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

The correct syntax is now:
mail_plugins = sieve

because the file was renamed from:
/usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so (karmic)
to:
/usr/lib/dovecot/modules/lda/lib90_sieve_plugin.so (lucid)

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

было прописанов protocol lda { mail_plugins = cmusieve (этот плагин использовался в версии 1.0 а теперь то 1.2) прописал mail_plugins = sieve и всё заработало!!!

три дня!! е**мучался это жесть...

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

Да вот сначала не предавал этому значения, просто уже голова болит, надо отдохнуть и дальше настраивать...

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

туплю... дальше.... подскажите вот что: щас почта сохраняется в /home/имя пользователя/Maildir, а мне надо в /var/mail/имя пользователя

как правельно написать в main.cf home_mailbox = ???

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