5 msgSMTP auth over dovecot with local ip variable
2 msgRestrict relay on one port, but not on another.
3 msgHow to append text to all outgoing mails
5 msgWhat is a Postfix policy server?
4 msgERROR: said: 554 5.7.7 PTR, invalid: cache
1 msgJorge Carminati is out of the office.
2 msgpolicy/content ordering
13 msgPostfix/Mailman problem
4 msgpostfix wildcard for unknown local recipients
2 msgreplacing 'localhost.localdomain' with fqhostna...
4 msgQuick revisit of epoll compile warnings
1 msgPostix official release 2.4.6, 2.3.13, 2.2.12 a...
5 msgtimed out while sending end of data
3 msgMailman/postfix problem help request (fwd)
2 msgmail redirected to mailman list considered as g...

Postfix restriction classes question.
\ Justin Piszcz (21 Oct 2007)
. \ mouss (21 Oct 2007)
. . \ mouss (21 Oct 2007)

7 msgReply-To
2 msgFrom my IDS logs
6 msgweird mynetworks problem
2 msglocal_recipient_maps with cyrus
Subject:Postfix restriction classes question.
Group:Postfix-users
From:Justin Piszcz
Date:21 Oct 2007


 
In the following example on:
http://www.postfix.org/RESTRICTION_CLASS_README.html

Example:

/etc/postfix/main.cf:
smtpd_restriction_classes = restrictive, permissive
# With Postfix < 2.3 specify reject_unknown_client.
restrictive = reject_unknown_sender_domain reject_unknown_client_hostname ...
permissive = permit

smtpd_recipient_restrictions =
permit_mynetworks
reject_unauth_destination
check_recipient_access hash:/etc/postfix/recipient_access

/etc/postfix/recipient_access:
joe permissive
jane restrictive


--

Is it also possible to do this with header checks?

For example if the incoming connection uses a certain X-Mailer, is I would
like it to be subject to a different set of rules.

Example:

header_checks.pcre:
==================================================================
/^X-Mailer: XYZ Software/ dynamic_checks


main.cf:
==================================================================
smtpd_restriction_classes =
dynamic_checks

dynamic_checks =
check_policy_service inet:127.0.0.1:60000


If this is not the right idea, in what way could I accomplish this task?

Oct 21 06:11:32 box postfix/cleanup[10052]: warning: unknown command in
mime_header_checks map: dynamic_checks

Justin.


© 2004-2008 readlist.com