On Friday 04 November 2011 14:07:36 Wietse Venema wrote:
> Benny Pedersen:
> > On Fri, 4 Nov 2011 07:45:47 -0700, David Southwell wrote:
> > >  policyd-spf unix -       n       n       -       0       spawn
> > >  
> > >           user=nobody argv=/usr/local/sbin/postfix-policyd-spf-perl
> > 
> > nobody have no write permissions in postfix private socket dir
> 
> No, the Postfix master daemon creates the socket. it runs with
> system privileges.
> 
> > > Nov  4 07:37:50 dns1 postfix/smtpd[26676]: warning: connect to
> > > private/policyd-spf: Connection refused
> > 
> > since sockert is missing
> 
> Yes, because of a master.cf configuration error.
> 
>       Wietse

Lets assume that is the case. If so can anyone please help me identify the 
error? Grey listing is working. Relevant are: 
1.master.cf &
2. main.cf are below. (main.cf is shown with the spf lines commented out.) 

There are two versions of postconf -n:

3. Version 1 is when spf lines in main.cf are commented out. 
4. Version 2 is when those lines are active.
5. Extracts from maillog showing results with the spf lines are turned on and 
then when they are turned off

Search for '*****' to page down successively to each of the 5 relevant 
extracts.

******master.cf****************************************
# Postfix master process configuration file.  For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# Do not forget to execute "postfix reload" after editing this file.
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       n       -       -       smtpd
#smtp      inet  n       -       n       -       1       postscreen
#smtpd     pass  -       -       n       -       -       smtpd
#dnsblog   unix  -       -       n       -       0       dnsblog
#tlsproxy  unix  -       -       n       -       0       tlsproxy
#submission inet n       -       n       -       -       smtpd
#  -o smtpd_tls_security_level=encrypt
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#smtps     inet  n       -       n       -       -       smtpd
#  -o smtpd_tls_wrappermode=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#628       inet  n       -       n       -       -       qmqpd
pickup    fifo  n       -       n       60      1       pickup
cleanup   unix  n       -       n       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       n       300     1       oqmgr
tlsmgr    unix  -       -       n       1000?   1       tlsmgr
rewrite   unix  -       -       n       -       -       trivial-rewrite
bounce    unix  -       -       n       -       0       bounce
defer     unix  -       -       n       -       0       bounce
trace     unix  -       -       n       -       0       bounce
verify    unix  -       -       n       -       1       verify
flush     unix  n       -       n       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       n       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       n       -       -       smtp
        -o smtp_fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
retry     unix  -       -       n       -       -       error
discard   unix  -       -       n       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
scache    unix  -       -       n       -       1       scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent.  See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
#maildrop  unix  -       n       n       -       -       pipe
#  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
#
# ====================================================================
#
# Recent Cyrus versions can use the existing "lmtp" master.cf entry.
#
# Specify in cyrus.conf:
#   lmtp    cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4
#
# Specify in main.cf one or more of the following:
#  mailbox_transport = lmtp:inet:localhost
#  virtual_transport = lmtp:inet:localhost
#
# ====================================================================
#
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
#
#cyrus     unix  -       n       n       -       -       pipe
#  user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
#
# ====================================================================
#
# Old example of delivery via Cyrus.
#
#old-cyrus unix  -       n       n       -       -       pipe
#  flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
#
# ====================================================================
#
# See the Postfix UUCP_README file for configuration details.
#
#uucp      unix  -       n       n       -       -       pipe
#  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail 
($recipient)
#
# ====================================================================
#
# Other external delivery methods.
#
#ifmail    unix  -       n       n       -       -       pipe
#  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
#
#bsmtp     unix  -       n       n       -       -       pipe
#  flags=Fq. user=bsmtp argv=/usr/local/sbin/bsmtp -f $sender $nexthop 
$recipient
#
#scalemail-backend unix -       n       n       -       2       pipe
#  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store
#  ${nexthop} ${user} ${extension}
#
#mailman   unix  -       n       n       -       -       pipe
#  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
#  ${nexthop} ${user}

