[Dovecot] virtual users

Amira Othman a.othman at cairosource.com
Mon Jul 4 14:58:34 EEST 2011


Hello All;

Iam using dovecot-1.0.7-7.el5 and postfix-2.3.3-2.3.el5_6 on centos 5.6 I
want to configure mail server without system account .I can send using the
virtual account but can't receive and I have this in log file

relay=local, delay=0.02, delays=0.02/0/0/0, dsn=5.1.1, status=bounced
(unknown user: "hoda")

 

my main.cf is

myhostname = mail.domain.com             

mydomain = mydomain.com

myorigin = $mydomain

inet_interfaces = all

mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain

mynetworks = *.*.*.*/24, 127.0.0.0/8

relay_domains =

home_mailbox = Maildir/

#home_mailbox = Mailbox/

alias_maps = hash:/etc/aliases

alias_database = hash:/etc/aliases

mail_spool_directory = /var/spool/mail

#SASL configuration

smtpd_sasl_auth_enable = yes

broken_sasl_auth_clients = yes

smtpd_sasl_type = dovecot

smtpd_sasl_path = private/auth

smtpd_sasl_security_options = noanonymous

#permit SASL suthentication is added

smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated
reject_unauth_destination

smtpd_sender_restrictions = reject_unknown_sender_domain

smtpd_sasl_local_domain =

smtpd_sasl_authenticated_header = yes

smtpd_tls_auth_only = no

smtp_use_tls = yes

smtpd_use_tls = yes

smtp_tls_note_starttls_offer = yes

smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key

smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt

smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem

smtpd_tls_loglevel = 1

smtpd_tls_received_header = yes

smtpd_tls_session_cache_timeout = 3600s

tls_random_source = dev:/dev/urandom

mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME

#Hide the login banner

smtpd_banner = $myhostname ESMTP

#Disable verify function and using of TLS transport encryption between
server and client

disable_vrfy_command = yes

virtual_mailbox_base = /home/vmail/

virtual_mailbox_maps = hash:/etc/postfix/virtual

virtual_uid_maps = static:511

virtual_gid_maps = static:512

virtual_alias_maps = hash:/etc/postfix/virtual

sender_bcc_maps = hash:/etc/postfix/bcc

 

my dovecot.conf if

 

## Dovecot configuration file

protocols = imap imaps pop3 pop3s

 

disable_plaintext_auth = no

 

shutdown_clients = yes

 

##

## Logging

##

 

log_path = /var/log/dovecot.log

 

 

##

## SSL settings

##

 

##

## Login processes

##

 

 

mail_location = maildir:~/Maildir

##

## IMAP specific settings

##

 

protocol imap {

 

  # list of plugins to load.

  mail_plugins = quota imap_quota

  #mail_plugin_dir = /usr/lib/dovecot/imap

  # The list is space-separated.

  #imap_client_workarounds = outlook-idle

imap_client_workarounds = delay-newmail outlook-idle netscape-eoh

}

 

##

## POP3 specific settings

##

 

protocol pop3 {

 

pop3_uidl_format = %08Xu%08Xv

# Required on x86_64 kernels

login_process_size = 64

  # list of plugins to load.

  mail_plugins = quota

  #pop3_client_workarounds =

pop3_client_workarounds = outlook-no-nuls oe-ns-eoh

}

 

##

## LDA specific settings

##

 

protocol lda {

  # Address to use when sending rejection mails.

  postmaster_address = postmaster at example.com

 

}

 

##

## Authentication processes

##

 

# Executable location

#auth_krb5_keytab =

 

auth default {

  # NOTE: See also disable_plaintext_auth setting.

  mechanisms = plain login

  # authentication to actually work. <doc/wiki/PasswordDatabase.PAM.txt>

  passdb pam {

  }

 

  passdb passwd-file {

    # Path for passwd-file

    args = /etc/dovecot/passwd

  }

  userdb passwd {

  }

 

  userdb static {

      args = uid=511 gid=512 home=/home/vmail/%d/%n

  }

  user = root

 

  socket listen {

   client {

      path =  /var/spool/postfix/private/auth

      mode = 0660

        user = postfix

        group = postfix

    }

  }

}

 

 

dict {

  #quota = mysql:/etc/dovecot-dict-quota.conf

}

 

##

## Plugin settings

##

 

plugin {

}

 

 

 


Amira Othman

Server Administrator

 <http://www.cairosource.com/> www.cairosource.com

 



6 EL Nil EL Abyad, Mohandiseen 

Cairo, Egypt

Direct:     +2 02 3303 7175
Mobile:   +2 012 220 4165

 

The information transmitted is intended solely for the individual or entity
to which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of or
taking action in reliance upon this information by persons or entities other
than the intended recipient is prohibited. If you have received this email
in error please contact the sender and delete the material from any
computer.

 

 

 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 2131 bytes
Desc: not available
URL: <http://dovecot.org/pipermail/dovecot/attachments/20110704/2b29f124/attachment-0001.jpg>


More information about the dovecot mailing list