Postfix main.cf

Konfigurasi postfix + LDAP + GOsa.

# LOCAL PATHNAME INFORMATION
queue_directory = /var/spool/postfix
command_directory = /usr/local/sbin
daemon_directory = /usr/local/libexec/postfix

# QUEUE AND PROCESS OWNERSHIP
mail_owner = postfix
default_privs = nobody

# INTERNET HOST AND DOMAIN NAMES
myhostname = ns.comlabs.itb.ac.id
mydomain = comlabs.itb.ac.id

# SENDING MAIL
myorigin = $myhostname

# RECEIVING MAIL
inet_interfaces = all
mydestination = $myhostname ns.tpb.itb.ac.id ns.comlabs.itb.ac.id localhost

# REJECTING MAIL FOR UNKNOWN LOCAL USERS
local_recipient_maps = unix:passwd.byname $alias_maps $virtual_maps
unknown_local_recipient_reject_code = 450

# TRUST AND RELAY CONTROL
mynetworks_style = host
mynetworks = 167.205.79.4/32, 127.0.0.0/8
relay_domains = $mydestination

# INPUT RATE CONTROL
in_flow_delay = 1s

# ADDRESS REDIRECTION (VIRTUAL DOMAIN)
virtualsource_server_host = 127.0.0.1
virtualsource_server_port = 389
virtualsource_bind = no
virtualsource_timeout = 5
virtualsource_search_base = dc=gonicus,dc=de
virtualsource_query_filter = (&(|(mail=%s)(gosaMailAlternateAddress=%s))(objectClass=gosaAccount))
virtualsource_result_attribute = uid,gosaMailForwardingAddress
virtualsource_lookup_wildcards = no

virtual_maps = ldap:virtualsource

# TRANSPORT MAP
#
# Insert text from sample-transport.cf if you need explicit routing.
default_transport = smtp

# ALIAS DATABASE
alias_maps = hash:/etc/aliases

# DELIVERY TO MAILBOX
local_transport = local
mail_spool_directory = /var/mail
fallback_transport = lmtp:unix:/var/imap/socket/lmtp

# JUNK MAIL CONTROLS
#header_checks = regexp:/usr/local/etc/postfix/header_checks

# FAST ETRN SERVICE
fast_flush_domains = $relay_domains

# SHOW SOFTWARE VERSION OR NOT
smtpd_banner = $myhostname ESMTP $mail_name

# PARALLEL DELIVERY TO THE SAME DESTINATION
local_destination_concurrency_limit = 2
default_destination_concurrency_limit = 20

# DEBUGGING CONTROL
debug_peer_level = 2
debugger_command =
         PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
         xxgdb $daemon_directory/$process_name $process_id & sleep 5

# INSTALL-TIME CONFIGURATION INFORMATION
sendmail_path = /usr/local/sbin/sendmail
newaliases_path = /usr/local/bin/newaliases
mailq_path = /usr/local/bin/mailq
setgid_group = maildrop
manpage_directory = /usr/local/man
sample_directory = /usr/local/etc/postfix
readme_directory = no