# Applied #1 postfix refereshed ok
 policyd-spf unix -       n       n       -       0       spawn
           user=nobody argv=/usr/local/sbin/postfix-policyd-spf-perl



____________________________________________________
****** For main.cf all comment lines have been removed except the two lines 
****** for turning on spf
***********main.cf******************


soft_bounce = yes

queue_directory = /var/spool/postfix


command_directory = /usr/local/sbin


daemon_directory = /usr/local/libexec/postfix


mail_owner = postfix


myhostname = dns1.vizion2000.net

mydomain = vizion2000.net


myorigin = $mydomain


inet_interfaces = all

proxy_interfaces = dns1.vizion2000.net

mydestination = $mydomain, $myhostname, dns1.$mydomain, dns1


smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
# check_policy_service unix:private/policyd-spf
# spf-policy_time_limit = 3600s
 check_policy_service inet:127.0.0.1:10023

smtpd_sender_restrictions = reject_unknown_sender_domain
smtpd_sender_restrictions = reject_non_fqdn_sender

smtpd_helo_restrictions = reject_invalid_hostname

relay_domains = $mydestination

mynetworks_style = subnet

mynetworks = 62.49.197.48/28, 127.0.0.0/8

virtual_alias_domains = workplacemassage.co.uk, atf4.com, 
methuselaproject.org, methuselaproject.com, tiptogo.com,
virtual_alias_maps= hash:/usr/local/etc/postfix/virtual,


alias_maps = hash:/etc/aliases 

mail_spool_directory = /var/mail
 
mailbox_size_limit = 512000000

smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)


debug_peer_level = 2


debugger_command =
         PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
         xxgdb $daemon_directory/$process_name $process_id & sleep 5



sendmail_path = /usr/local/sbin/sendmail


newaliases_path = /usr/local/bin/newaliases


mailq_path = /usr/local/bin/mailq


setgid_group = maildrop


html_directory = /usr/local/share/doc/postfix


manpage_directory = /usr/local/man


sample_directory = /usr/local/etc/postfix


readme_directory = /usr/local/share/doc/postfix
data_directory = /var/db/postfix
************
End of main.cf_______________________________________________________________



******postconf -n Version 1***************
alias_maps = hash:/etc/aliases
command_directory = /usr/local/sbin
config_directory = /usr/local/etc/postfix
daemon_directory = /usr/local/libexec/postfix
data_directory = /var/db/postfix
debug_peer_level = 2
html_directory = /usr/local/share/doc/postfix
inet_interfaces = all
mail_owner = postfix
mail_spool_directory = /var/mail
mailbox_size_limit = 512000000
mailq_path = /usr/local/bin/mailq
manpage_directory = /usr/local/man
mydestination = $mydomain, $myhostname, dns1.$mydomain, dns1
mydomain = vizion2000.net
myhostname = dns1.vizion2000.net
mynetworks = 62.49.197.48/28, 127.0.0.0/8
mynetworks_style = subnet
myorigin = $mydomain
newaliases_path = /usr/local/bin/newaliases
proxy_interfaces = dns1.vizion2000.net
queue_directory = /var/spool/postfix
readme_directory = /usr/local/share/doc/postfix
relay_domains = $mydestination
sample_directory = /usr/local/etc/postfix
sendmail_path = /usr/local/sbin/sendmail
setgid_group = maildrop
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
smtpd_helo_restrictions = reject_invalid_hostname
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination 
check_policy_service inet:127.0.0.1:10023
smtpd_sender_restrictions = reject_non_fqdn_sender
soft_bounce = yes
unknown_local_recipient_reject_code = 550
virtual_alias_domains = workplacemassage.co.uk, atf4.com, 
methuselaproject.org, methuselaproject.com, tiptogo.com,
virtual_alias_maps = hash:/usr/local/etc/postfix/virtual,


