I was working on updating Postfix, and I thought I'd look into the
test suite. The book currently says there's no test suite, but there
are in fact tests. You can run them with `make tests'. There is also a
`root_tests' target, but I haven't checked that out yet.

The problem for me is that `make tests' fails a bunch of tests and the
output is difficult to read. In fact, I had to run it with make -i
because even make -k couldn't make it through. I've been running
postfix for a while on a semi-complicated setup, so I'm fairly certain
it's working properly. I don't know what to make of the test failures,
and there's very little info about them in the tarball.

I've attached the log. Is the testsuite worth mentioning?

--
Dan
set -e; for i in src/util src/global src/dns src/tls src/xsasl src/milter src/master src/postfix src/smtpstone src/sendmail src/error src/pickup src/cleanup src/smtpd src/local src/trivial-rewrite src/qmgr src/oqmgr src/smtp src/bounce src/pipe src/showq src/postalias src/postcat src/postconf src/postdrop src/postkick src/postlock src/postlog src/postmap src/postqueue src/postsuper src/qmqpd src/spawn src/flush src/verify src/virtual src/proxymap src/anvil src/scache src/discard src/tlsmgr; do \
 (set -e; echo "[$i]"; cd $i; make 'CC=gcc -Wmissing-prototypes -Wformat -DUSE_TLS -DUSE_SASL_AUTH -DHAS_LDAP     -DDEF_DAEMON_DIR=\"/usr/lib/postfix\"     -DDEF_MANPAGE_DIR=\"/usr/share/man\"     -DDEF_HTML_DIR=\"/usr/share/doc/postfix-2.3.3/html\"     -DDEF_README_DIR=\"/usr/share/doc/postfix-2.3.3/README\"     -I/usr/include/openssl -I/usr/include/sasl -DHAS_PCRE ' tests MAKELEVEL=) || exit 1; \
done
[src/util]
./valid_hostname <valid_hostname.in 2>valid_hostname.tmp
diff valid_hostname.ref valid_hostname.tmp
rm -f valid_hostname.tmp
./mac_expand <mac_expand.in >mac_expand.tmp 2>&1
diff mac_expand.ref mac_expand.tmp
rm -f mac_expand.tmp
rm -f testdb.db testdb.dir testdb.pag
../postmap/postmap -N hash:testdb
./dict_open hash:testdb write < dict_test.in > dict_test.tmp 2>&1
diff dict_test.ref dict_test.tmp
../postmap/postmap -n hash:testdb
./dict_open hash:testdb write < dict_test.in > dict_test.tmp 2>&1
diff dict_test.ref dict_test.tmp
rm -f testdb.db testdb.dir testdb.pag dict_test.tmp
./unescape <unescape.in | od -cb >unescape.tmp
diff -b unescape.ref unescape.tmp
rm -f unescape.tmp
./hex_quote <hex_quote.c | od -cb >hex_quote.tmp
od -cb <hex_quote.c >hex_quote.ref
cmp hex_quote.ref hex_quote.tmp
rm -f hex_quote.ref hex_quote.tmp
./ctable <ctable.in >ctable.tmp 2>&1
diff ctable.ref ctable.tmp
rm -f ctable.tmp
./inet_addr_list `cat inet_addr_list.in` >inet_addr_list.tmp 2>&1
diff inet_addr_list.ref inet_addr_list.tmp
rm -f inet_addr_list.tmp
./base64_code
(./attr_print64 2>&3 | (sleep 1; ./attr_scan64)) >attr_scan64.tmp 2>&1 3>&1
diff attr_scan64.ref attr_scan64.tmp
rm -f attr_scan64.tmp
(./attr_print0 2>&3 | (sleep 1; ./attr_scan0)) >attr_scan0.tmp 2>&1 3>&1
diff attr_scan0.ref attr_scan0.tmp
rm -f attr_scan0.tmp
./dict_open pcre:dict_pcre.map read <dict_pcre.in >dict_pcre.tmp 2>&1
diff dict_pcre.ref dict_pcre.tmp
rm -f dict_pcre.tmp
./host_port <host_port.in >host_port.tmp 2>&1
diff host_port.ref host_port.tmp
rm -f host_port.tmp
./dict_open cidr:dict_cidr.map read <dict_cidr.in >dict_cidr.tmp 2>&1
diff dict_cidr.ref dict_cidr.tmp
rm -f dict_cidr.tmp
(./attr_print_plain 2>&3 | (sleep 1; ./attr_scan_plain)) >attr_scan_plain.tmp 2>&1 3>&1
diff attr_scan_plain.ref attr_scan_plain.tmp
rm -f attr_scan_plain.tmp
./htable < /usr/share/dict/words
./hex_code
./myaddrinfo all belly.porcupine.org 168.100.189.2 >myaddrinfo.tmp 2>&1
diff myaddrinfo.ref myaddrinfo.tmp
2,3d1
< ./myaddrinfo: belly.porcupine.org -> family=28 sock=1 proto=6 2001:240:587:0:250:56ff:fe10:bd03
< ./myaddrinfo: 2001:240:587:0:250:56ff:fe10:bd03 -> belly.porcupine.org
5a4,5
> ./myaddrinfo: belly.porcupine.org -> family=10 sock=1 proto=6 2001:240:587:0:250:56ff:fe10:bd03
> ./myaddrinfo: 2001:240:587:0:250:56ff:fe10:bd03 -> belly.porcupine.org
make: [myaddrinfo_test] Error 1 (ignored)
rm -f myaddrinfo.tmp
./myaddrinfo all null.porcupine.org 10.0.0.0 >myaddrinfo.tmp 2>&1
diff myaddrinfo.ref2 myaddrinfo.tmp
2c2
< ./myaddrinfo: hostname_to_sockaddr(null.porcupine.org): hostname nor servname provided, or not known
---
> ./myaddrinfo: hostname_to_sockaddr(null.porcupine.org): Name or service not known
5c5
< ./myaddrinfo: sockaddr_to_hostname: hostname nor servname provided, or not known
---
> ./myaddrinfo: sockaddr_to_hostname: Name or service not known
make: [myaddrinfo_test] Error 1 (ignored)
rm -f myaddrinfo.tmp
./format_tv <format_tv.in >format_tv.tmp
diff format_tv.ref format_tv.tmp
rm -f format_tv.tmp
[src/global]
mv tok822_parse.o junk
gcc -Wmissing-prototypes -Wformat -DUSE_TLS -DUSE_SASL_AUTH -DHAS_LDAP     -DDEF_DAEMON_DIR=\"/usr/lib/postfix\"     -DDEF_MANPAGE_DIR=\"/usr/share/man\"     -DDEF_HTML_DIR=\"/usr/share/doc/postfix-2.3.3/html\"     -DDEF_README_DIR=\"/usr/share/doc/postfix-2.3.3/README\"     -I/usr/include/openssl -I/usr/include/sasl -DHAS_PCRE  -DTEST -g -O -I. -I../../include -DLINUX2 -o tok822_parse tok822_parse.c libglobal.a ../../lib/libutil.a -lssl -lcrypto -lsasl2 -lldap -llber -L/usr/lib -lpcre -ldb -lnsl -lresolv
mv junk tok822_parse.o
./tok822_parse <tok822_parse.in >tok822_parse.tmp 2>&1
diff tok822_parse.ref tok822_parse.tmp
rm -f tok822_parse.tmp
mv mime_state.o junk
gcc -Wmissing-prototypes -Wformat -DUSE_TLS -DUSE_SASL_AUTH -DHAS_LDAP     -DDEF_DAEMON_DIR=\"/usr/lib/postfix\"     -DDEF_MANPAGE_DIR=\"/usr/share/man\"     -DDEF_HTML_DIR=\"/usr/share/doc/postfix-2.3.3/html\"     -DDEF_README_DIR=\"/usr/share/doc/postfix-2.3.3/README\"     -I/usr/include/openssl -I/usr/include/sasl -DHAS_PCRE  -DTEST -g -O -I. -I../../include -DLINUX2 -o mime_state mime_state.c libglobal.a ../../lib/libutil.a -lssl -lcrypto -lsasl2 -lldap -llber -L/usr/lib -lpcre -ldb -lnsl -lresolv
mv junk mime_state.o
./mime_state <mime_test.in >mime_test.tmp
diff  mime_test.ref mime_test.tmp
rm -f mime_test.tmp
./mime_state <mime_nest.in >mime_nest.tmp
diff  mime_nest.ref mime_nest.tmp
rm -f mime_nest.tmp
./mime_state <mime_8bit.in >mime_8bit.tmp
diff  mime_8bit.ref mime_8bit.tmp
rm -f mime_8bit.tmp
./mime_state <mime_dom.in >mime_dom.tmp
diff  mime_dom.ref mime_dom.tmp
rm -f mime_dom.tmp
./mime_state <mime_trunc.in >mime_trunc.tmp
diff  mime_trunc.ref mime_trunc.tmp
rm -f mime_trunc.tmp
./mime_state <mime_cvt.in >mime_cvt.tmp
diff  mime_cvt.ref mime_cvt.tmp
rm -f mime_cvt.tmp
./mime_state <mime_cvt.in2 >mime_cvt.tmp
diff  mime_cvt.ref2 mime_cvt.tmp
rm -f mime_cvt.tmp
./mime_state <mime_cvt.in3 >mime_cvt.tmp
diff  mime_cvt.ref3 mime_cvt.tmp
rm -f mime_cvt.tmp
mv strip_addr.o junk
gcc -Wmissing-prototypes -Wformat -DUSE_TLS -DUSE_SASL_AUTH -DHAS_LDAP     -DDEF_DAEMON_DIR=\"/usr/lib/postfix\"     -DDEF_MANPAGE_DIR=\"/usr/share/man\"     -DDEF_HTML_DIR=\"/usr/share/doc/postfix-2.3.3/html\"     -DDEF_README_DIR=\"/usr/share/doc/postfix-2.3.3/README\"     -I/usr/include/openssl -I/usr/include/sasl -DHAS_PCRE  -DTEST -g -O -I. -I../../include -DLINUX2 -o strip_addr strip_addr.c libglobal.a ../../lib/libutil.a -lssl -lcrypto -lsasl2 -lldap -llber -L/usr/lib -lpcre -ldb -lnsl -lresolv
mv junk strip_addr.o
./strip_addr 2>strip_addr.tmp
diff strip_addr.ref strip_addr.tmp
rm -f strip_addr.tmp
./tok822_parse <tok822_limit.in >tok822_limit.tmp
diff tok822_limit.ref tok822_limit.tmp
rm -f tok822_limit.tmp
mv xtext.o junk
gcc -Wmissing-prototypes -Wformat -DUSE_TLS -DUSE_SASL_AUTH -DHAS_LDAP     -DDEF_DAEMON_DIR=\"/usr/lib/postfix\"     -DDEF_MANPAGE_DIR=\"/usr/share/man\"     -DDEF_HTML_DIR=\"/usr/share/doc/postfix-2.3.3/html\"     -DDEF_README_DIR=\"/usr/share/doc/postfix-2.3.3/README\"     -I/usr/include/openssl -I/usr/include/sasl -DHAS_PCRE  -g -O -I. -I../../include -DLINUX2 -DTEST -o xtext xtext.c libglobal.a ../../lib/libutil.a -lssl -lcrypto -lsasl2 -lldap -llber -L/usr/lib -lpcre -ldb -lnsl -lresolv
mv junk xtext.o
./xtext <xtext.c | od -cb >xtext.tmp
od -cb <xtext.c >xtext.ref
cmp xtext.ref xtext.tmp
rm -f xtext.ref xtext.tmp
gcc -Wmissing-prototypes -Wformat -DUSE_TLS -DUSE_SASL_AUTH -DHAS_LDAP     -DDEF_DAEMON_DIR=\"/usr/lib/postfix\"     -DDEF_MANPAGE_DIR=\"/usr/share/man\"     -DDEF_HTML_DIR=\"/usr/share/doc/postfix-2.3.3/html\"     -DDEF_README_DIR=\"/usr/share/doc/postfix-2.3.3/README\"     -I/usr/include/openssl -I/usr/include/sasl -DHAS_PCRE  -g -O -I. -I../../include -DLINUX2 -DTEST -o scache scache.c libglobal.a ../../lib/libutil.a -lssl -lcrypto -lsasl2 -lldap -llber -L/usr/lib -lpcre -ldb -lnsl -lresolv
./scache <scache_multi.in >scache_multi.tmp
diff scache_multi.ref scache_multi.tmp
rm -f scache_multi.tmp
gcc -Wmissing-prototypes -Wformat -DUSE_TLS -DUSE_SASL_AUTH -DHAS_LDAP     -DDEF_DAEMON_DIR=\"/usr/lib/postfix\"     -DDEF_MANPAGE_DIR=\"/usr/share/man\"     -DDEF_HTML_DIR=\"/usr/share/doc/postfix-2.3.3/html\"     -DDEF_README_DIR=\"/usr/share/doc/postfix-2.3.3/README\"     -I/usr/include/openssl -I/usr/include/sasl -DHAS_PCRE  -g -O -I. -I../../include -DLINUX2 -DTEST -o ehlo_mask ehlo_mask.c libglobal.a ../../lib/libutil.a -lssl -lcrypto -lsasl2 -lldap -llber -L/usr/lib -lpcre -ldb -lnsl -lresolv
./ehlo_mask <ehlo_mask.in >ehlo_mask.tmp
diff ehlo_mask.ref ehlo_mask.tmp
rm -f ehlo_mask.tmp
mv namadr_list.o junk
gcc -Wmissing-prototypes -Wformat -DUSE_TLS -DUSE_SASL_AUTH -DHAS_LDAP     -DDEF_DAEMON_DIR=\"/usr/lib/postfix\"     -DDEF_MANPAGE_DIR=\"/usr/share/man\"     -DDEF_HTML_DIR=\"/usr/share/doc/postfix-2.3.3/html\"     -DDEF_README_DIR=\"/usr/share/doc/postfix-2.3.3/README\"     -I/usr/include/openssl -I/usr/include/sasl -DHAS_PCRE  -g -O -I. -I../../include -DLINUX2 -DTEST -o namadr_list namadr_list.c libglobal.a ../../lib/libutil.a -lssl -lcrypto -lsasl2 -lldap -llber -L/usr/lib -lpcre -ldb -lnsl -lresolv
mv junk namadr_list.o
sh namadr_list.in >namadr_list.tmp 2>&1
diff namadr_list.ref namadr_list.tmp
rm -f namadr_list.tmp
mv mail_conf_time.o junk
gcc -Wmissing-prototypes -Wformat -DUSE_TLS -DUSE_SASL_AUTH -DHAS_LDAP     -DDEF_DAEMON_DIR=\"/usr/lib/postfix\"     -DDEF_MANPAGE_DIR=\"/usr/share/man\"     -DDEF_HTML_DIR=\"/usr/share/doc/postfix-2.3.3/html\"     -DDEF_README_DIR=\"/usr/share/doc/postfix-2.3.3/README\"     -I/usr/include/openssl -I/usr/include/sasl -DHAS_PCRE  -DTEST -g -O -I. -I../../include -DLINUX2 -o mail_conf_time mail_conf_time.c libglobal.a ../../lib/libutil.a -lssl -lcrypto -lsasl2 -lldap -llber -L/usr/lib -lpcre -ldb -lnsl -lresolv
mv junk mail_conf_time.o
./mail_conf_time >mail_conf_time.tmp
diff mail_conf_time.ref mail_conf_time.tmp
rm -f mail_conf_time.tmp
[src/dns]
gcc -Wmissing-prototypes -Wformat -DUSE_TLS -DUSE_SASL_AUTH -DHAS_LDAP     -DDEF_DAEMON_DIR=\"/usr/lib/postfix\"     -DDEF_MANPAGE_DIR=\"/usr/share/man\"     -DDEF_HTML_DIR=\"/usr/share/doc/postfix-2.3.3/html\"     -DDEF_README_DIR=\"/usr/share/doc/postfix-2.3.3/README\"     -I/usr/include/openssl -I/usr/include/sasl -DHAS_PCRE  -g -O -I. -I../../include -DLINUX2 -o test_dns_lookup test_dns_lookup.c libdns.a ../../lib/libutil.a -lssl -lcrypto -lsasl2 -lldap -llber -L/usr/lib -lpcre -ldb -lnsl -lresolv
test_dns_lookup.c: In function ‘main’:
test_dns_lookup.c:103: warning: pointer targets in passing argument 7 of ‘dns_lookup_v’ differ in signedness
mv dns_rr_to_pa.o junk
gcc -Wmissing-prototypes -Wformat -DUSE_TLS -DUSE_SASL_AUTH -DHAS_LDAP     -DDEF_DAEMON_DIR=\"/usr/lib/postfix\"     -DDEF_MANPAGE_DIR=\"/usr/share/man\"     -DDEF_HTML_DIR=\"/usr/share/doc/postfix-2.3.3/html\"     -DDEF_README_DIR=\"/usr/share/doc/postfix-2.3.3/README\"     -I/usr/include/openssl -I/usr/include/sasl -DHAS_PCRE  -g -O -I. -I../../include -DLINUX2 -DTEST -o dns_rr_to_pa dns_rr_to_pa.c libdns.a ../../lib/libutil.a -lssl -lcrypto -lsasl2 -lldap -llber -L/usr/lib -lpcre -ldb -lnsl -lresolv
mv junk dns_rr_to_pa.o
mv dns_rr_to_sa.o junk
gcc -Wmissing-prototypes -Wformat -DUSE_TLS -DUSE_SASL_AUTH -DHAS_LDAP     -DDEF_DAEMON_DIR=\"/usr/lib/postfix\"     -DDEF_MANPAGE_DIR=\"/usr/share/man\"     -DDEF_HTML_DIR=\"/usr/share/doc/postfix-2.3.3/html\"     -DDEF_README_DIR=\"/usr/share/doc/postfix-2.3.3/README\"     -I/usr/include/openssl -I/usr/include/sasl -DHAS_PCRE  -g -O -I. -I../../include -DLINUX2 -DTEST -o dns_rr_to_sa dns_rr_to_sa.c libdns.a ../../lib/libutil.a -lssl -lcrypto -lsasl2 -lldap -llber -L/usr/lib -lpcre -ldb -lnsl -lresolv
mv junk dns_rr_to_sa.o
mv dns_sa_to_rr.o junk
gcc -Wmissing-prototypes -Wformat -DUSE_TLS -DUSE_SASL_AUTH -DHAS_LDAP     -DDEF_DAEMON_DIR=\"/usr/lib/postfix\"     -DDEF_MANPAGE_DIR=\"/usr/share/man\"     -DDEF_HTML_DIR=\"/usr/share/doc/postfix-2.3.3/html\"     -DDEF_README_DIR=\"/usr/share/doc/postfix-2.3.3/README\"     -I/usr/include/openssl -I/usr/include/sasl -DHAS_PCRE  -g -O -I. -I../../include -DLINUX2 -DTEST -o dns_sa_to_rr dns_sa_to_rr.c libdns.a ../../lib/libutil.a -lssl -lcrypto -lsasl2 -lldap -llber -L/usr/lib -lpcre -ldb -lnsl -lresolv
mv junk dns_sa_to_rr.o
mv dns_rr_eq_sa.o junk
gcc -Wmissing-prototypes -Wformat -DUSE_TLS -DUSE_SASL_AUTH -DHAS_LDAP     -DDEF_DAEMON_DIR=\"/usr/lib/postfix\"     -DDEF_MANPAGE_DIR=\"/usr/share/man\"     -DDEF_HTML_DIR=\"/usr/share/doc/postfix-2.3.3/html\"     -DDEF_README_DIR=\"/usr/share/doc/postfix-2.3.3/README\"     -I/usr/include/openssl -I/usr/include/sasl -DHAS_PCRE  -g -O -I. -I../../include -DLINUX2 -DTEST -o dns_rr_eq_sa dns_rr_eq_sa.c libdns.a ../../lib/libutil.a -lssl -lcrypto -lsasl2 -lldap -llber -L/usr/lib -lpcre -ldb -lnsl -lresolv
mv junk dns_rr_eq_sa.o
./dns_rr_to_pa `cat dns_rr_to_pa.in` >dns_rr_to_pa.tmp
diff dns_rr_to_pa.ref dns_rr_to_pa.tmp
rm -f dns_rr_to_pa.tmp
./dns_rr_to_sa `cat dns_rr_to_sa.in` >dns_rr_to_sa.tmp
diff dns_rr_to_sa.ref dns_rr_to_sa.tmp
rm -f dns_rr_to_sa.tmp
./dns_sa_to_rr `cat dns_sa_to_rr.in` >dns_sa_to_rr.tmp
diff dns_sa_to_rr.ref dns_sa_to_rr.tmp
1d0
< spike.porcupine.org -> 2001:240:587:0:2d0:b7ff:fe88:2ca7
2a2
> spike.porcupine.org -> 2001:240:587:0:2d0:b7ff:fe88:2ca7
make: [dns_sa_to_rr_test] Error 1 (ignored)
rm -f dns_sa_to_rr.tmp
./dns_rr_eq_sa `cat dns_rr_eq_sa.in` >dns_rr_eq_sa.tmp
diff dns_rr_eq_sa.ref dns_rr_eq_sa.tmp
1,3d0
< 2001:240:587:0:2d0:b7ff:fe88:2ca7 =?= 168.100.189.2
< tested by function: no
< tested by macro:    no
7c4
< 2001:240:587:0:2d0:b7ff:fe88:2ca7 =?= 168.100.189.3
---
> 2001:240:587:0:2d0:b7ff:fe88:2ca7 =?= 168.100.189.2
12a10,15
> 2001:240:587:0:2d0:b7ff:fe88:2ca7 =?= 168.100.189.3
> tested by function: no
> tested by macro:    no
> 168.100.189.2 =?= 2001:240:587:0:2d0:b7ff:fe88:2ca7
> tested by function: no
> tested by macro:    no
16c19
< 168.100.189.2 =?= 2001:240:587:0:2d0:b7ff:fe88:2ca7
---
> 168.100.189.2 =?= 2001:240:587:0:2d0:b7ff:febe:ca9f
22,24d24
< 168.100.189.2 =?= 2001:240:587:0:2d0:b7ff:febe:ca9f
< tested by function: no
< tested by macro:    no
make: [dns_rr_eq_sa_test] Error 1 (ignored)
rm -f dns_rr_eq_sa.tmp
[src/tls]
make: Nothing to be done for `tests'.
[src/xsasl]
make: Nothing to be done for `tests'.
[src/milter]
make: Nothing to be done for `tests'.
[src/master]
make: Nothing to be done for `tests'.
[src/postfix]
make: Nothing to be done for `tests'.
[src/smtpstone]
make: Nothing to be done for `tests'.
[src/sendmail]
make: Nothing to be done for `tests'.
[src/error]
make: Nothing to be done for `tests'.
[src/pickup]
make: Nothing to be done for `tests'.
[src/cleanup]
mv cleanup_masquerade.o junk
gcc -Wmissing-prototypes -Wformat -DUSE_TLS -DUSE_SASL_AUTH -DHAS_LDAP     -DDEF_DAEMON_DIR=\"/usr/lib/postfix\"     -DDEF_MANPAGE_DIR=\"/usr/share/man\"     -DDEF_HTML_DIR=\"/usr/share/doc/postfix-2.3.3/html\"     -DDEF_README_DIR=\"/usr/share/doc/postfix-2.3.3/README\"     -I/usr/include/openssl -I/usr/include/sasl -DHAS_PCRE  -g -O -I. -I../../include -DLINUX2 -DTEST -o cleanup_masquerade cleanup_masquerade.c ../../lib/libmaster.a ../../lib/libmilter.a ../../lib/libglobal.a ../../lib/libutil.a -lssl -lcrypto -lsasl2 -lldap -llber -L/usr/lib -lpcre -ldb -lnsl -lresolv
mv junk cleanup_masquerade.o
rm -f cleanup_masq.tmp
./cleanup_masquerade '' a.b.c,b.c [EMAIL PROTECTED]    >>cleanup_masq.tmp
./cleanup_masquerade 'xxx' a.b.c,b.c [EMAIL PROTECTED] >>cleanup_masq.tmp
./cleanup_masquerade 'yyy' a.b.c,b.c [EMAIL PROTECTED] >>cleanup_masq.tmp
./cleanup_masquerade '' !a.b.c,b.c [EMAIL PROTECTED]   >>cleanup_masq.tmp
./cleanup_masquerade '' a.b.c,b.c [EMAIL PROTECTED]       >>cleanup_masq.tmp
./cleanup_masquerade '' !a.b.c,b.c [EMAIL PROTECTED]      >>cleanup_masq.tmp
./cleanup_masquerade '' a.b.c,b.c [EMAIL PROTECTED]     >>cleanup_masq.tmp
./cleanup_masquerade '' a.b.c,b.c [EMAIL PROTECTED]         >>cleanup_masq.tmp
diff cleanup_masq.ref cleanup_masq.tmp
rm -f cleanup_masq.tmp
mv cleanup_milter.o junk
gcc -Wmissing-prototypes -Wformat -DUSE_TLS -DUSE_SASL_AUTH -DHAS_LDAP     -DDEF_DAEMON_DIR=\"/usr/lib/postfix\"     -DDEF_MANPAGE_DIR=\"/usr/share/man\"     -DDEF_HTML_DIR=\"/usr/share/doc/postfix-2.3.3/html\"     -DDEF_README_DIR=\"/usr/share/doc/postfix-2.3.3/README\"     -I/usr/include/openssl -I/usr/include/sasl -DHAS_PCRE  -g -O -I. -I../../include -DLINUX2 -DTEST -o cleanup_milter cleanup_milter.c cleanup_state.o cleanup_out.o cleanup_addr.o cleanup_out_recipient.o  ../../lib/libmaster.a ../../lib/libmilter.a ../../lib/libglobal.a ../../lib/libutil.a -lssl -lcrypto -lsasl2 -lldap -llber -L/usr/lib -lpcre -ldb -lnsl -lresolv
mv junk cleanup_milter.o
cp test-queue-file test-queue-file.tmp
chmod u+w test-queue-file.tmp
./cleanup_milter <cleanup_milter.in1
> #verbose on
> open test-queue-file.tmp
> add_rcpt xxxx
> add_rcpt yyyy
> del_rcpt [EMAIL PROTECTED]
> del_rcpt yyyy
> ins_header 2 X-Test-Header test header value 1
> ins_header 2 X-Test-Header test header value 2
> del_header 2 X-Test-Header
> ins_header 3 X-Test-Header test header value 3
> upd_header 1 X X-replaced-header replacement header text
> upd_header 1 X X-replaced-header replacement header text
> upd_header 1 X X-replaced-header replacement header text
> close
../postcat/postcat -ov test-queue-file.tmp 2>/dev/null >cleanup_milter.tmp
diff cleanup_milter.ref1 cleanup_milter.tmp
3,4c3,4
<        65 message_arrival_time: Sat May 13 21:04:18 2006
<        84 create_time: Sat May 13 21:04:27 2006
---
>        65 message_arrival_time: Sat May 13 18:04:18 2006
>        84 create_time: Sat May 13 18:04:27 2006
make: [cleanup_milter_test] Error 1 (ignored)
rm -f test-queue-file.tmp cleanup_milter.tmp
[src/smtpd]
../postmap/postmap hash:smtpd_check_access
./smtpd_check <smtpd_check.in >smtpd_check.tmp 2>&1
diff smtpd_check.ref smtpd_check.tmp
200,201c200
< ./smtpd_check: <queue id>: reject: CONNECT from foo[127.0.0.2]: 554 5.7.1 Service unavailable; Client host [127.0.0.2] blocked using relays.mail-abuse.org; from=<[EMAIL PROTECTED]> proto=SMTP helo=<123.123.123.123>
< 554 5.7.1 Service unavailable; Client host [127.0.0.2] blocked using relays.mail-abuse.org
---
> OK
make: [smtpd_check_test] Error 1 (ignored)
rm -f smtpd_check.tmp smtpd_check_access.*
../postmap/postmap hash:smtpd_check_access
./smtpd_check <smtpd_check.in2 >smtpd_check.tmp 2>&1
diff smtpd_check.ref2 smtpd_check.tmp
180,181c180
< ./smtpd_check: <queue id>: reject: CONNECT from foo[127.0.0.2]: 554 5.7.1 Service unavailable; Client host [127.0.0.2] blocked using relays.mail-abuse.org; from=<[EMAIL PROTECTED]> proto=SMTP helo=<friend.bad.domain>
< 554 5.7.1 Service unavailable; Client host [127.0.0.2] blocked using relays.mail-abuse.org
---
> OK
make: [smtpd_check_test2] Error 1 (ignored)
rm -f smtpd_check.tmp smtpd_check_access.*
../postmap/postmap hash:smtpd_check_access
./smtpd_check <smtpd_acl.in >smtpd_check.tmp 2>&1
diff smtpd_acl.ref smtpd_check.tmp
rm -f smtpd_check.tmp smtpd_check_access.*
../postmap/postmap hash:smtpd_check_access
./smtpd_check <smtpd_exp.in >smtpd_exp.tmp 2>&1
diff smtpd_exp.ref smtpd_exp.tmp
33,34c33
< ./smtpd_check: <queue id>: reject: RCPT from foo[127.0.0.2]: 554 5.7.1 Service unavailable; Client host [127.0.0.2] blocked using relays.mail-abuse.org; from=<[EMAIL PROTECTED]> to=<[EMAIL PROTECTED]> proto=SMTP helo=<foobar>
< 554 5.7.1 Service unavailable; Client host [127.0.0.2] blocked using relays.mail-abuse.org
---
> OK
45,46c44
< ./smtpd_check: <queue id>: reject: RCPT from foo[127.0.0.2]: 554 5.7.1 Service unavailable; Client host [127.0.0.2] blocked using relays.mail-abuse.org; from=<[EMAIL PROTECTED]> to=<[EMAIL PROTECTED]> proto=SMTP helo=<foobar>
< 554 5.7.1 Service unavailable; Client host [127.0.0.2] blocked using relays.mail-abuse.org
---
> OK
52,53c50
< ./smtpd_check: <queue id>: reject: RCPT from foo[127.0.0.2]: 554 5.7.1 Service unavailable; Client host [127.0.0.2] blocked using relays.mail-abuse.org=127.0.0.2; from=<[EMAIL PROTECTED]> to=<[EMAIL PROTECTED]> proto=SMTP helo=<foobar>
< 554 5.7.1 Service unavailable; Client host [127.0.0.2] blocked using relays.mail-abuse.org=127.0.0.2
---
> OK
110,111c107,108
< ./smtpd_check: <queue id>: reject: RCPT from spike.porcupine.org[168.100.189.2]: 554 5.7.1 Service unavailable; Helo command [example.tld] blocked using abuse.rfc-ignorant.org; Not supporting [EMAIL PROTECTED]; from=<[EMAIL PROTECTED]> to=<[EMAIL PROTECTED]> proto=SMTP helo=<example.tld>
< 554 5.7.1 Service unavailable; Helo command [example.tld] blocked using abuse.rfc-ignorant.org; Not supporting [EMAIL PROTECTED]
---
> ./smtpd_check: <queue id>: reject: RCPT from spike.porcupine.org[168.100.189.2]: 554 5.7.1 Service unavailable; Helo command [example.tld] blocked using abuse.rfc-ignorant.org; Not supporting [EMAIL PROTECTED]; from=<[EMAIL PROTECTED]> to=<[EMAIL PROTECTED]> proto=SMTP helo=<example.tld>
> 554 5.7.1 Service unavailable; Helo command [example.tld] blocked using abuse.rfc-ignorant.org; Not supporting [EMAIL PROTECTED]
make: [smtpd_exp_test] Error 1 (ignored)
rm -f smtpd_exp.tmp smtpd_check_access.*
./smtpd_token <smtpd_token.in >smtpd_token.tmp 2>&1
diff smtpd_token.ref smtpd_token.tmp
rm -f smtpd_token.tmp
../postmap/postmap hash:smtpd_check_access
./smtpd_check <smtpd_check.in4 >smtpd_check.tmp 2>&1
diff smtpd_check.ref4 smtpd_check.tmp
rm -f smtpd_check.tmp smtpd_check_access.*
../postmap/postmap hash:smtpd_check_access
./smtpd_check <smtpd_check_dsn.in >smtpd_check.tmp 2>&1
diff smtpd_check_dsn.ref smtpd_check.tmp
rm -f smtpd_check.tmp smtpd_check_access.*
./smtpd_check <smtpd_check_backup.in >smtpd_check.tmp 2>&1
make: [smtpd_check_backup_test] Error 1 (ignored)
diff smtpd_check_backup.ref smtpd_check.tmp
22,34c22
< OK
< >>> rcpt [EMAIL PROTECTED]
< ./smtpd_check: <queue id>: reject: RCPT from localhost[127.0.0.1]: 554 5.7.1 <[EMAIL PROTECTED]>: Recipient address rejected: Access denied; to=<[EMAIL PROTECTED]> proto=SMTP
< 554 5.7.1 <[EMAIL PROTECTED]>: Recipient address rejected: Access denied
< >>> permit_mx_backup_networks 168.100.189.5
< OK
< >>> rcpt [EMAIL PROTECTED]
< ./smtpd_check: <queue id>: reject: RCPT from localhost[127.0.0.1]: 554 5.7.1 <[EMAIL PROTECTED]>: Recipient address rejected: Access denied; to=<[EMAIL PROTECTED]> proto=SMTP
< 554 5.7.1 <[EMAIL PROTECTED]>: Recipient address rejected: Access denied
< >>> permit_mx_backup_networks 168.100.189.4
< OK
< >>> rcpt [EMAIL PROTECTED]
< OK
---
> ./smtpd_check: fatal: parameter inet_interfaces: no local interface found for 168.100.189.7
make: [smtpd_check_backup_test] Error 1 (ignored)
rm -f smtpd_check.tmp
[src/local]
make: Nothing to be done for `tests'.
[src/trivial-rewrite]
make: Nothing to be done for `tests'.
[src/qmgr]
make: Nothing to be done for `tests'.
[src/oqmgr]
make: Nothing to be done for `tests'.
[src/smtp]
make: Nothing to be done for `tests'.
[src/bounce]
echo queue_directory=. >main.cf
echo myhostname=example.com >>main.cf
MAIL_CONFIG=. ./bounce -SVzndump_templates >template_test.tmp
diff template_test.ref template_test.tmp
MAIL_CONFIG=. ./bounce -SVzndump_templates \
    -o bounce_template_file=template_test.ref > template_test.tmp
diff template_test.ref template_test.tmp
rm -f template_test.tmp
MAIL_CONFIG=. ./bounce -SVzndump_templates \
    -o bounce_template_file=2template_test.in > template_test.tmp
diff template_test.ref template_test.tmp
rm -f template_test.tmp
[src/pipe]
make: Nothing to be done for `tests'.
[src/showq]
make: Nothing to be done for `tests'.
[src/postalias]
./postalias map.in
for key in abc ghi; \
do \
    ./postalias -q ${key} map.in | diff map-${key}1.ref -; \
done
./postalias -f map.in
for key in ABC; \
do \
    ./postalias -fq ${key} map.in | diff map-u${key}1.ref -; \
done
rm -f map.in.db
./postalias map.in
for key in abc ghi; \
do \
    echo ${key} | ./postalias -q - map.in | diff map-${key}2.ref -; \
done
./postalias -f map.in
for key in ABC; \
do \
    echo ${key} | ./postalias -fq - map.in | diff map-u${key}2.ref -; \
done
rm -f map.in.db
[src/postcat]
make: Nothing to be done for `tests'.
[src/postconf]
make: Nothing to be done for `tests'.
[src/postdrop]
make: Nothing to be done for `tests'.
[src/postkick]
make: Nothing to be done for `tests'.
[src/postlock]
make: Nothing to be done for `tests'.
[src/postlog]
make: Nothing to be done for `tests'.
[src/postmap]
./postmap map.in
for key in abc ghi; \
do \
    ./postmap -q ${key} map.in | diff map-${key}1.ref -; \
done
./postmap -f map.in
for key in ABC; \
do \
    ./postmap -fq ${key} map.in | diff map-u${key}1.ref -; \
done
rm -f map.in.db
./postmap map.in
for key in abc ghi; \
do \
    echo ${key} | ./postmap -q - map.in | diff map-${key}2.ref -; \
done
./postmap -f map.in
for key in ABC; \
do \
    echo ${key} | ./postmap -fq - map.in | diff map-u${key}2.ref -; \
done
rm -f map.in.db
[src/postqueue]
make: Nothing to be done for `tests'.
[src/postsuper]
make: Nothing to be done for `tests'.
[src/qmqpd]
make: Nothing to be done for `tests'.
[src/spawn]
make: Nothing to be done for `tests'.
[src/flush]
make: Nothing to be done for `tests'.
[src/verify]
make: Nothing to be done for `tests'.
[src/virtual]
make: Nothing to be done for `tests'.
[src/proxymap]
make: Nothing to be done for `tests'.
[src/anvil]
make: Nothing to be done for `tests'.
[src/scache]
make: Nothing to be done for `tests'.
[src/discard]
make: Nothing to be done for `tests'.
[src/tlsmgr]
make: Nothing to be done for `tests'.
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to