Hello,

***********main.cf***********
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
mydomain = ddol-test.com
myorigin = $myhostname
inet_interfaces = localhost, 192.168.66.98
inet_protocols = all
mydestination = $myhostname, localhost.$mydomain, localhost
unknown_local_recipient_reject_code = 550
mynetworks = 192.168.66.0/24, 127.0.0.0/8
relay_domains = $mydestination
smtpd_recipient_restrictions =
        permit_mynetworks,reject,
        check_policy_service inet:127.0.0.1:10031
smtpd_end_of_data_restrictions =
        check_policy_service inet:127.0.0.1:10031
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases

transport_maps = ldap:/etc/postfix/perditionMailhost_ldap

debug_peer_level = 2
debugger_command =
         PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
         ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.6.6/samples
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
dspam_destination_recipient_limit = 1
content_filter = smtp-amavis:[127.0.0.1]:10024

***********master.cf***********
smtp      inet  n       -       n       -       200       smtpd -v
pickup    fifo  n       -       n       60      1       pickup
cleanup   unix  n       -       n       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
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
relay     unix  -       -       n       -       -       smtp
        -o smtp_fallback_relay=
        -o disable_dns_lookups=yes
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
dspam     unix  -       n       n       -       -       pipe
 flags=Rhqu user=dspam argv=/usr/bin/dspam
 --client
 --deliver=innocent,spam
 --user ${recipient}
 --mail-from=${sender}
dspam-retrain   unix    -       n       n       -    10     pipe
 flags=Ru user=dspam argv=/usr/local/bin/dspam-retrain $nexthop $sender 
$recipient
smtp-amavis unix -      -       n     -        2  smtp
 -o smtp_data_done_timeout=1200
 -o disable_dns_lookups=yes
localhost:10026 inet  n -       n       -       16      smtpd
 -o content_filter=
 -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
 -o smtpd_helo_restrictions=
 -o smtpd_client_restrictions=
 -o smtpd_sender_restrictions=
 -o smtpd_recipient_restrictions=permit_mynetworks,reject
 -o mynetworks=127.0.0.0/8
 -o smtpd_authorized_xforward_hosts=127.0.0.0/8

Regards!

Manel

Date: Thu, 10 May 2012 11:49:29 +0000
From: [email protected]
To: [email protected]
Subject: Re: [policyd-users] Server name undefined policyd + amavis


  
    
  
  
    On 05/10/12 11:47, Manel Gimeno Zaragozá wrote:
    
      
      
        Hello,

        

        I've tried the new snapshot and I'm getting now the following
        error:

        

        May 10 13:41:59 mx-test amavis[5258]: (05258-01) (!!)[TRACKING]
        ERROR: No session data

        May 10 13:41:59 mx-test amavis[5258]: (05258-01)
        (!)policyd/process_policy: No session data found

        

        Any help?

        

        Thanks!

        

        Manel 

        
          From: [email protected]

          To: [email protected]

          Date: Thu, 10 May 2012 13:16:20 +0200

          Subject: Re: [policyd-users] Server name undefined policyd +
          amavis

          

          
          
            Hello,

            

            I was using v2.1.x-201104210611
            (cluebringer-snapshot-201104210611.tar.gz).

            

            Thanks! I will try the new snapshot right now!

            

            Regards.

            

            Manel

            

            

            

            
              Date: Thu, 10 May 2012 11:08:57
              +0000

              From: [email protected]

              To: [email protected]

              Subject: Re: [policyd-users] Server name undefined policyd
              + amavis

              

              On 05/10/12 10:59, Manel Gimeno Zaragozá wrote:
              
                
                 Hello,

                  

                  I'm trying to install policyd in my postfix + amavis
                  but when I receive emails I saw this in my log file:

                  

                  May 10 12:42:59 mx-test amavis[3960]: (03960-02)
                  (!)[CORE] WARNING: Failed to Initialize:
                  awitpt::db::dbilayer::Init(108): Server name undefined
                  (3960)

                  May 10 12:42:59 mx-test amavis[3960]: (03960-02)
                  (!)custom new err: Died at
                  /usr/share/perl5/amavisd-policyd.pm line 123,
                  <GEN11> line 33.

                  

                  It looks like server name is not defined somewhere but
                  I was looking in then "pm" files trying to find some
                  clue about from where is trying to get the server name
                  but I'm not able to see what its wrong.

                  

                  I have followed INSTALL file to implement policy.

                  

                  SO: Centos 6

                  

                  rpm -qa | grep -iE "postfix|mysql|php|amavis"

                  MySQL-python-1.2.3-0.3.c1.1.el6.x86_64

                  php-cli-5.3.3-3.el6_2.8.x86_64

                  mysql-5.1.61-1.el6_2.1.x86_64

                  mysql-libs-5.1.61-1.el6_2.1.x86_64

                  php-5.3.3-3.el6_2.8.x86_64

                  libdbi-dbd-mysql-0.8.3-5.1.el6.x86_64

                  mysql-devel-5.1.61-1.el6_2.1.x86_64

                  php-pdo-5.3.3-3.el6_2.8.x86_64

                  postfix-2.6.6-2.2.el6_1.x86_64

                  php-mysql-5.3.3-3.el6_2.8.x86_64

                  mysql-server-5.1.61-1.el6_2.1.x86_64

                  dspam-mysql-3.10.1-6.el6.x86_64

                  php-common-5.3.3-3.el6_2.8.x86_64

                  perl-DBD-MySQL-4.013-3.el6.x86_64

                  amavisd-new-2.6.6-2.el6.rf.x86_64
              
              

              You didn't include the version of policyd you're using.
              I'm assuming you're using development version 2.1.x. If
              so, I've just uploaded a new snapshot...

              https://devlabs.linuxassist.net/projects/policyd/files

              

              

              _______________________________________________
              Users mailing list
              [email protected]
              http://lists.policyd.org/mailman/listinfo/users
          
          

          _______________________________________________
          Users mailing list
          [email protected]
          http://lists.policyd.org/mailman/listinfo/users
      
    
    

    

    Paste your postfix conf file please.

    

    

  


_______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users                                 
          
_______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users

Reply via email to