************postconf -n Version 2 ***********
alias_maps = hash:/etc/aliases
command_directory = /usr/local/sbin
config_directory = /usr/local/etc/postfix
daemon_directory = /usr/local/libexec/postfix
data_directory = /var/db/postfix
debug_peer_level = 2
html_directory = /usr/local/share/doc/postfix
inet_interfaces = all
mail_owner = postfix
mail_spool_directory = /var/mail
mailbox_size_limit = 512000000
mailq_path = /usr/local/bin/mailq
manpage_directory = /usr/local/man
mydestination = $mydomain, $myhostname, dns1.$mydomain, dns1
mydomain = vizion2000.net
myhostname = dns1.vizion2000.net
mynetworks = 62.49.197.48/28, 127.0.0.0/8
mynetworks_style = subnet
myorigin = $mydomain
newaliases_path = /usr/local/bin/newaliases
proxy_interfaces = dns1.vizion2000.net
queue_directory = /var/spool/postfix
readme_directory = /usr/local/share/doc/postfix
relay_domains = $mydestination
sample_directory = /usr/local/etc/postfix
sendmail_path = /usr/local/sbin/sendmail
setgid_group = maildrop
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
smtpd_helo_restrictions = reject_invalid_hostname
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination 
check_policy_service unix:private/policyd-spf spf-policy_time_limit = 3600s 
check_policy_service inet:127.0.0.1:10023
smtpd_sender_restrictions = reject_non_fqdn_sender
soft_bounce = yes
unknown_local_recipient_reject_code = 550
virtual_alias_domains = workplacemassage.co.uk, atf4.com, 
methuselaproject.org, methuselaproject.com, tiptogo.com,
virtual_alias_maps = hash:/usr/local/etc/postfix/virtual,

**********maillog***********
**********turning on spf lines produces:
Nov  5 03:05:31 dns1 postfix/postfix-script[27976]: refreshing the Postfix 
mail system
Nov  5 03:05:31 dns1 postfix/master[1324]: reload -- version 2.8.5, 
configuration /usr/local/etc/postfix
Nov  5 03:05:31 dns1 postfix/anvil[27956]: statistics: max connection rate 
1/60s for (smtp:209.85.213.58) at Nov  5 03:02:30
Nov  5 03:05:31 dns1 postfix/anvil[27956]: statistics: max connection count 1 
for (smtp:209.85.213.58) at Nov  5 03:02:30
Nov  5 03:05:31 dns1 postfix/anvil[27956]: statistics: max cache size 2 at Nov  
5 03:03:51
Nov  5 03:06:49 dns1 postfix/smtpd[27987]: connect from mail-vx0-
f186.google.com[209.85.220.186]
Nov  5 03:06:49 dns1 postfix/smtpd[27987]: warning: connect to 
private/policyd-spf: Connection refused
Nov  5 03:06:49 dns1 postfix/smtpd[27987]: warning: problem talking to server 
private/policyd-spf: Connection refused
Nov  5 03:06:50 dns1 postfix/smtpd[27987]: warning: connect to 
private/policyd-spf: Connection refused
Nov  5 03:06:50 dns1 postfix/smtpd[27987]: warning: problem talking to server 
private/policyd-spf: Connection refused
Nov  5 03:06:50 dns1 postfix/smtpd[27987]: NOQUEUE: reject: RCPT from mail-
vx0-f186.google.com[209.85.220.186]: 451 4.3.5 Server configuration problem; 
from=<rubyonrails-talk+bnccprpt_brdxdvldt1bboezrp...@googlegroups.com> 
to=<da...@atf4.com> proto=ESMTP helo=<mail-vx0-f186.google.com>
Nov  5 03:06:50 dns1 postfix/smtpd[27987]: disconnect from mail-vx0-
f186.google.com[209.85.220.186]

*********Turning off spf lines produces:

