SPF: fim de entrada prematuro em privado / política

1

Acabei de me mudar para um novo servidor com a mesma configuração do antigo, e tudo está funcionando bem, exceto o SPF. Aqui está a mensagem de erro que recebo:

Nov  3 10:49:05 ns3016726 postfix/spawn[16996]: warning: command /usr/bin/python exit status 1
Nov  3 10:49:05 ns3016726 postfix/smtpd[17991]: warning: premature end-of-input on private/policy while reading input attribute name
Nov  3 10:49:06 ns3016726 postfix/spawn[16998]: warning: command /usr/bin/python exit status 1
Nov  3 10:49:06 ns3016726 postfix/smtpd[17991]: warning: premature end-of-input on private/policy while reading input attribute name
Nov  3 10:49:06 ns3016726 postfix/smtpd[17991]: warning: problem talking to server private/policy: Connection reset by peer

Aqui está a parte do master.cf:

policy  unix  -       n       n       -       -       spawn
  user=nobody argv=/usr/bin/python /usr/bin/policyd-spf /etc/postfix-policyd-spf-python/policyd-spf.conf

E a parte main.cf:

smtpd_recipient_restrictions = 
 permit_sasl_authenticated,
 permit_mynetworks,
 reject_unauth_destination,
 check_policy_service unix:private/policy,
 permit

Eu também experimento com a política policyd-spf-perl , que quase me dá o mesmo erro:

Nov  3 11:42:19 ns3016726 postfix/spawn[25476]: warning: command /usr/bin/perl exit status 2
Nov  3 11:42:19 ns3016726 postfix/smtpd[25429]: warning: premature end-of-input on private/policy while reading input attribute name
Nov  3 11:42:20 ns3016726 postfix/spawn[25476]: warning: command /usr/bin/perl exit status 2
Nov  3 11:42:20 ns3016726 postfix/smtpd[25429]: warning: premature end-of-input on private/policy while reading input attribute name
Nov  3 11:42:20 ns3016726 postfix/smtpd[25429]: warning: problem talking to server private/policy: Connection reset by peer

Eu tentei definir debugLevel em /etc/postfix-policyd-spf-python/policyd-spf.conf para 5, mas não obtive mais detalhes em mail.log ...

A principal mudança em relação ao meu servidor anterior é que agora tenho 2 interfaces (OVH Vrack). ifconfig:

eth0      Link encap:Ethernet  HWaddr 00:15:b2:a8:28:56
          inet addr:192.168.1.1  Bcast:192.168.255.255  Mask:255.255.0.0
          inet6 addr: fe80::215:b2ff:fea8:2856/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:353965 errors:0 dropped:0 overruns:0 frame:0
          TX packets:503245 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:46523833 (44.3 MiB)  TX bytes:347172834 (331.0 MiB)
          Interrupt:20 Memory:df200000-df220000

eth1      Link encap:Ethernet  HWaddr 00:15:b2:a8:28:57
          inet addr:XXX.80.25.118  Bcast:XXX.80.25.255  Mask:255.255.255.0
          inet6 addr: XXXX::215:b2ff:fea8:2857/64 Scope:Link
          inet6 addr: XXXX:41d0:c:1076::/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1797021 errors:0 dropped:106 overruns:0 frame:0
          TX packets:2341317 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:270131307 (257.6 MiB)  TX bytes:2624682043 (2.4 GiB)
          Memory:df100000-df17ffff

eth1:0    Link encap:Ethernet  HWaddr 00:15:b2:a8:28:57
          inet addr:XXX.121.39.211  Bcast:XXX.121.39.211  Mask:255.255.255.255
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Memory:df100000-df17ffff

eth1:1    Link encap:Ethernet  HWaddr 00:15:b2:a8:28:57
          inet addr:XXX.254.167.3  Bcast:XXX.254.167.3  Mask:255.255.255.255
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Memory:df100000-df17ffff

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:30802000 errors:0 dropped:0 overruns:0 frame:0
          TX packets:30802000 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:18139282003 (16.8 GiB)  TX bytes:18139282003 (16.8 GiB)

Alguém tem uma ideia do que está acontecendo ou de como depurá-lo?

    
por Nicolas BADIA 03.11.2015 / 11:55

1 resposta

0

A solução foi fácil, em master.cf , apenas adiciono para substituir:

/usr/bin/python /usr/bin/policyd-spf /etc/postfix-policyd-spf-python/policyd-spf.conf

por

/usr/bin/policyd-spf /etc/postfix-policyd-spf-python/policyd-spf.conf
    
por 05.11.2015 / 12:32