spf-discuss
[Top] [All Lists]

Mac OSX

2005-04-27 23:40:57
I'm trying to initiate the smtpd-policy.pl script found in the downloads (unless you have a better solution).

I couldn't find any other scripts or any documentation that was specifically Mac oriented so I'm coming here for a solution.

I have run into some issues.

It would appear that "check_policy_service" is not valid in postfix 2.0.10 which is the version shipped with OSX 10.3.x.

The following lines appear at the top of the script before the "#!/usr/bin/perl" line:
<%attr>
autohandler_skip => 1
</%attr>

A quick google show this seem to be windows thing (http://gnuwin32.sourceforge.net/packages/attr.htm) and removing the lines allowed the script to run.


Updating to a newer postfix would be a major undertaking based on the OS without breaking everything so it's not a likely possibility unless it continues to function as the installed postfix does without sacrificing any Apple functionality.

_____________________________________________________________

Now to the problem:

I have the smtpd-policy.pl script (installed in /usr/libexec/postfix/) and the master.cf policy entry:
policy    unix  -       n       n       -       -       spawn
  user=cyrus argv=/usr/bin/perl /usr/libexec/postfix/smtpd-policy.pl

it doesn't appear to call the script so on to SMTPD processing.


I have tried implementing the Postfix SMTPD method in main.cf:
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination,ch eck_policy_service unix:private/policy,permit

this results in the following error:
Apr 27 22:42:12 localhost postfix/smtpd[2745]: fatal: dict_unix_open: unknown map name: private/policy

and from what I can tell, "check_policy_service" is not available in postfix 2.0.10 and I have been unable to find any HowTo's or installation instructions related to Mac.


As described in the script, I have tested it and it appers to work but I can't say for certain because I was unable to find any additional information to confirm this and no documentation that explains the returned information from my mail.log.

_____________________________________________________________

daleenterprise:~ root# perl /usr/libexec/postfix/smtpd-policy.pl
request=smtpd_access_policy
helo_name=mail.macftphttp.serverbox.org
queue_id=8045F2AB23
sender=webmaster(_at_)macftphttp(_dot_)serverbox(_dot_)org
recipient=info(_at_)daleenterprise(_dot_)com
client_address=67.78.11.227

action=DUNNO

_____________________________________________________________

mail.log output:
_____________________________________________________________

===== Thu Apr 28 2005 ===== 00:52.41 US/Eastern =====
Apr 28 00:52:42 localhost postfix/policy-spf[4731]: Attribute: client_address=67.78.11.227 Apr 28 00:52:42 localhost postfix/policy-spf[4731]: Attribute: helo_name=mail.macftphttp.serverbox.org Apr 28 00:52:42 localhost postfix/policy-spf[4731]: Attribute: queue_id=8045F2AB23 Apr 28 00:52:42 localhost postfix/policy-spf[4731]: Attribute: recipient=info(_at_)daleenterprise(_dot_)com Apr 28 00:52:42 localhost postfix/policy-spf[4731]: Attribute: request=smtpd_access_policy Apr 28 00:52:42 localhost postfix/policy-spf[4731]: Attribute: sender=webmaster(_at_)macftphttp(_dot_)serverbox(_dot_)org Apr 28 00:52:42 localhost postfix/policy-spf[4731]: 8045F2AB23: testing: stripped sender=webmaster(_at_)macftphttp(_dot_)serverbox(_dot_)org, stripped rcpt=info(_at_)daleenterprise(_dot_)com Apr 28 00:52:42 localhost postfix/policy-spf[4731]: handler testing: DUNNO Apr 28 00:52:42 localhost postfix/policy-spf[4731]: 8045F2AB23: SPF none: smtp_comment=SPF: domain of sender webmaster(_at_)macftphttp(_dot_)serverbox(_dot_)org does not designate mailers, header_comment=daleenterprise.com: domain of webmaster(_at_)macftphttp(_dot_)serverbox(_dot_)org does not designate permitted sender hosts Apr 28 00:52:42 localhost postfix/policy-spf[4731]: handler sender_permitted_from: DUNNO
Apr 28 00:52:42 localhost postfix/policy-spf[4731]: decided action=DUNNO


<Prev in Thread] Current Thread [Next in Thread>
  • Mac OSX, websrvr <=