1

Тема: Postfix + Dovecot! Танцы с бубном :)

FreeBSD 7.2-RELEASE

postfix-2.5.9,2
dovecot-1.2.10

Не ходит почта!

main.conf

queue_directory = /var/spool/postfix
command_directory = /usr/local/sbin
base = /usr/local/etc/postfix
daemon_directory = /usr/local/libexec/postfix
mail_owner = postfix
default_privs = nobody
myhostname = mail.****.com.ua
mydomain = ****.com.ua
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost
local_recipient_maps = unix:passwd.byname $alias_maps
mynetworks = 127.0.0.0/8 192.168.0.0/24
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
relayhost = mail.voliacable.com
# SASL Authentication
smtpd_sasl_auth_enable = yes
smtpd_sasl_exceptions_networks = $mynetworks
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_path = /var/spool/postfix/private/auth
broken_sasl_auth_clients = yes
smtpd_banner = $myhostname ESMTP
debug_peer_level = 2
smtpd_sasl_security_options = noanonymous
smtpd_sender_login_maps = mysql:$base/mysql/sender.conf
smtpd_client_restrictions =  permit_mynetworks,
                             permit_sasl_authenticated,
                             check_client_access hash:$base/client_access,
                             reject_unknown_client_hostname
smtpd_helo_restrictions =       check_helo_access hash:$base/hello_access,
                                permit_mynetworks,
                                permit_sasl_authenticated,
                                reject_invalid_helo_hostname,
                                reject_non_fqdn_helo_hostname,
                                reject_unknown_helo_hostname
smtpd_sender_restrictions =     permit_mynetworks,
                                check_sender_access hash:$base/sender_access,
                                reject_authenticated_sender_login_mismatch,
                                reject_unknown_sender_domain,
                                reject_unlisted_sender,
                                reject_unverified_sender
smtpd_recipient_restrictions =  permit_mynetworks,
                                permit_sasl_authenticated,
                                reject_unauth_destination,
smtpd_etrn_restrictions = reject
smtpd_reject_unlisted_sender = yes
disable_vrfy_command = yes
strict_rfc821_envelopes = yes
show_user_unknown_table_name = no
address_verify_sender = <>
unverified_sender_reject_code = 550
smtpd_helo_required = yes
smtp_always_send_ehlo = yes
smtpd_hard_error_limit = 8
# Virtual mailbox settings
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
virtual_alias_maps = mysql:$base/mysql/alias.conf
virtual_mailbox_domains = mysql:$base/mysql/domain.conf
virtual_mailbox_maps = mysql:$base/mysql/mailbox.conf
virtual_mailbox_base = /var/vmail
virtual_mailbox_limit_maps = mysql:$base/mysql/quota.conf
virtual_mailbox_limit_override=yes
virtual_create_maildirsize = yes
virtual_overquota_bounce = yes
virtual_maildir_limit_message="Sorry, the user's maildir has overdrawn his diskspace quota, please try again later"
virtual_gid_maps = static:
virtual_uid_maps = static:1981
virtual_minimum_uid = 1000
message_size_limit = 5242880

master.cf

dovecot   unix  -       n       n       -       -       pipe
  flags=DRhu user=virtual:virtual argv=/usr/libexec/dovecot/deliver -d ${recipient}

dovecot.conf

base_dir = /var/run/dovecot/
protocols = imap pop3
protocol imap {
     listen = *:143
     ssl_listen = *:10943
     mail_plugins = quota imap_quota
 }
protocol pop3 {
         listen = *:110
         ssl_listen = *:995
         mail_plugins = quota
 }
plugin {
    quota = maildir
    }
