The OpenNET Project / Index page

[  /+++ | | wiki | | ]

          /    RSS
"dovecot+postfix "
 
. | .  
( / Linux)
[ ]

"dovecot+postfix "  +/
Mutronics email on 27--10, 09:44 
dovecot + postfix + mysql
, '/home/vmail/user/maildir', '/var/mail/user' dovecot , ?
Dovecot.conf

protocols = imap pop3 imaps pop3s
disable_plaintext_auth = no
log_timestamp = "%Y-%m-%d %H:%M:%S "

mail_location = maildir:/home/vmail/%d/%n/Maildir

namespace private {
separator = .
prefix = INBOX.
inbox = yes
}

mail_privileged_group = mail

protocol imap {

}

protocol pop3 {
pop3_uidl_format = %08Xu%08Xv
}

protocol managesieve {

}

protocol lda {
log_path = /home/vmail/dovecot-deliver.log
global_script_path = /home/vmail/globalsieverc
postmaster_address = user@mysite.net
mail_plugins = cmusieve
auth_socket_path = /var/run/dovecot/auth-master
}

auth default {

mechanisms = plain login

passdb pam {

}

passdb sql {
args = /etc/dovecot/dovecot-sql.conf
}

userdb passwd {

}

userdb static {
args = uid=5000 gid=5000 home=/home/vmail/%d/%n allow_all_users=yes
}

user = root

socket listen {
master {
path = /var/run/dovecot/auth-master
mode = 0600
user = vmail
#group = vmail
}
client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
}
!include_try /etc/dovecot/auth.d/*.auth
}

dict {

}

plugin {

}

!include_try /etc/dovecot/conf.d/*.conf


Postfix (main.cf)

biff = no
append_dot_mydomain = no
readme_directory = no

smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.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

myhostname = mail.yugra.net
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = $mydomain
mydestination = yugra.net, localhost.net, , localhost
mailbox_command = procmail -a $EXTENSION
mailbox_size_limit = 0
recipient_delimiter = +
smtpd_timeout = 300s
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql-email2email.cf
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
smtpd_banner = Welcome to Postfix


Postfix (master.cf)

smtp inet n - - - - smtpd
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}
dovecot unix - n n - - pipe
flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -d ${recipient}

| | C


[ | RSS]


1. "dovecot+postfix "  +/
rr on 27--10, 11:23 
dovecot ?
| | ^ #0 | | C

2. "dovecot+postfix "  +/
Mutronics email on 27--10, 12:28 
> dovecot ?

virtual_transport, ?

| | ^ #1 | | C

3. "dovecot+postfix "  +/
guest email(??) on 27--10, 12:49 
>virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf

$mydestination

| | ^ #0 | | C

4. "dovecot+postfix "  +/
Mutronics email on 27--10, 14:06 
>>virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
>
> $mydestination

,
mydestination = localhost.net, localhost
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf

mydestination = mysite.net, localhost.net, localhost
#virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf

| | ^ #3 | | C

5. "dovecot+postfix "  +/
guest email(??) on 27--10, 19:31 
> ,
>mydestination = localhost.net, localhost
>virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf


postfix flush

,

| | ^ #4 | | C

6. "dovecot+postfix "  +/
DiJey (ok) on 27--10, 23:02 
main.cf ޣ

home_mailbox = Maildir/

dovecot
?
# ps -ax | grep dovecot

: /var/log/mail.log

?
http://sudouser.com/ustanovka-pochtovogo-servera-postfix-dov...

ӣ :)
sasl   %)

| | ^ #0 | | C

7. "dovecot+postfix "  +/
DiJey (ok) on 27--10, 23:21 
main.cf

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
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/postfix.pem
smtpd_tls_key_file = /etc/ssl/private/postfix.pem
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 = yourdomain.ru
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = mail.yourdomain.ru, localhost.yourdomain.ru, , localhost
relayhost =
mynetworks = 127.0.0.0/8

mailbox_command = /usr/lib/dovecot/deliver -c /etc/dovecot/dovecot-postfix.conf -n -m "${EXTENSION}"
mailbox_size_limit = 204800000
message_size_limit = 102400
# 10MB 0   !
recipient_delimiter = +
inet_interfaces = all
home_mailbox = Maildir/
smtpd_sasl_auth_enable = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_authenticated_header = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
broken_sasl_auth_clients = yes

smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
# permit_mynetworks,
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 = no
tls_random_source = dev:/dev/urandom
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql-email2email.cf
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1


| | ^ #6 | | C

8. "dovecot+postfix "  +/
DiJey (ok) on 27--10, 23:22 
dovecot.conf


protocols = imap imaps pop3 pop3s
disable_plaintext_auth = no
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_location = maildir:/home/vmail/%d/%n
namespace private {
separator = .
prefix = INBOX.
inbox = yes
}
mail_privileged_group = mail
protocol imap {
}
protocol pop3 {
  pop3_uidl_format = %08Xu%08Xv
}
protocol managesieve {
  sieve=~/.dovecot.sieve
  sieve_storage=~/sieve
}

protocol lda {
        log_path = /home/vmail/dovecot-deliver.log
        auth_socket_path = /var/run/dovecot/auth-master
        postmaster_address = postmaster@yourdomain.ru
        mail_plugins = cmusieve
        global_script_path = /home/vmail/globalsieverc
}
auth default {
  mechanisms = plain login
  passdb pam {
  }
  passdb sql {
    args = /etc/dovecot/dovecot-sql.conf
  }
  userdb passwd {
  }
  userdb static {
      args = uid=5000 gid=5000 home=/home/vmail/%d/%n allow_all_users=yes
  }
  user = root
  socket listen {
    master {
        path = /var/run/dovecot/auth-master
        mode = 0600
        user = vmail
        }
        client {
        path = /var/spool/postfix/private/auth
        mode = 0660
        user = postfix
        group = postfix
    }
  }
}

dict {
}

plugin {
}

| | ^ #6 | | C

9. "dovecot+postfix "  +/
Mutronics email on 28--10, 07:14 
,
| | ^ #8 | | C

10. "dovecot+postfix "  +/
serg email(??) on 17--10, 17:03 
> ,

?:))

| | ^ #9 | | C

11. "dovecot+postfix "  +/
email on 26--12, 11:59 
   debian 6   mail_plugins = sieve ???


>[ ]
>         mode = 0660
>         user = postfix
>         group = postfix
>     }
>   }
> }
> dict {
> }
> plugin {
> }

| | ^ #8 | | C

|

FAQ | | | . | .




:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
:


Created 1996-2022 by Maxim Chirkov
, ,