К нему же прикручена связка Postfix+Dovecot.
Но что-то не работает.
На текущий момент я даже не могу зайти в аккаунт из Thunderbird.
В логах
Код: Выделить всё
Apr 4 15:16:58 pdc slapd[1680]: conn=3030 op=7 SRCH base="dc=my-domen,dc=ru" scope=2 deref=0 filter="(&(objectClass=mailAccount)(mail=myuser)(mailenable=ok))"
Apr 4 15:16:58 pdc slapd[1680]: conn=3030 op=7 SRCH attr=mail
Apr 4 15:16:58 pdc slapd[1680]: conn=3030 op=7 SEARCH RESULT tag=101 err=0 nentries=0 text=
Apr 4 15:17:01 pdc slapd[1680]: conn=3045 fd=42 ACCEPT from IP=127.0.0.1:38397 (IP=0.0.0.0:389)
Apr 4 15:17:01 pdc slapd[1680]: conn=3045 op=0 BIND dn="cn=admin,dc=my-domen,dc=ru" method=128
Apr 4 15:17:01 pdc slapd[1680]: conn=3045 op=0 BIND dn="cn=admin,dc=my-domen,dc=ru" mech=SIMPLE ssf=0
Apr 4 15:17:01 pdc slapd[1680]: conn=3045 op=0 RESULT tag=97 err=0 text=
Apr 4 15:17:01 pdc slapd[1680]: conn=3045 op=1 SRCH base="dc=my-domen,dc=ru" scope=2 deref=0 filter="(uid=root)"
Apr 4 15:17:01 pdc slapd[1680]: conn=3045 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
Apr 4 15:17:01 pdc slapd[1680]: conn=3045 op=2 UNBIND
Apr 4 15:17:01 pdc slapd[1680]: conn=3045 fd=42 closed
Apr 4 15:17:01 pdc /USR/SBIN/CRON[19882]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Apr 4 15:17:05 pdc slapd[1680]: conn=3030 op=8 SRCH base="dc=my-domen,dc=ru" scope=2 deref=0 filter="(&(objectClass=mailAccount)(mail=myuser)(mailenable=ok))"
Apr 4 15:17:05 pdc slapd[1680]: conn=3030 op=8 SRCH attr=mail
Apr 4 15:17:05 pdc slapd[1680]: conn=3030 op=8 SEARCH RESULT tag=101 err=0 nentries=0 text=
Apr 4 15:17:17 pdc slapd[1680]: conn=3030 op=9 SRCH base="dc=my-domen,dc=ru" scope=2 deref=0 filter="(&(objectClass=mailAccount)(mail=myuser)(mailenable=ok))"
Apr 4 15:17:17 pdc slapd[1680]: conn=3030 op=9 SRCH attr=mail
Apr 4 15:17:17 pdc slapd[1680]: conn=3030 op=9 SEARCH RESULT tag=101 err=0 nentries=0 text=
Apr 4 15:18:02 pdc slapd[1680]: conn=3046 fd=42 ACCEPT from IP=127.0.0.1:38398 (IP=0.0.0.0:389)
Apr 4 15:18:02 pdc slapd[1680]: conn=3046 op=0 BIND dn="cn=admin,dc=my-domen,dc=ru" method=128
Apr 4 15:18:02 pdc slapd[1680]: conn=3046 op=0 BIND dn="cn=admin,dc=my-domen,dc=ru" mech=SIMPLE ssf=0
Apr 4 15:18:02 pdc slapd[1680]: conn=3046 op=0 RESULT tag=97 err=0 text=
Apr 4 15:18:02 pdc slapd[1680]: conn=3046 op=1 SRCH base="dc=my-domen,dc=ru" scope=2 deref=0 filter="(uid=amavis)"
Apr 4 15:18:02 pdc slapd[1680]: conn=3046 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
Apr 4 15:18:02 pdc slapd[1680]: conn=3046 op=2 UNBIND
Apr 4 15:18:02 pdc slapd[1680]: conn=3046 fd=42 closed
Apr 4 15:18:02 pdc /USR/SBIN/CRON[19895]: (amavis) CMD (test -e /usr/sbin/amavisd-new-cronjob && /usr/sbin/amavisd-new-cronjob sa-sync)
Apr 4 15:18:02 pdc slapd[1680]: conn=2437 op=180 SRCH base="dc=my-domen,dc=ru" scope=2 deref=0 filter="(&(objectClass=posixAccount)(uid=amavis))"
Apr 4 15:18:02 pdc slapd[1680]: conn=2437 op=180 SEARCH RESULT tag=101 err=0 nentries=0 text=
Apr 4 15:18:02 pdc slapd[1680]: conn=2437 op=181 SRCH base="dc=my-domen,dc=ru" scope=2 deref=0 filter="(&(objectClass=posixGroup)(memberUid=amavis))"
Apr 4 15:18:02 pdc slapd[1680]: conn=2437 op=181 SRCH attr=gidNumber
Apr 4 15:18:02 pdc slapd[1680]: conn=2437 op=181 SEARCH RESULT tag=101 err=0 nentries=0 text=
Apr 4 15:18:02 pdc slapd[1680]: conn=3047 fd=42 ACCEPT from IP=127.0.0.1:38399 (IP=0.0.0.0:389)
Apr 4 15:18:02 pdc slapd[1680]: conn=3047 op=0 BIND dn="" method=128
Apr 4 15:18:02 pdc slapd[1680]: conn=3047 op=0 RESULT tag=97 err=0 text=
Apr 4 15:18:02 pdc slapd[1680]: conn=3047 op=1 SRCH base="dc=my-domen,dc=ru" scope=2 deref=0 filter="(&(objectClass=shadowAccount)(uid=amavis))"
Apr 4 15:18:02 pdc slapd[1680]: conn=3047 op=1 SRCH attr=uid userPassword shadowLastChange shadowMax shadowMin shadowWarning shadowInactive shadowExpire shadowFlag
Apr 4 15:18:02 pdc slapd[1680]: conn=3047 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
Apr 4 15:18:02 pdc slapd[1680]: conn=3047 op=2 SRCH base="dc=my-domen,dc=ru" scope=2 deref=0 filter="(&(objectClass=shadowAccount)(uid=amavis))"
Apr 4 15:18:02 pdc slapd[1680]: conn=3047 op=2 SRCH attr=uid userPassword shadowLastChange shadowMax shadowMin shadowWarning shadowInactive shadowExpire shadowFlag
Apr 4 15:18:02 pdc slapd[1680]: conn=3047 op=2 SEARCH RESULT tag=101 err=0 nentries=0 text=
Apr 4 15:18:03 pdc slapd[1680]: conn=3047 fd=42 closed (connection lost)dovecot.log
Код: Выделить всё
Apr 04 15:17:34 imap-login: Info: Disconnected (auth failed, 3 attempts): user=<myuser>, method=PLAIN, rip=192.168.0.14, lip=192.168.0.1, TLSmail.info
Код: Выделить всё
Apr 4 15:20:28 pdc postfix/qmgr[19062]: 76C1C3002C7: from=<root@my-domen.ru>, size=507, nrcpt=1 (queue active)
Apr 4 15:21:10 pdc amavis[19518]: (19518-16) (!)rw_loop: leaving rw loop, no progress, last event (select) 35.033 s ago
Apr 4 15:21:10 pdc amavis[19518]: (19518-16) (!)FWD via SMTP: <root@my-domen.ru> -> <root@my-domen.ru>, 451 4.5.0 From MTA([127.0.0.1]:10025) during fwd-connect (Negative greeting: at (eval 101) line 596.): id=19518-16
Apr 4 15:21:10 pdc amavis[19518]: (19518-16) Blocked MTA-BLOCKED, <root@my-domen.ru> -> <root@my-domen.ru>, Message-ID: <20120404075459.76C1C3002C7@pdc.my-domen.ru>, mail_id: HDh-McnCIpXP, Hits: 0.97, size: 507, 41794 ms
Apr 4 15:21:10 pdc postfix/smtp[19914]: 76C1C3002C7: to=<root@my-domen.ru>, orig_to=<root>, relay=127.0.0.1[127.0.0.1]:10024, delay=1571, delays=1529/0.01/0/42, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 From MTA([127.0.0.1]:10025) during fwd-connect (Negative greeting: at (eval 101) line 596.): id=19518-16 (in reply to end of DATA command))
Apr 4 15:21:15 pdc amavis[19518]: (19518-16) (!)rw_loop: leaving rw loop, no progress, last event (select) 5.005 s ago
Apr 4 15:21:15 pdc postfix/smtp[19920]: warning: unexpected end-of-input from 127.0.0.1:10025 socket while reading input attribute name
Apr 4 15:21:15 pdc postfix/smtp[19920]: warning: deliver_request_get: error receiving common attributesНу и конфиги:
Код: Выделить всё
cat /etc/postfix/main.cf | grep -v '#'
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
append_at_myorigin = yes
append_dot_mydomain = no
myhostname = pdc.my-domen.ru
alias_maps = ldap:/etc/postfix/ldap-aliases.cf, hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = pdc.my-domen.ru,mail.my-domen.ru,my-domen.ru,localhost.localdomain,localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
luser_relay =
virtual_mailbox_domains = ldap:/etc/postfix/ldap-domains.cf
virtual_mailbox_maps = ldap:/etc/postfix/ldap-accounts.cf
virtual_alias_maps = ldap:/etc/postfix/ldap-aliases.cf, ldap:/etc/postfix/ldap-maildrop.cf
virtual_mailbox_base = /
virtual_alias_domains =
virtual_minimum_uid = 100
virtual_uid_maps = ldap:/etc/postfix/ldap-uid.cf
virtual_gid_maps = ldap:/etc/postfix/ldap-gid.cf
home_mailbox = Maildir/
smtpd_deley_reject = yes
smtpd_helo_required = yes
strinc_rfc821_evelopes = yes
smtpd_client_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_rbl_client bl.spamcop.net,
reject_rbl_client dnsbl.njabl.org,
reject_rbl_client cbl.abuseat.org,
reject_rbl_client sbl-xbl.spamhaus.org,
reject_rbl_client list.dsbl.org,
permit
smtpd_sender_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_non_fqdn_sender,
reject_unknown_sender_domain,
permit
smtpd_recipient_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_non_fqdn_recipient,
reject_unknown_recipient_domain,
reject_unauth_destination,
permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
broken_sasl_auth_clients = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain =
smtpd_tls_security_level = may
smtpd_tls_loglevel = 1
smtpd_tls_cert_file = /etc/ssl/certs/mail.pem
smtpd_tls_key_file = /etc/ssl/private/mail.key
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappingsКод: Выделить всё
cat master.cf | grep -v '#'
smtp inet n - - - - smtpd
smtps inet n - - - - smtpd
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
devcot unix - n n - - pipe
flags=DRhu user=devcot:mail argv=/usr/lib/devcot/deliver -d $recipient
amavis unix - - - - 10 smtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_commands=yes
-o disable_dns_lookups=yes
-o max_use=20
127.0.0.1:10025 inet n - - - - smtp
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_delay_reject=no
-o smtpd_client_restrictions=permit_mynetworks,reject
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o smtpd_data_restrictions=reject_unauth_pipelining
-o smtpd_end_of_data_restrictions=
-o mynetworks=127.0.0.0/8
-o smtpd_error_sleep_time=0
-o smtpd_soft_error_limit=1001
-o smtpd_hard_error_limit=1000
-o smtpd_client_connection_count_limit=0
-o smtpd_client_connection_rate_limit=0
-o receive_override_options=no_header_body_checks,no_unknown_recipient_chechs
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - n 300 1 qmgr
tlsmgr unix - - - 1000? 1 tlsmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - - - - smtp
relay unix - - - - - smtp
-o smtp_fallback_relay=
showq unix n - - - - showq
error unix - - - - - error
retry unix - - - - - error
discard unix - - - - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - - - - lmtp
anvil unix - - - - 1 anvil
scache unix - - - - 1 scache
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
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/lib/bsmtp/bsmtp -t$nexthop -f$sender $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}Код: Выделить всё
cat dovecot.conf
protocols = imap imaps pop3 pop3s
listen = 0.0.0.0
login_greeting = my-domen.ru mailserver ready.
mail_location = maildir:~/Maildir
disable_plaintext_auth = no
ssl_cert_file = /etc/ssl/certs/mail.pem
ssl_key_file = /etc/ssl/private/mail.key
log_path = /var/log/dovecot.log
info_log_path = /var/log/dovecot.log
# IMAP configuration
protocol imap {
mail_plugins = quota imap_quota
}
# POP3 configuration
protocol pop3 {
pop3_uidl_format = %08Xu%08Xv
mail_plugins = quota
}
# LDA configuration
protocol lda {
postmaster_address = postmaster
auth_socket_path = /var/run/dovecot/auth-master
mail_plugins = quota
}
# LDAP authentication
auth default {
mechanisms = plain login
passdb ldap {
args = /etc/dovecot/dovecot-ldap.conf
}
userdb ldap {
args = /etc/dovecot/dovecot-ldap.conf
}
socket listen {
master {
path = /var/run/dovecot/auth-master
mode = 0660
user = dovecot
group = mail
}
client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
}
}
mail_gid = mail
mail_debug = yes
auth_debug = yes
auth_debug_passwords = yesКод: Выделить всё
cat dovecot-ldap.conf
hosts = 127.0.0.1
auth_bind = yes
ldap_version = 3
base = dc=my-domen,dc=ru
scope = subtree
user_attrs = homeDirectory=home,uidNumber=uid,mailbox=mail,mailuserquota=quota=maildir:storage
user_filter = (&(objectClass=mailAccount)(mail=%u)(mailenable=OK))
pass_attrs = mail=user,userPassword=password
pass_filter = (&(objectClass=mailAccount)(mail=%u)(mailenable=OK))
default_pass_scheme = CRYPT
#user_global_gid = mailПомогите решить проблему?
Заранее балгодарен.