disable_plaintext_auth = no
shutdown_clients = yes
log_path = /var/log/dovecot.log
info_log_path = /var/log/dovecot_auth.log
log_timestamp = "%b %d %H:%M:%S "
syslog_facility = mail
ssl = no
login_dir = /var/run/dovecot/login
login_chroot = yes
login_user = dovecot
login_process_size = 64
login_process_per_connection = yes
login_processes_count = 3
login_max_processes_count = 64
login_greeting = dovecot MUA ready
login_log_format_elements = user=<%u> method=%m rip=%r lip=%l %c
login_log_format = %$: %s
mail_location = maildir:/var/vmail/postfix/%d/%u
mail_privileged_group  = mail
mail_full_filesystem_access = no
mail_debug = yes
verbose_proctitle = yes
first_valid_uid = 25
first_valid_gid = 0
protocol imap {
  imap_client_workarounds = delay-newmail outlook-idle netscape-eoh tb-extra-mailbox-sep
}
protocol pop3 {
  pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
}
protocol lda {
  postmaster_address = [email protected]
  auth_socket_path = /var/run/dovecot/auth-master
}
auth_debug = yes
auth default {
  mechanisms = plain login
   socket listen {
 master {
       path = /var/run/dovecot/auth-master
       mode = 0600
       user = mailnull
       #group = mail
     }
client {
     path = /var/run/dovecot/auth-client
     mode = 0660
     user = mailnull
       }
   }
passdb sql {
    args = /usr/local/etc/dovecot-sql.conf
  }
  userdb sql {
    args = /usr/local/etc/dovecot-sql.conf
  }
  user = root
}

C RoundCube пытаюсь отправить письмо!
cat /var/log/maillog

Feb 18 16:44:57 mail postfix/smtpd[2036]: warning: SASL: Connect to /var/spool/postfix/private/auth failed: No such file or directory
Feb 18 16:44:57 mail postfix/smtpd[2036]: fatal: no SASL authentication mechanisms
Feb 18 16:44:58 mail postfix/master[1366]: warning: process /usr/local/libexec/postfix/smtpd pid 2036 exit status 1
Feb 18 16:44:58 mail postfix/master[1366]: warning: /usr/local/libexec/postfix/smtpd: bad command startup -- throttling

Help Please  big_smile

2

Re: Postfix + Dovecot! Танцы с бубном :)

No such file or directory

начать с этого

3 (19-02-2010 01:17:36 отредактировано galaUNIX)

Re: Postfix + Dovecot! Танцы с бубном :)

crash
С этого и начинал !!! Создавал вручную, менял права доступа! Непомогло!
Вопрос а может ли это быть что - то с SMTP провайдера????
Вот что пишет, при отправке в самом RoundCube

http://s002.radikal.ru/i199/1002/bf/b9dd4ba0239b.jpg


Телнет на SMTP тоже не работате :

 telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
 telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK dovecot MUA ready

Фаервол вроде открыт на 25 порт!

ipfw show | grep 25

00410   398   19220 allow tcp from any to me dst-port 80,110,25,20,21,143,389,1723,49152-65534
00600     0       0 reject log tcp from any to any dst-port 25

Re: Postfix + Dovecot! Танцы с бубном :)

зачем довекота прописывать в постфиксе?

У меня нет такого. Довекот работает совершенно отдельно.

тоесть, в master.cf

dovecot   unix  -       n       n       -       -       pipe
  flags=DRhu user=virtual:virtual argv=/usr/libexec/dovecot/deliver -d ${recipient}

Этого НЕТ.

5

Re: Postfix + Dovecot! Танцы с бубном :)

С этого и начинал !!! Создавал вручную, менял права доступа! Непомогло!

так надо разбираться почему ругается. Уберите пока сасл, настройте просто, чтобы работал smtp

6

Re: Postfix + Dovecot! Танцы с бубном :)

Отключил sasl

smtpd_sasl_auth_enable = no

Закоментил в main.cf

# Dovecot LDA
#dovecot   unix  -       n       n       -       -       pipe
#  flags=DRhu user=virtual:virtual argv=/usr/libexec/dovecot/deliver -d ${recipient}

Вот что лог выдает

Feb 23 12:17:42 mail postfix/smtpd[14338]: connect from localhost[127.0.0.1]
Feb 23 12:17:42 mail postfix/smtpd[14338]: disconnect from localhost[127.0.0.1]

7

Re: Postfix + Dovecot! Танцы с бубном :)

кстати по поводу сасл

smtpd_sasl_path = private/auth
smtpd_sasl_path = /var/spool/postfix/private/auth

два раза прописано.

8

Re: Postfix + Dovecot! Танцы с бубном :)

crash

 
кстати по поводу сасл
smtpd_sasl_path = private/auth
smtpd_sasl_path = /var/spool/postfix/private/auth
два раза прописано.

Спс , изменил! Оставил только :
smtpd_sasl_path = private/auth

Но это изминение не решило проблему!  sad

9

Re: Postfix + Dovecot! Танцы с бубном :)

Вам сюда
https://unix-forum.ru/post6476.html