Mailing List Archive

smtpd-policy.pl errors with postfix
I am having a problem getting the policy script to work under Suse
standard server 8 linux. The script works when I test it manualy like
this:



-------------------------- Manual test Start----------------------
largo:/usr/lib/postfix # ./smtpd-policy.pl
request=smtpd_access_policy
protocol_state=RCPT
protocol_name=SMTP
helo_name=mail.yahoo.com
queue_id=8045F2AB23
sender=root@compusleuth.com
recipient=bar@foo.tld
client_address=1.2.3.4
client_name=bad.yahoo.com

action=REJECT Please see
http://spf.pobox.com/why.html?sender=root%40compusleuth.com&ip=1.2.3.4&receiver=largo.compusleuth.com

largo:/usr/lib/postfix #
-------------------------- Manual test End----------------------



But when I put it in the postfix master.cf/main.cf like this:

-------------------------- master.cf Start-----------------------
spf1 unix - n n - - spawn
user=nobody argv=/usr/bin/perl /usr/lib/postfix/smtpd-policy.pl
-------------------------- master.cf End-----------------------


-------------------------- main.cf Start-----------------------
smtpd_recipient_restrictions= ldap:ldapmailenab,
permit_tls_clientcerts,
permit_sasl_authenticated,
permit_mynetworks,
reject_unknown_sender_domain,
reject_unauth_destination,
reject_non_fqdn_sender,
reject_unknown_recipient_domain,
check_policy_service unix:private/spf1
spf1_time_limit= 3600
-------------------------- main.cf End-----------------------



Here is the error from /var/log/mail:
-------------------------- /var/log/mail Start---------------
Jul 30 22:47:52 largo postfix/smtpd[17733]: fatal: dict_unix_open: unknown
map name: private/spf1
Jul 30 22:47:53 largo postfix/master[1870]: warning: process
/usr/lib/postfix/smtpd pid 17733 exit status 1
Jul 30 22:47:53 largo postfix/master[1870]: warning:
/usr/lib/postfix/smtpd: bad command startup -- throttling
Jul 30 22:48:53 largo postfix/smtpd[17830]: fatal: dict_unix_open: unknown
map name: private/spf1
Jul 30 22:48:54 largo postfix/master[1870]: warning: process
/usr/lib/postfix/smtpd pid 17830 exit status 1
Jul 30 22:48:54 largo postfix/master[1870]: warning:
/usr/lib/postfix/smtpd: bad command startup -- throttling
-------------------------- /var/log/mail End---------------


largo:/etc/postfix # ls -l /var/spool/postfix/private/spf1
srw-rw-rw- 1 postfix postfix 0 Jul 30 22:45
/var/spool/postfix/private/spf1
largo:/etc/postfix #

I have also tried using the service name "policy" instead of "spf1", and
putting the script in the /etc/postfix directory instead of
/usr/lib/postfix. This is the stock Suse postfix software and I am
trying to avoid replacing it if possible.

Any ideas or suggestions would be appreciated.

Thanks.

t1@compusleuth.com


-------
Archives at http://archives.listbox.com/spf-help/current/
Donate! http://spf.pobox.com/donations.html
To unsubscribe, change your address, or temporarily deactivate your subscription,
please go to http://v2.listbox.com/member/?listname=spf-help@v2.listbox.com
RE: smtpd-policy.pl errors with postfix [ In reply to ]
You may want to check your version of Postfix. I think that you need
2.1.0 at least!

Jean-Michel Lacroix

-----Original Message-----
From: owner-spf-help@v2.listbox.com
[mailto:owner-spf-help@v2.listbox.com] On Behalf Of t1@compusleuth.com
Sent: Saturday, July 31, 2004 1:19 PM
To: spf-help@v2.listbox.com
Subject: [spf-help] smtpd-policy.pl errors with postfix


I am having a problem getting the policy script to work under Suse
standard server 8 linux. The script works when I test it manualy like
this:



-------------------------- Manual test Start----------------------
largo:/usr/lib/postfix # ./smtpd-policy.pl
request=smtpd_access_policy
protocol_state=RCPT
protocol_name=SMTP
helo_name=mail.yahoo.com
queue_id=8045F2AB23
sender=root@compusleuth.com
recipient=bar@foo.tld
client_address=1.2.3.4
client_name=bad.yahoo.com

action=REJECT Please see
http://spf.pobox.com/why.html?sender=root%40compusleuth.com&ip=1.2.3.4&r
eceiver=largo.compusleuth.com

largo:/usr/lib/postfix #
-------------------------- Manual test End----------------------



But when I put it in the postfix master.cf/main.cf like this:

-------------------------- master.cf Start-----------------------
spf1 unix - n n - - spawn
user=nobody argv=/usr/bin/perl /usr/lib/postfix/smtpd-policy.pl
-------------------------- master.cf End-----------------------


-------------------------- main.cf Start-----------------------
smtpd_recipient_restrictions= ldap:ldapmailenab,
permit_tls_clientcerts,
permit_sasl_authenticated,
permit_mynetworks,
reject_unknown_sender_domain,
reject_unauth_destination,
reject_non_fqdn_sender,
reject_unknown_recipient_domain,
check_policy_service unix:private/spf1
spf1_time_limit= 3600
-------------------------- main.cf End-----------------------



Here is the error from /var/log/mail:
-------------------------- /var/log/mail Start---------------
Jul 30 22:47:52 largo postfix/smtpd[17733]: fatal: dict_unix_open:
unknown
map name: private/spf1
Jul 30 22:47:53 largo postfix/master[1870]: warning: process
/usr/lib/postfix/smtpd pid 17733 exit status 1
Jul 30 22:47:53 largo postfix/master[1870]: warning:
/usr/lib/postfix/smtpd: bad command startup -- throttling
Jul 30 22:48:53 largo postfix/smtpd[17830]: fatal: dict_unix_open:
unknown
map name: private/spf1
Jul 30 22:48:54 largo postfix/master[1870]: warning: process
/usr/lib/postfix/smtpd pid 17830 exit status 1
Jul 30 22:48:54 largo postfix/master[1870]: warning:
/usr/lib/postfix/smtpd: bad command startup -- throttling
-------------------------- /var/log/mail End---------------


largo:/etc/postfix # ls -l /var/spool/postfix/private/spf1
srw-rw-rw- 1 postfix postfix 0 Jul 30 22:45
/var/spool/postfix/private/spf1
largo:/etc/postfix #

I have also tried using the service name "policy" instead of "spf1", and
putting the script in the /etc/postfix directory instead of
/usr/lib/postfix. This is the stock Suse postfix software and I am
trying to avoid replacing it if possible.

Any ideas or suggestions would be appreciated.

Thanks.

t1@compusleuth.com


-------
Archives at http://archives.listbox.com/spf-help/current/
Donate! http://spf.pobox.com/donations.html
To unsubscribe, change your address, or temporarily deactivate your
subscription,
please go to
http://v2.listbox.com/member/?listname=spf-help@v2.listbox.com

-------
Archives at http://archives.listbox.com/spf-help/current/
Donate! http://spf.pobox.com/donations.html
To unsubscribe, change your address, or temporarily deactivate your subscription,
please go to http://v2.listbox.com/member/?listname=spf-help@v2.listbox.com