anomy-list

Problem with integration postfix + sanitizer

From: Lonely Wolf (143014@xyz.molar.is)
Date: Fri 09 Dec 2005 - 11:01:17 GMT

  • Next message: Derrick Webber: "Re: Problem with integration postfix + sanitizer"

    Hello all from Italy (Rome) ^^
     
    My postfix is up and running (postfix + courier) and no procmail, so i
    started from http://www.advosys.ca/papers/postfix-filtering.html
    I followed everything (i believe :P), i've tested separately
    spamassassin and your sanitizer and seems to work

    root@smtp:/usr/local/anomy/bin# ./sanitizer.pl < ../text.txt
    From: <xxx@xxxxxxx>
    To: <www@xxxxxxx>
    X-Sanitizer: This message has been sanitized!
    X-Sanitizer-URL: http://mailtools.anomy.net/
    X-Sanitizer-Rev: $Id: Sanitizer.pm,v 1.92 2005/08/05 13:06:19 bre Exp $

    i've created the user filth of the filther group, changed the permission on
    /var/spool/filter

    drwxrwx--- 3 root filther 4096 2005-12-07 18:46 filter/

    /usr/local
    drwxr-x--- 5 root filther 4096 2005-12-07 17:39 anomy/

    and added the line in master.cf

    filter unix - n n - - pipe
        flags=Rq user=filth argv=/usr/local/anomy/filter.sh -f ${sender} -- ${recipient}

    and in main.cf (configured with 2 virtual_alias):

    smtpd_recipient_restrictions = permit mynetworks, reject_unauth_destination,
            check_recipient_access hash:/etc/postfix/filtered_domains

    where mynetworks is something like 192.168.0.0/24 and loopback and filtered_domains is:

    mydomain_1.org FILTER filter:dummy
    mydomain_2.org FILTER filter:dummy

    (could u explain me the last column? why dummy?)

    but when i
    #su filter

    and from /var/spool/filter i issue the command

    cat text.txt | /usr/local/anomy/filter.sh -f sender_in_text.txt -- root (or another existent account)

    nothing happen.
    no error message, and nothing from /var/log/maillog.
    Should i edit content_filter? how? Let me understand :|
    if i use my mail client to send mail via my smtp i saw only "one" instance of smtp transaction, not
    the two as stated in that guide.

    Knowing me should be a stupid thing, but what i've forgot?
    where is the mistake or how i can found it?
    Can u help me, please?
    I've changed the paths in filter.sh obviously and pointed to the location of my sendmail in
    SENDMAIL="/usr/lib/courier/bin/sendmail -i" (drwxr-xr-x 9 courier daemon 4096 2005-12-01 21:54 courier/)
    and turned on the anomy.log in /tmp (it's empty!!)

    :''(

    Thanks

    -- 
    Lonely Wolf
    

    Key Fingerprint 1317 C2F4 2B93 FA8E DB91 C1CB 89A7 AFF0 EAB1 B4A3

    "Nullum Magnum Ingenium Sine Mixtura Dementiae Fuit" - Seneca

    -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v1.4.1 (MingW32)

    mQGiBEJBmBARBACohmV+OVYzzPza0nhS8FLuvWxM1FyVM0PB8fuwHB5Z14bFS856 jZnMsMN0WYkCNASbZkPo8lpPmzpqFtioIkCq5aAwrj/0Sov8EqTbR/zH9UFKyASN I8MNKZhKXgujdbkqhlRsfWLFwuaZ432vcQcnvx0qHWKmxKxtdya6AMHhgwCg3Un8 lmfTYg/NUFDMTLofI6LkxLkD/RYS+HGWADPRM2g+CUo9fIbDX5oPqLKbNgcIjSYS 32jr9NW9poaCJuq5KsLUMva++auoL7nphpXQVeevG4Z3wzrQd6zkckl0K6VNfebr v3pAQA0r6/qV5WZmQIRly4zfjjX+In8Z7UeAQN7nhG7N9t2nbulq+eOkA2xeibjW PJXhA/9z3I+jF3a9WTEa6WC1depgZnEZzsjG8EfWl89WRjFXvEo6c7a4OAevjLCb o0Bi+OB8o/kYLHNukC8cuqOHHAEepRwGbcvNQuS3NtGKdof7kvqCPRQoOZ3XJerT NrU1IuVEHcqt3lh7EoEKMaCmODdj0pxKDMnNseQxXRolN2racLRkTG9uZWx5IFdv bGYgKE51bGx1bSBNYWdudW0gSW5nZW5pdW0gU2luZSBNaXh0dXJhIERlbWVudGlh ZSBGdWl0IC0gU2VuZWNhKSA8bG9uZWx5d29sZkBvbG9ncmFmaXgub3JnPohkBBMR AgAkBQJCQZgQAhsDBQkDwmcABgsJCAcDAgMVAgMDFgIBAh4BAheAAAoJEFf8Ynnf UgekwCcAoJVCLNEw9j1tOMc9TeEjVf6CMWxbAJ9X+Ki1n2fYGh9qwgFDKvEbLq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