Okay Kees
Dan ga ik de manual maar eerst lezen van Maia Mailguard
Met postfix heb ik wel gewerkt maar je hebt zoveel instellingen alles is mogelijk. Je hebt toevallig geen voorbeeld config van de main.cf file
Dit is in ieder geval de mijne
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
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
readme_directory = no
# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
myhostname = mail.darrow.nl
mydestination = ubuntu, localhost.localdomain, localhost, darrow.nl, virgilia.nl, virgillia.nl
relay_domains = darrow.nl, virgilia.nl, virgillia.nl
#relay_recipient_maps = hash:/etc/postfix/relay_recipients
transport_maps = hash:/etc/postfix/transport
virtual_alias_domains =
virtual_alias_maps = hash:/etc/postfix/virtual
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
relayhost = smtp.telfort.nl
mynetworks = 127.0.0.0/8 192.168.1.0/24 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
home_mailbox = Maildir/
mailbox_command = /usr/bin/procmail
# Add spam protection with (1) *client* restrictions
#smtpd_client_restrictions = hash:/etc/postfix/client_restrictions
# Add spam protection with (2) *Helo* restrictions
smtpd_delay_reject = yes
smtpd_helo_required = yes
disable_vrfy_command = yes
smtpd_helo_restrictions =
permit_mynetworks,
check_helo_access hash:/etc/postfix/helo_access,
permit
# Add spam protection with (3) *Sender* restrictions
#smtpd_sender_restrictions =
# check_recipient_access hash:/etc/postfix/access-inbound
# permit_sasl_authenticated,
# permit_mynetworks,
# reject_non_fqdn_sender,
# reject_unknown_sender_domain,
# permit
# Add spam protection with (4) *Recipient* restrictions
smtpd_recipient_restrictions =
permit_mynetworks,
reject_invalid_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unknown_sender_domain,
reject_unknown_recipient_domain,
reject_unauth_destination,
check_sender_access hash:/etc/postfix/sender_access,
check_client_access hash:/etc/postfix/client_access,
reject_non_fqdn_hostname,
reject_rhsbl_client blackhole.securitysage.com,
reject_rhsbl_sender blackhole.securitysage.com,
reject_rbl_client blackholes.easynet.nl,
reject_rbl_client cbl.abuseat.org,
reject_rbl_client proxies.blackholes.wirehub.net,
reject_rbl_client bl.spamcop.net,
reject_rbl_client dnsbl.njabl.org,
reject_rbl_client list.dsbl.org,
reject_rbl_client multihop.dsbl.org,
check_policy_service inet:127.0.0.1:60000,
permit
#check_policy_service unix:private/spfpolicy
#check_policy_service inet:127.0.0.1:10023
# Add spam protection with (5) *Data* restrictions
smtpd_data_restrictions =
reject_unauth_pipelining,
permit
En dit is mijn transport map file:
exchange.darrow.nl smtp:192.168.1.70
ubuntu.darrow.nl smtp:192.168.1.60 #mijn postfix server
virgilia.nl smtp:192.168.1.70
virgillia.nl smtp:192.168.1.70
Ik wilde het zo instellen in een procmail bestand dat spam mail forward naar ubuntu.darrow.nl en spam met een score <5 door wil sturen naar exchange.darrow.nl