11 msg(noob-newbie here) Configuring postfix to be us...
5 msg(No Subject)
3 msgWhen is 'for <recipient>'present in header?
2 msgclient does not detect mail
11 msgEmpty MAIL FROM
3 msgChange format of emails in active directory

Logging a message from within a restriction list
\ Julian Cowley (16 Apr 2007)
. \ Noel Jones (16 Apr 2007)
. . \ Victor Duchovni (16 Apr 2007)

4 msgmailbox_transport_maps lookup key
10 msgmailbox_transport_maps problem
5 msgDefault value of unknown_address_reject_code
9 msgIssue with using LDAP for transport maps
4 msglimit max. used bandwith?
2 msgmaximum number of smtpd_restriction_classes
5 msg'transport_maps' getting ignored?
3 msgServer configuration problem
6 msgsmtpd_sasl_auth_enable is true, but SASL suppor...
3 msgMail to local domains
2 msgnonexistent virtual account received
13 msgHow to make postfix use one IP for receiving an...
3 msgldap search fails
Subject:Logging a message from within a restriction list
Group:Postfix-users
From:Julian Cowley
Date:16 Apr 2007


 
Hello llst,

I want to be able to log a message whenever control reaches a certain
point within a restriction class. Currently I have this:

smtpd_restriction_classes =
first_restriction,
second_restriction,
...

first_restriction =
check_client_access regexp:/etc/postfix/mesg-first-restriction
permit

/etc/postfix/mesg-short-greet-delay:

// WARN blah blah blah

This works, but it's pretty cumbersome. I've tried other approaches,
but they don't work:

first_restriction =
check_client_access static:WARN blah blah blah,
permit

Or even:

first_restriction_mesg = WARN blah blah blah
first_restriction =
check_client_access static:$first_restriction_mesg,
permit

Looks like the extra whitespace in first_restriction_mesg causes
problems for the parser.

Is there no easier way to log a message from within a restriction list?


© 2004-2008 readlist.com