| 1 | # |
|---|
| 2 | # ispCP ω (OMEGA) a Virtual Hosting Control System |
|---|
| 3 | # |
|---|
| 4 | # @copyright 2001-2006 by moleSoftware GmbH |
|---|
| 5 | # @copyright 2006-2008 by ispCP | http://isp-control.net |
|---|
| 6 | # @version SVN: $Id$ |
|---|
| 7 | # @link http://isp-control.net |
|---|
| 8 | # @author ispCP Team |
|---|
| 9 | # |
|---|
| 10 | # @license |
|---|
| 11 | # This program is free software; you can redistribute it and/or modify it under |
|---|
| 12 | # the terms of the MPL General Public License as published by the Free Software |
|---|
| 13 | # Foundation; either version 1.1 of the License, or (at your option) any later |
|---|
| 14 | # version. |
|---|
| 15 | # You should have received a copy of the MPL Mozilla Public License along with |
|---|
| 16 | # this program; if not, write to the Open Source Initiative (OSI) |
|---|
| 17 | # http://opensource.org | osi@opensource.org |
|---|
| 18 | # |
|---|
| 19 | ################################################################################ |
|---|
| 20 | |
|---|
| 21 | # Postfix directory settings; These are critical for normal Postfix MTA functionallity |
|---|
| 22 | command_directory = /usr/sbin |
|---|
| 23 | daemon_directory = /usr/lib/postfix |
|---|
| 24 | |
|---|
| 25 | # Some common configuration parameters |
|---|
| 26 | inet_interfaces = all |
|---|
| 27 | mynetworks_style = host |
|---|
| 28 | |
|---|
| 29 | myhostname = {MTA_HOSTNAME} |
|---|
| 30 | mydomain = {MTA_LOCAL_DOMAIN} |
|---|
| 31 | myorigin = $myhostname |
|---|
| 32 | |
|---|
| 33 | smtpd_banner = $myhostname ESMTP ispCP {MTA_VERSION} Managed |
|---|
| 34 | setgid_group = postdrop |
|---|
| 35 | |
|---|
| 36 | # Receiving messages parameters |
|---|
| 37 | mydestination = $myhostname, $mydomain |
|---|
| 38 | append_dot_mydomain = no |
|---|
| 39 | append_at_myorigin = yes |
|---|
| 40 | local_transport = local |
|---|
| 41 | virtual_transport = virtual |
|---|
| 42 | transport_maps = hash:{MTA_TRANSPORT_HASH} |
|---|
| 43 | alias_maps = hash:{MTA_LOCAL_ALIAS_HASH} |
|---|
| 44 | alias_database = hash:{MTA_LOCAL_ALIAS_HASH} |
|---|
| 45 | |
|---|
| 46 | # Delivering local messages parameters |
|---|
| 47 | mail_spool_directory = {MTA_LOCAL_MAIL_DIR} |
|---|
| 48 | |
|---|
| 49 | # Mailboxquota |
|---|
| 50 | # => 0 for unlimited |
|---|
| 51 | # => 104857600 for 100 MB |
|---|
| 52 | mailbox_size_limit = 0 |
|---|
| 53 | mailbox_command = procmail -a "$EXTENSION" |
|---|
| 54 | |
|---|
| 55 | # Message size limit |
|---|
| 56 | # => 0 for unlimited |
|---|
| 57 | # => 104857600 for 100 MB |
|---|
| 58 | message_size_limit = 0 |
|---|
| 59 | |
|---|
| 60 | biff = no |
|---|
| 61 | recipient_delimiter = + |
|---|
| 62 | |
|---|
| 63 | local_destination_recipient_limit = 1 |
|---|
| 64 | local_recipient_maps = unix:passwd.byname $alias_database |
|---|
| 65 | |
|---|
| 66 | # ispCP Autoresponder parameters |
|---|
| 67 | ispcp-arpl_destination_recipient_limit = 1 |
|---|
| 68 | |
|---|
| 69 | # Delivering virtual messages parameters |
|---|
| 70 | virtual_mailbox_base = {MTA_VIRTUAL_MAIL_DIR} |
|---|
| 71 | virtual_mailbox_limit = 0 |
|---|
| 72 | |
|---|
| 73 | virtual_mailbox_domains = hash:{MTA_VIRTUAL_DMN_HASH} |
|---|
| 74 | virtual_mailbox_maps = hash:{MTA_VIRTUAL_MAILBOX_HASH} |
|---|
| 75 | |
|---|
| 76 | virtual_alias_maps = hash:{MTA_VIRTUAL_ALIAS_HASH} |
|---|
| 77 | |
|---|
| 78 | virtual_minimum_uid = {MTA_MAILBOX_MIN_UID} |
|---|
| 79 | virtual_uid_maps = static:{MTA_MAILBOX_UID} |
|---|
| 80 | virtual_gid_maps = static:{MTA_MAILBOX_GID} |
|---|
| 81 | |
|---|
| 82 | # SASL paramters |
|---|
| 83 | smtpd_sasl_auth_enable = yes |
|---|
| 84 | smtpd_sasl_security_options = noanonymous |
|---|
| 85 | smtpd_sasl_local_domain = |
|---|
| 86 | broken_sasl_auth_clients = yes |
|---|
| 87 | |
|---|
| 88 | smtpd_helo_required = yes |
|---|
| 89 | |
|---|
| 90 | smtpd_helo_restrictions = permit_mynetworks, |
|---|
| 91 | permit_sasl_authenticated, |
|---|
| 92 | reject_invalid_helo_hostname, |
|---|
| 93 | reject_non_fqdn_helo_hostname |
|---|
| 94 | |
|---|
| 95 | smtpd_sender_restrictions = reject_non_fqdn_sender, |
|---|
| 96 | reject_unknown_sender_domain, |
|---|
| 97 | permit_mynetworks, |
|---|
| 98 | permit_sasl_authenticated |
|---|
| 99 | |
|---|
| 100 | smtpd_recipient_restrictions = reject_non_fqdn_recipient, |
|---|
| 101 | reject_unknown_recipient_domain, |
|---|
| 102 | permit_mynetworks, |
|---|
| 103 | permit_sasl_authenticated, |
|---|
| 104 | reject_unauth_destination, |
|---|
| 105 | reject_unlisted_recipient, |
|---|
| 106 | check_policy_service inet:127.0.0.1:12525, |
|---|
| 107 | check_policy_service inet:127.0.0.1:60000, |
|---|
| 108 | permit |
|---|
| 109 | |
|---|
| 110 | smtpd_data_restrictions = reject_multi_recipient_bounce, |
|---|
| 111 | reject_unauth_pipelining |
|---|
| 112 | |
|---|
| 113 | # TLS parameters; activate, if avaible/used |
|---|
| 114 | #smtpd_use_tls = yes |
|---|
| 115 | #smtpd_tls_loglevel = 2 |
|---|
| 116 | #smtpd_tls_cert_file = /etc/postfix/cert.pem |
|---|
| 117 | #smtpd_tls_key_file = /etc/postfix/privkey.pem |
|---|
| 118 | #smtpd_tls_auth_only = no |
|---|
| 119 | #smtpd_tls_received_header = yes |
|---|
| 120 | |
|---|
| 121 | # AMaViS parameters; activate, if available/used |
|---|
| 122 | #content_filter = amavis:[127.0.0.1]:10024 |
|---|
| 123 | |
|---|
| 124 | # Quota support; activate, if available/used |
|---|
| 125 | #virtual_create_maildirsize = yes |
|---|
| 126 | #virtual_mailbox_extended = yes |
|---|
| 127 | #virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.cf |
|---|
| 128 | #virtual_mailbox_limit_override = yes |
|---|
| 129 | #virtual_maildir_limit_message = "The user you're trying to reach is over mailbox quota." |
|---|
| 130 | #virtual_overquota_bounce = yes |
|---|