--- /etc/postfix/main.cf	Wed Dec 29 07:34:45 2004
+++ /etc/postfix/main.cf	Wed Dec 29 07:42:35 2004
@@ -88,7 +88,7 @@
 # myorigin also specifies the default domain name that is appended
 # to recipient addresses that have no @domain part.
 #
-#myorigin = $myhostname
+myorigin = $myhostname
 #myorigin = $mydomain
 
 # RECEIVING MAIL
@@ -150,7 +150,7 @@
 #
 # See also below, section "REJECTING MAIL FOR UNKNOWN LOCAL USERS".
 #
-#mydestination = $myhostname, localhost.$mydomain, localhost
+mydestination = $myhostname, localhost.$mydomain, localhost
 #mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
 #mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
 #	mail.$mydomain, www.$mydomain, ftp.$mydomain
@@ -198,6 +198,9 @@
 #local_recipient_maps = proxy:unix:passwd.byname $alias_maps
 #local_recipient_maps =
 
+local_recpipient_maps = 
+
+
 # The unknown_local_recipient_reject_code specifies the SMTP server
 # response code when a recipient domain matches $mydestination or
 # ${proxy,inet}_interfaces, while $local_recipient_maps is non-empty
@@ -239,6 +242,7 @@
 #mynetworks_style = subnet
 #mynetworks_style = host
 
+
 # Alternatively, you can specify the mynetworks list by hand, in
 # which case Postfix ignores the mynetworks_style setting.
 #
@@ -254,6 +258,7 @@
 #mynetworks = $config_directory/mynetworks
 #mynetworks = hash:/etc/postfix/network_table
 
+mynetworks = 10.0.0.0/8, 127.0.0.0/8
 # The relay_domains parameter restricts what destinations this system will
 # relay mail to.  See the smtpd_recipient_restrictions description in
 # postconf(5) for detailed information.
@@ -284,6 +289,9 @@
 #
 #relay_domains = $mydestination
 
+relay_domains = $mydestination, /etc/postfix/relay_domains
+
+
 # INTERNET OR INTRANET
 
 # The relayhost parameter specifies the default host to send mail to
@@ -629,3 +637,22 @@
 # readme_directory: The location of the Postfix README files.
 #
 readme_directory = /usr/local/share/doc/postfix/readme
+
+
+biff = no
+empty_address_recipient = MAILER-DAEMON
+queue_minfree = 120000000
+message_size_limit = 80000000
+mailbox_size_limit = 1000000000
+
+smtpd_banner = $myhostname ESMTP
+
+transport_maps = hash:/etc/postfix/transport
+local_transport = local
+smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination, reject_non_fqdn_recipient, reject_rbl_client sbl-xbl.spamhaus.org
+
+
+notify_classes = protocol,resource,software
+alias_database = hash:/etc/mail/aliases
+alias_maps = hash:/etc/mail/aliases
+
--- /etc/postfix/master.cf	Wed Dec 29 07:34:45 2004
+++ /etc/postfix/master.cf	Wed Dec 29 07:48:03 2004
@@ -77,7 +77,28 @@
 # service type  private unpriv  chroot  wakeup  maxproc command + args
 #               (yes)   (yes)   (yes)   (never) (100)
 # ==========================================================================
-smtp      inet  n       -       -       -       -       smtpd
+
+# This is the before-filter smtpd...it passes content to amavisd on port 10024
+smtp      inet  n       -       -       -       8       smtpd
+        -o smtpd_proxy_filter=127.0.0.1:10024
+        -o smtpd_client_connection_count_limit=4
+
+# This is the after-filter smtpd, it receives mail from amavisd to port 10025
+127.0.0.1:10025    inet  n       -       -       -       -       smtpd
+        -o smtpd_authorized_xforward_hosts=127.0.0.0/8
+        -o smtpd_client_restrictions=
+        -o smtpd_helo_restrictions=
+        -o smtpd_sender_restrictions=
+        -o smtpd_recipient_restrictions=permit_mynetworks,reject
+        -o smtpd_data_restrictions=
+        -o receive_override_options=no_unknown_recipient_checks
+
+
+# this is the line to run postfix without amavisd-new/spamassassin
+#smtp      inet  n       -       -       -       -       smtpd
+
+
+
 #smtps    inet  n       -       -       -       -       smtpd
 #  -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
 #submission   inet    n       -       n       -       -       smtpd

