Hi,

This is not a postfix problem but rather a problem with pfixtools which are tools written specifically for postfix. Since I know there are some pfixtools devs here on the list and pfixtools does not have a mailing list, I thought I would try my luck here. I am getting a seg fault while doing spf lookups. Here is the basic gist:

postlicyd -vvv -f /etc/pfixtools/postlicyd.conf -u
[notice] starting postlicyd v0.9...
[debug ] starting resource gc: before 0 resources, after 0
[notice] entering processing loop
[debug ] running filter check_srs_bounce (match)
[debug ] running condition: "EDITED" is empty "(none)"
[debug ] no condition matched, not-match_all failed
[debug ] filter run, result is fail
[debug ] return hook of type fail, value (null)
[debug ] request client=EDITED from=EDITED to=EDITED at RCPT: answer fail from filter check_srs_bounce: next filter check_spf
[debug ] running filter check_spf (spf)
[info  ] spf: new SPF lookup of (EDITED)
[debug ] spf pool: acquiring 0x94a64c8 - pool length: 0 (created 1)
[debug ] spf (depth=0): performing query of type 16 for EDITED
[debug ] running dns resolution on terabytemedia.com. (type: 16)
[error ] Killed (got signal 11)...
Segmentation fault

When I run it and it drops privileges, instead of "Segmentation fault", I get:

*** glibc detected *** postlicyd: malloc(): memory corruption: 0x08cc8c38 *** *** glibc detected *** postlicyd: malloc(): memory corruption: 0x08cc8c38 ***

This is on CentOS 6 64bit latest.

Below is the config.  Any ideas?

check_srs_bounce {
    type = match;
    condition = sender #=;
    on_match = check_srs_hash;
    on_fail = check_spf;
}

check_spf {
    type = spf;
    on_fail = postfix:REJECT SPF hard fail;
    on_none = postfix:DUNNO;
    on_pass = postfix:DUNNO;
    on_soft_fail = postfix:DUNNO;
}

check_srs_hash {
    type = srs;
    bounce_domain = srs.emailowl.com;
    secret_file = /etc/pfixtools/pfix-srs.secrets;
    on_match = postfix:DUNNO;
    on_none = postfix:REJECT Invalid bounce domain;
    on_fail = postfix:REJECT Invalid sender for SRS bounces;
}
recipient_filter = check_srs_bounce;
socketfile = /var/run/pfixtools/postlicyd.sock;

Reply via email to