I am using postfix server as an smtp gateway to exchange server. I
have configured a series of services and filters with postfix. One of
antispam daemons is dspam, content filter. I have configured it to
replace smtp server. Once an email is inspected, it is reinjected for
delivery. I am now looking to use the postfix mail gateway, smart
host, to send mail out. Specifically, I would like to bypass all of
the checks done for incoming mail and tightly control the outbound
traffic. How can I accomplish this?
Below, is my main.cf
config_directory = /etc/postfix
local_recipient_maps =
local_transport = error:local mail delivery is disabled
milter_default_action = tmpfail
milter_protocol = 2
mydestination =
myhostname = smtp.mydomain.com
mynetworks = 127.0.0.0/8 192.168.12.0/24 192.168.17.0/24
myorigin = mydomain.com
nested_header_checks =
parent_domain_matches_subdomains = debug_peer_list, smtpd_access_maps
relay_domains = mydomain.com
relay_recipient_maps = hash:/etc/postfix/relay_recipients
smtpd_client_restrictions = check_client_access
pcre:/etc/postfix/dspam_filter_access
smtpd_hard_error_limit = 5
smtpd_milters = inet:localhost:10040 inet:localhost:8891
smtpd_recipient_restrictions = permit_mynetworks,
reject_unauth_destination, check_recipient_access
pcre:/etc/postfix/dspam_check_aliases, check_sender_access
pcre:/etc/postfix/dspam_check_aliases, check_policy_service
inet:127.0.0.1:2501, check_policy_service inet:127.0.0.1:5525,
reject_unlisted_recipient, check_policy_service inet:127.0.0.1:12525
transport_maps = pcre:/etc/postfix/dspam-retrain.pcre
hash:/etc/postfix/transport
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_transport = lmtp:unix:/tmp/dspam.sock
master.cf
smtp inet n - n - - smtpd
-o content_filter=lmtp:unix:/tmp/dspam.sock
127.0.0.1:10026 inet n - n - - smtpd
-o content_filter=
-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
-o smtpd_helo_restrictions=
-o smtpd_client_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
-o smtpd_authorized_xforward_hosts=127.0.0.0/8
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - n 300 1 qmgr
tlsmgr unix - - - 1000? 1 tlsmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - - - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - - - - smtp
-o smtp_fallback_relay=
showq unix n - - - - showq
error unix - - - - - error
retry unix - - - - - error
discard unix - - - - - discard
#local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - - - - lmtp
anvil unix - - - - 1 anvil
scache unix - - - - 1 scache
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix - n n - 2 pipe
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store
${nexthop} ${user} ${extension}
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}
dspam unix - n n - - pipe
flags=Ru user=dspam argv=/usr/local/bin/dspam --client
--deliver=innocent,spam --user ${recipient} --mail-from=${sender}
dspam-retrain unix - n n - - pipe
flags=Rhq user=dspam argv=/usr/local/bin/dspam --class=${nexthop}
--source=error --user [email protected] --deliver=spam,innocent
--stdout
Thasnks in advance
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Dspam-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspam-user