[olug] PostFix Dovecot issues

Sam Flint harmonicnm7h at gmail.com
Sat Apr 27 21:01:15 UTC 2013


Well, i looked, and i have no idea why, but postfix still will not let me
send or recieve email.

Postfix main.cf:
myhostname = mail.flintfam.org
mydomain = flintfam.org
myorigin = $mydomain
inet_interfaces = all
inet_protocols = ipv4, ipv6
mydestination = $myhostname, localhost, localhost.localdomain
#mynetworks = 127.0.0.0/8
mynetworks = all
relay_domains = .com .org .net .info $mydestination
home_mailbox = Maildir/
message_size_limit = 30720000
# virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf,
mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_type = dovecot
smtpd_sasl_path = /home/vmail/auth
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_mynetworks,
permit_sasl_authenticated, reject_unauth_destination, permit
smtpd_use_tls = yes
smtpd_tls_cert_file = /etc/pki/dovecot/certs/dovecot.pem
smtpd_tls_key_file = /etc/pki/dovecot/private/dovecot.pem
virtual_create_maildirsize = yes
virtual_maildir_extended = yes
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps
$virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains
$relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps
$recipient_canonical_maps $relocated_maps $transport_maps $mynetworks
$virtual_mailbox_limit_maps
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1

dovecot.conf:
# 2.0.9: /etc/dovecot/dovecot.conf
# OS: Linux 3.8.4-linode50 i686 CentOS release 6.2 (Final) ext3
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_location = maildir:/home/vmail/%d/%n/Maildir
namespace {
  inbox = yes
  location =
  prefix = INBOX.
  separator = .
  type = private
}
passdb {
  args = /etc/dovecot/dovecot-mysql.conf
  driver = sql
}
protocols = imap pop3
service auth {
  unix_listener /home/vmail/auth {
    group = postfix
    mode = 0777
    user = postfix
  }
#  unix_listener auth-master {
#    mode = 0600
#    user = vmail
#  }
  user = root
}
ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
ssl_key = </etc/pki/dovecot/private/dovecot.pem
userdb {
  args = uid=5000 gid=5000 home=/home/vmail/%d/%n allow_all_users=yes
  driver = static
}
protocol lda {
  auth_socket_path = /var/run/dovecot/auth-master
  log_path = /home/vmail/dovecot-deliver.log
  postmaster_address = postmaster at flintfam.org
}
protocol pop3 {
  pop3_uidl_format = %08Xu%08Xv
}


Sam

-- 
Sam Flint
flintfam.org/~swflint



More information about the OLUG mailing list