| |||||||||||||||||||||||||||||||
|
> We want to accept email with a specific envelope sender from only a > specific ip range and then deliver it, bypassing our spam filters. > > I've not been able to locate a good solution for this on our mx servers. > SPF is not a good choice, for example, since the group sending can't > seem to handle it[or even setup mx records that match their sending > domain]. I also don't want to just trust that the sending domain would > not be spoofed. > > The current plan is to have them relay through a separate machine as a > trusted relay using a custom mail domain that remaps the recipient into > our normal mail domain using canonical. > > Is there a better way? Can we accept email from @some.domain.com only > for 1.2.3.0/24 using normal postfix configurations? [ie. no custom > policy server] > use restriction classes. smtpd_restriction_class = whitelist_from skip_filter smtpd_recipient_restrictions = ... reject_unauth_destination ... check_sender_access hash:/etc/postfix/sender_acl ... whitelist_from = check_client_access cidr:/etc/postfix/client_from skip_filter = check_client_access pcre:/etc/postfix/filter_trusted permit == sender_acl foo whitelist_from donotwhitelist DUNNO example.net whitelist_from == client_from 1.2.3.0/24 skip_filter == filter_trusted /./ FILTER scan:[127.0.0.1]:10586 where 10586 is the port for virus scanning only (or use 10025 to skip any filtering, ... at your own risk).
| ||||||||||||||||||||||||||||||
© 2004-2008 readlist.com