postconf -n
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
disable_vrfy_command = yes
inet_interfaces = all
mydestination = mail.mondomaine.com, localhost, localhost.localdomain
mydomain = mail.mondomaine.com
myhostname = mail.mondomaine.com
mynetworks = 127.0.0.0/8 IP.IP.IP.IP
relayhost =
smtpd_client_restrictions = reject_unknown_client, permit_mynetworks
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination, reject_unknown_recipient_domain, reject_non_fqdn_recipient
smtpd_sender_restrictions = permit_mynetworks, reject_unknown_sender_domain, warn_if_reject reject_unverified_sender
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_aliases.cf, mysql:/etc/postfix/mysql-virtual_aliases_mailbox.cf
virtual_gid_maps = static:5000
virtual_mailbox_base = /var/spool/vmail/
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_uid_maps = static:5000
Pour la conf de courier, tu veux parlé du authdaemonrc et authmysqlrc
/etc/courier/authdaemonrc
[code]##VERSION: $Id: authdaemonrc.in,v 1.8 2001/10/07 02:16:22 mrsam Exp $
Copyright 2000-2001 Double Precision, Inc. See COPYING for
distribution information.
authdaemonrc created from authdaemonrc.dist by sysconftool
Do not alter lines that begin with ##, they are used when upgrading
this configuration.
This file configures authdaemond, the resident authentication daemon.
Comments in this file are ignored. Although this file is intended to
be sourced as a shell script, authdaemond parses it manually, so
the acceptable syntax is a bit limited. Multiline variable contents,
with the \ continuation character, are not allowed. Everything must
fit on one line. Do not use any additional whitespace for indentation,
or anything else.
##NAME: authmodulelist:0
The authentication modules that are linked into authdaemond. The
default list is installed. You may selectively disable modules simply
by removing them from the following list. The available modules you
can use are: authcustom authcram authuserdb authldap authpgsql authmysql authpam
authmodulelist=“authmysql”
##NAME: authmodulelistorig:1
This setting is used by Courier’s webadmin module, and should be left
alone
authmodulelistorig=“authcustom authcram authuserdb authldap authpgsql authmysql authpam”
##NAME: daemons:0
The number of daemon processes that are started. authdaemon is typically
installed where authentication modules are relatively expensive: such
as authldap, or authmysql, so it’s better to have a number of them running.
PLEASE NOTE: Some platforms may experience a problem if there’s more than
one daemon. Specifically, SystemV derived platforms that use TLI with
socket emulation. I’m suspicious of TLI’s ability to handle multiple
processes accepting connections on the same filesystem domain socket.
You may need to increase daemons if as your system load increases. Symptoms
include sporadic authentication failures. If you start getting
authentication failures, increase daemons. However, the default of 5
SHOULD be sufficient. Bumping up daemon count is only a short-term
solution. The permanent solution is to add more resources: RAM, faster
disks, faster CPUs…
daemons=5
##NAME: version:0
When you have multiple versions of authdaemond.* installed, authdaemond
just picks the first one it finds. Set “version” to override that.
For example: version=authdaemond.plain
version=""
##NAME: authdaemonvar:0
authdaemonvar is here, but is not used directly by authdaemond. It’s
used by various configuration and build scripts, so don’t touch it!
used by various configuration and build scripts, so don’t touch it!
authdaemonvar=/var/run/courier/authdaemon[/code]
/etc/courier/authmysqlrc
[code]MYSQL_SERVER localhost
MYSQL_USERNAME postfix
MYSQL_PASSWORD Mdp
MYSQL_PORT 0
MYSQL_OPT 0
MYSQL_DATABASE postfix
MYSQL_USER_TABLE mailbox
MYSQL_CRYPT_PWFIELD password
MYSQL_UID_FIELD 5000
MYSQL_GID_FIELD 5000
MYSQL_LOGIN_FIELD email
MYSQL_HOME_FIELD “/var/spool/vmail/”
MYSQL_MAILDIR_FIELD CONCAT(SUBSTRING_INDEX(email,’@’,-1),’/’,SUBSTRING_INDEX(email,’@’,1),’/’)
MYSQL_QUOTA_FIELD quota
[/code]