ezmlm-issubn(1) ezmlm-issubn(1) NNAAMMEE ezmlm-issubn - test to see if an address is subscribed to a mailing list SSYYNNOOPPSSIISS eezzmmllmm--iissssuubbnn [ --nnNN ] _d_i_r _[ _d_i_r_1 _._._. _] DDEESSCCRRIIPPTTIIOONN eezzmmllmm--iissssuubbnn checks to see if the address obtained from the environment variable _S_E_N_D_E_R is subscribed to the mailing list stored in _d_i_r or the mailing list in _d_i_r_1 or ... If _S_E_N_D_E_R is not defined eezzmmllmm--iissssuubbnn exits with an error. If _S_E_N_D_E_R is on [any of] the mailing list[s], eezzmmllmm--iissssuubbnn exits with a zero exit code. If _b_o_x@@_d_o_m_a_i_n is not on the mailing list, eezzmmllmm--iissssuubbnn exits 99. This exit code is non-success from a shell point of view, but to qmail it means "success and skip remaining lines in the .qmail file). Thus, a simple way to execute a delivery if the criteria are met is to place the eezzmmllmm--iissssuubbnn line first, followed by the action line. If SENDER is a subscriber, the action line is executed, if not, the line is ignored without the generation of an error condition. To generate a fatal error, just: |/path/ezmlm-issubn _d_i_r_1 _._._. || (echo "err msg"; exit 100) |/path/action_for_subscribers |/path/more_for_subscribers eezzmmllmm--iissssuubbnn exits 100 on permanent and 111 on temporary errors. OOPPTTIIOONNSS --nn Negate exit code. Exit 99 if SENDER is a subscriber and exit 0 if not. This is useful when trying to exclude SENDERs. --NN (Default.) Normal exit codes: 0 is the address is in any of the lists, 99 if not. SSEEEE AALLSSOO ezmlm-list(1), ezmlm-manage(1), ezmlm-make(1), ezmlm-send(1), ezmlm- sub(1), ezmlm-unsub(1), ezmlm(5) ezmlm-issubn(1)