All pastes #908881 Raw Edit

Anonymous

public text v1 · immutable
·published 2008-02-18 20:05 UTC
rendered paste body

queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
default_privs = nobody
setgid_group = postdrop

message_size_limit = 20480000
myhostname = mail.example.com
mydomain = example.com
myorigin = $myhostname
inet_interfaces = all
mydestination = $myhostname localhost.$mydomain 
# mydestination = $myhostname.$mydomain, localhost
mynetworks_style = subnet
mynetworks = 69.30.124.192/28, 172.16.0.0/16, 127.0.0.0/8, 67.40.1.227/32, 70.57.67.13/32
masquerade_domains = !mailer.$mydomain, $mydomain

# this is a regex map basically used to make postfix write the message's subject line to the maillog.
#header_checks = regexp:/etc/postfix/header_checks

smtpd_discard_ehlo_keyword_address_maps = hash:/etc/postfix/retarded_servers_map

unknown_local_recipient_reject_code = 550
in_flow_delay = 1s
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
debug_peer_level = 2
debugger_command =
         PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
debug_peer_list = 38.100.211.72, 69.30.124.200, 207.195.195.18, yahoo.com

data_directory = /var/lib/postfix
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
html_directory = no
manpage_directory = /usr/local/man
sample_directory = /etc/postfix
readme_directory = /root/mailsystem_install-docs/postfix/readmes

alias_maps = hash:/etc/postfix/aliases
#virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql/mysql-virtual-mailbox-domains.cf
#virtual_uid_maps = static:503
#virtual_gid_maps = static:503
virtual_mailbox_domains = hash:/etc/postfix/vdomains
virtual_alias_maps = hash:/etc/postfix/valiases,hash:/etc/postfix/email2email_map
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1

# SASL authentication handled by dovecot
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes

#recipient/sender/client checks:
disable_vrfy_command = yes
smtpd_recipient_restrictions = 
        check_recipient_access hash:/etc/postfix/spam_lovers_map
        permit_mynetworks,
        permit_sasl_authenticated, 
        check_client_access hash:/etc/postfix/whitelisted_senders_map
        reject_unauth_destination,
        #reject_invalid_hostname,
        #reject_non_fqdn_hostname,
        #reject_non_fqdn_sender,
        #reject_non_fqdn_recipient,
        #reject_unknown_sender_domain,
        #reject_unknown_recipient_domain,
        #reject_unauth_pipelining,
        reject_rbl_client zombie.dnsbl.sorbs.net,
        reject_rbl_client list.dsbl.org,
        reject_rbl_client sbl.spamhaus.org,
        permit
smtpd_sender_restrictions =
        reject_rhsbl_sender dsn.rfc-ignorant.org,
        reject_non_fqdn_sender
smtpd_client_restrictions =
        check_client_access hash:/etc/postfix/access
        permit

#if the message is accepted for delivery, run it through amavis for virus/spam filtration(it will come back on port 10025):
content_filter = smtp-amavis:[127.0.0.1]:10024

# TLS (SSL) section:
smtpd_use_tls = yes
smtpd_tls_cert_file = /etc/ssl/certs/dovecot.pem
smtpd_tls_key_file = /etc/ssl/private/dovecot.pem
smtpd_tls_security_level = may
smtpd_tls_received_header = no
smtpd_tls_loglevel = 0
smtpd_tls_auth_only = no
tls_random_source = dev:/dev/urandom

--------

/etc/postfix/valiases is in the form of:
name@example.com           name_last@example.com

/etc/postfix/vdomains is like:
example.com                example.com
elpmaxe.com                elpmaxe.com
(where the rhs should resolve to 1 anyway)