/etc/postfix/virtual josh@anarchy.co.nz josh root@anarchy.co.nz josh -------------------------------------------------------------------------------- /etc/postfix/main.cf # See /usr/share/postfix/main.cf.dist for a commented, more complete version smtpd_banner = SMTP 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 myhostname = mail.anarchy.co.nz alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = anarchy.co.nz mydestination = anarchy.co.nz, localhost.localdomain, localhost relayhost = mynetworks = 127.0.0.0/8 192.168.0.0/24 58.28.158.102 58.28.64.27 192.168.1.0/24 mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all mynetworks_style = class virtual_maps = hash:/etc/postfix/virtual virtual_mailbox_maps = hash:/etc/postfix/virtual home_mailbox = Maildir/ smtpd_tls_cert_file=/etc/ssl/certs/postfix.cert smtpd_tls_key_file=/etc/ssl/certs/postfix.key smtpd_use_tls=yes smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous smtpd_sasl_local_domain = $myhostname smtpd_sasl_application_name = smtpd broken_sasl_auth_clients = yes smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, check_relay_domains #adding the postgrey policy: #smtpd_recipient_restrictions = reject_unauth_pipelining, permit_mynetworks, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_unauth_destin$