View Single Post
  #3  
Old 1st August 2011, 18:12
counterpoint counterpoint is offline
Junior Member
 
Join Date: Jan 2010
Posts: 21
Thanks: 1
Thanked 5 Times in 5 Posts
Default

Code:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
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/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.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
smtp_tls_loglevel = 2

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = mail.webhosting-ace.net
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = localhost.webhosting-ace.net, localhost
relayhost = 
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
maildrop_destination_recipient_limit = 1
virtual_mailbox_base = /var/vmail
virtual_uid_maps = static:1003
virtual_gid_maps = static:1003
virtual_mailbox_domains = mysql:/etc/postfix/virtual_domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/virtual_mailboxes.cf
virtual_alias_maps = mysql:/etc/postfix/virtual_forwardings.cf
mailbox_command = 
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
smtpd_sasl_local_domain = 
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtp_tls_note_starttls_offer = yes
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
home_mailbox = Maildir/
Wasn't sure which file you meant by "Courier config". The pop3d.cnf file is:

Code:
RANDFILE = /usr/lib/courier/pop3d.rand

[ req ]
default_bits = 1024
encrypt_key = yes
distinguished_name = req_dn
x509_extensions = cert_type
prompt = no

[ req_dn ]
C=US
ST=NY
L=New York
O=Courier Mail Server
OU=Automatically-generated POP3 SSL key
CN=webhosting-ace.net
emailAddress=postmaster@example.com


[ cert_type ]
nsCertType = server
And the authmysqlrc file is:

Code:
MYSQL_SERVER           127.0.0.1
MYSQL_USERNAME         vimbadmin
MYSQL_PASSWORD         ??????????
MYSQL_SOCKET           /var/run/mysqld/mysqld.sock
MYSQL_OPT              0
MYSQL_DATABASE         vimbadmin
MYSQL_USER_TABLE       mailbox
MYSQL_CLEAR_PWFIELD    password
# if you use cleartext passwords - or -
# MYSQL_CRYPT_PWFIELD  password   
# if you use encrypted passwords
MYSQL_UID_FIELD        '1003'
MYSQL_GID_FIELD        '1003'
MYSQL_LOGIN_FIELD      username
MYSQL_HOME_FIELD       '/var/vmail/' as home
MYSQL_NAME_FIELD       name
MYSQL_MAILDIR_FIELD    maildir
MYSQL_QUOTA_FIELD      concat(quota,'S')
MYSQL_WHERE_CLAUSE     active=1
Reply With Quote