LinuxForum.Fans
Тема

Dovecot и все-все-все

Автор: AlexLinux 40 сообщений 12097 просмотров
#51891
text
#
# Postfix master process configuration file.  For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       n       -       -       smtpd
  #   -o content_filter=spamfilter:dummy
#submission inet n       -       n       -       -       smtpd
#  -o smtpd_enforce_tls=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps     inet  n       -       n       -       -       smtpd
#  -o smtpd_tls_wrappermode=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#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
smtp      unix  -       -       n       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       n       -       -       smtp
        -o fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       n       -       -       showq
error     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=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient

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

#scan unix - - n - 16 smtp -o smtp_send_xforward_command=yes #127.0.0.1:10026 inet n - n - 16 smtpd # -o content_filter= # -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks # -o smtpd_helo_restrictions= # -o smtpd_client_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 #-o content_filter=filter

#51895
AlexLinux написал:
#scan unix - - n - 16 smtp -o smtp_send_xforward_command=yes
#127.0.0.1:10026 inet n - n - 16 smtpd
# -o content_filter=
# -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
# -o smtpd_helo_restrictions=
# -o smtpd_client_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
#-o content_filter=filter

почему закомментировано?

почитайте тут:
http://ubuntologia.ru/forum/viewtopic.php?f=109&t=2299
пункт №10

#51896

не как?

#51897

ругался на транспорт

#51898

я решил выключить антиспам

#51900
text
Jun 16 16:34:09 surgut-mosap sendmail[5077]: o5GAY94d005077: from=root, size=56, class=0, nrcpts=1, msgid=<201006161034.o5GAY94d005077@surgut-mosap.ru>, relay=root@localhost
Jun 16 16:34:09 surgut-mosap postfix/smtpd[5078]: connect from localhost[127.0.0.1]
Jun 16 16:34:09 surgut-mosap postfix/smtpd[5078]: 8B5F23267B0: client=localhost[127.0.0.1]
Jun 16 16:34:09 surgut-mosap postfix/cleanup[5083]: 8B5F23267B0: message-id=<201006161034.o5GAY94d005077@surgut-mosap.ru>
Jun 16 16:34:09 surgut-mosap sendmail[5077]: o5GAY94d005077: to=adminmosap@surut-mosap.ru, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30056, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 8B5F23267B0)
Jun 16 16:34:09 surgut-mosap postfix/qmgr[5073]: 8B5F23267B0: from=<root@surgut-mosap.ru>, size=546, nrcpt=1 (queue active)
Jun 16 16:34:09 surgut-mosap postfix/qmgr[5073]: 8B5F23267B0: to=<adminmosap@surut-mosap.ru>, relay=none, delay=0.09, delays=0.08/0.01/0/0, dsn=4.3.0, status=deferred (mail transport unavailable)
Jun 16 16:34:09 surgut-mosap postfix/smtpd[5078]: disconnect from localhost[127.0.0.1]
Jun 16 16:34:59 surgut-mosap postfix/qmgr[5073]: warning: connect to transport spamfilter: Connection refused
#51901

Просто лучше уж делать последовательно. Если намеряны использовать антиспам, то смысл его отключать?

#51903
text
почитайте тут:
http://ubuntologia.ru/forum/viewtopic.p … amp;t=2299
пункт №10

не работает

#51904

Я согласен но он ругался на транспорт

#51906
AlexLinux написал:
Jun 16 16:34:09 surgut-mosap postfix/qmgr[5073]: 8B5F23267B0: to=<adminmosap@surut-mosap.ru>, relay=none, delay=0.09, delays=0.08/0.01/0/0, dsn=4.3.0, status=deferred (mail transport unavailable)
Jun 16 16:34:09 surgut-mosap postfix/smtpd[5078]: disconnect from localhost[127.0.0.1]
Jun 16 16:34:59 surgut-mosap postfix/qmgr[5073]: warning: connect to transport spamfilter: Connection refused

воот, теперь яснее :)
постфикс не может передать письмо на проверку спам-фильтру...
прочитайте пункт №10 по моей ссылке, обращая внимание на порты, на который отправляет постфикс, на котором слушает clamsmtp

#51907

и заодно что у Вас хранится в конфиге clamsmtp

#51908

И проверьте, что clamsmtp у Вас работает

#52214

Если ты новориш про белку то она будет работать только когда нормально настроен imap пртотокол, даже если ты используеш только pop3.

#52222

Подскажите как можно отправить почту с локальной сети на smpt провайдера?

#52224

Да я думаю что мне она не нужна мне надо отправлять и принимать почту от правайдора

#56276

Помогите убогому? Не стартует Dovecot, пишет

text
dovecot: Jul 02 15:36:43 Info: Dovecot v1.0.15 starting up
dovecot: Jul 02 15:36:43 Error: auth(default): Unknown database driver 'mysql'
dovecot: Jul 02 15:36:43 Error: Auth process died too early - shutting down
dovecot: Jul 02 15:36:43 Error: child 25888 (auth) returned error 89

dovecot.conf

text

protocols = imap pop3
disable_plaintext_auth = no
log_path = /var/log/dovecot.log
info_log_path = /var/log/dovecot.log
log_timestamp = "%b %d %H:%M:%S "
ssl_disable = yes
mail_location = /var/spool/vmail/igiuv.ru/%n
mail_debug = yes
mail_log_prefix = "%Us(%u): "
first_valid_uid = 1000
first_valid_gid = 1000
protocol imap {
  #login_executable = /usr/libexec/dovecot/imap-login
  #mail_executable = /usr/libexec/dovecot/imap
  #imap_max_line_length = 65536
  #mail_plugins =
  #mail_plugin_dir = /usr/lib/dovecot/imap
  #login_greeting_capability = no
  #imap_capability =
  #imap_client_workarounds = outlook-idle
}
protocol pop3 {
  #login_executable = /usr/libexec/dovecot/pop3-login
  #mail_executable = /usr/libexec/dovecot/pop3
  #pop3_no_flag_updates = no
  #pop3_enable_last = no
  #pop3_reuse_xuidl = no
  #pop3_lock_session = no
  #pop3_uidl_format = %08Xu%08Xv
  #pop3_logout_format = top=%t/%p, retr=%r/%b, del=%d/%m, size=%s
  #mail_plugins =
  #mail_plugin_dir = /usr/lib/dovecot/pop3
  #pop3_client_workarounds =
}
auth_debug = yes
auth default {
  mechanisms = plain
  passdb sql {
    args = /etc/dovecot-mysql.conf
    }
  userdb static {
    args = uid=500 gid=500 home=/var/spool/vmail/igiuv.ru/%n
  }
  user = root
}

dovecot-mysql.conf

text
driver = mysql
#connect = host=localhost  dbname=mail user=postfix password=nekogdadumo
connect = host=/var/lib/mysql/mysql.sock dbname=mail user=postfix password=pass
default_pass_scheme = PLAIN
password_query = SELECT login as user, password FROM users WHERE login = '%n' and disabled='0'

Система ASPLinux 14, MTA - Postfix.

[root@gw etc]# dovecot --build-options
Build options: ioloop=poll notify=inotify ipv6 openssl
SQL drivers: mysql postgresql sqlite
Passdb: checkpassword ldap pam passwd passwd-file shadow sql
Userdb: checkpassword ldap passwd prefetch passwd-file sql static

#56279

dovecot-mysql или что-то похожее стоит у Вас?

#56282

твоюжмать :O Я с courier-imap перелез, просто не знал. thnx и +100500 в карму :)

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