Nov  5 03:09:53 dns1 postfix/postfix-script[28136]: refreshing the Postfix 
mail system
Nov  5 03:09:53 dns1 postfix/master[1324]: reload -- version 2.8.5, 
configuration /usr/local/etc/postfix
Nov  5 03:09:53 dns1 postfix/anvil[27989]: statistics: max connection rate 
1/60s for (smtp:209.85.220.186) at Nov  5 03:06:49
Nov  5 03:09:53 dns1 postfix/anvil[27989]: statistics: max connection count 1 
for (smtp:209.85.220.186) at Nov  5 03:06:49
Nov  5 03:09:53 dns1 postfix/anvil[27989]: statistics: max cache size 1 at Nov  
5 03:06:49
Nov  5 03:12:06 dns1 postfix/smtpd[28166]: connect from f1.mail.ci-
net.com[195.72.167.30]
Nov  5 03:12:06 dns1 postfix/smtpd[28166]: NOQUEUE: reject: RCPT from 
f1.mail.ci-net.com[195.72.167.30]: 454 4.7.1 <j...@iinis.com>: Relay access 
denied; from=<infhamelnseg...@gmail.com> to=<j...@iinis.com> proto=ESMTP 
helo=<f3.mail.ci-net.com>
Nov  5 03:12:06 dns1 postfix/smtpd[28166]: disconnect from f1.mail.ci-
net.com[195.72.167.30]
Nov  5 03:12:12 dns1 postfix/smtpd[28166]: connect from 
mail.mariposacounty.org[64.118.106.46]
Nov  5 03:12:12 dns1 postgrey[1235]: action=pass, reason=triplet found, 
client_name=mail.mariposacounty.org, client_address=64.118.106.46, 
sender=pmur...@mariposacounty.org, 
recipient=200809141143.21517.da...@vizion2000.net
Nov  5 03:12:12 dns1 postfix/smtpd[28166]: NOQUEUE: reject: RCPT from 
mail.mariposacounty.org[64.118.106.46]: 450 4.1.1 
<200809141143.21517.da...@vizion2000.net>: Recipient address rejected: User 
unknown in local recipient table; from=<pmur...@mariposacounty.org> 
to=<200809141143.21517.da...@vizion2000.net> proto=ESMTP 
helo=<mail.mariposacounty.org>
Nov  5 03:12:13 dns1 postfix/smtpd[28166]: disconnect from 
mail.mariposacounty.org[64.118.106.46]
Nov  5 03:15:37 dns1 postfix/anvil[28168]: statistics: max connection rate 
1/60s for (smtp:195.72.167.30) at Nov  5 03:12:06
Nov  5 03:15:37 dns1 postfix/anvil[28168]: statistics: max connection count 1 
for (smtp:195.72.167.30) at Nov  5 03:12:06
Nov  5 03:15:37 dns1 postfix/anvil[28168]: statistics: max cache size 2 at Nov  
5 03:12:12
Nov  5 03:17:32 dns1 postfix/smtpd[28183]: connect from mail-vw0-
f58.google.com[209.85.212.58]
Nov  5 03:17:33 dns1 postgrey[1235]: action=pass, reason=client whitelist, 
client_name=mail-vw0-f58.google.com, client_address=209.85.212.58, 
sender=rubyonrails-talk+bnccprpt_brdxdvldt1bboezrp...@googlegroups.com, 
recipient=da...@atf4.com
Nov  5 03:17:33 dns1 postfix/smtpd[28183]: 4D6F4119C3F: client=mail-vw0-
f58.google.com[209.85.212.58]
Nov  5 03:17:33 dns1 postfix/cleanup[28187]: 4D6F4119C3F: message-
id=<CADQqhMe6d5skk3efjf6yAzxO_xtUwC8W6f67n17u0g8wFK=h...@mail.gmail.com>
Nov  5 03:17:33 dns1 postfix/qmgr[28141]: 4D6F4119C3F: from=<rubyonrails-
talk+bnccprpt_brdxdvldt1bboezrp...@googlegroups.com>, size=5231, nrcpt=1 
(queue active)
Nov  5 03:17:33 dns1 postfix/local[28188]: 4D6F4119C3F: 
to=<da...@vizion2000.net>, orig_to=<da...@atf4.com>, relay=local, delay=0.37, 
delays=0.36/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)

Reply via email to