Are you the publisher? Claim or contact us about this channel


Embed this content in your HTML

Search

Report adult content:

click to rate:

Account: (login)

More Channels


Channel Catalog


Channel Description:

The most recent posts in Spamassassin not working? General documentation missing....
    0 0

    i wrote a new FAQ about how to enable signning disclaimer, please visit:
    http://www.iredmail.org/faq.html


    0 0

    ZhangHuangbin wrote:

    i wrote a new FAQ about how to enable signning disclaimer, please visit:
    http://www.iredmail.org/faq.html

    I make changes:

    $sa_tag_level_deflt  = -1000; # test
    $defang_maps_by_ccat{+CC_CATCHALL} = [ 'disclaimer' ];

    altermime --> installed

    >Aug 31 15:01:53 iredos amavis[3091]: Found $altermime       at /usr/bin/altermime

    debug for a message:
    Aug 31 15:02:43 iredos amavis[3094]: (03094-01) spam_scan: score=1.62 autolearn=no tests=[AWL=0.148,DCC_CHECK=1.37,HTML_MESSAGE=0.001,MIME_HTML_MOSTLY=0.001,RDNS_NONE=0.1]

    [...]
    Aug 31 15:02:43 iredos amavis[3094]: (03094-01) headers CLUSTERING: NEW CLUSTER <info@yyyyyy.com>: score=1.62, tag=1, tag2=0, local=0, bl=, s=, mangle=
    Aug 31 15:02:43 iredos amavis[3094]: (03094-01) header: X-Virus-Scanned: amavisd-new at mail.yyyyyy.com\n
    Aug 31 15:02:43 iredos amavis[3094]: (03094-01) header: Received: from localhost.localdomain ([127.0.0.1])\n\tby localhost (iredos.iredmail.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 4tfRz4deTGLj for <info@yyyyyy.com>;\n\tMon, 31 Aug 2009 15:02:42 -0100 (GMT+1)\n
    Aug 31 15:02:43 iredos amavis[3094]: (03094-01) headers CLUSTERING: done all 1 recips in one go


    resulting header:
    Return-Path: <io@zzzzzzz.com>
    Delivered-To: info@yyyyyy.com
    Received: from localhost (localhost.localdomain [127.0.0.1])
        by localhost.localdomain (iRedMail) with ESMTP id 7B488B0502
        for <info@yyyyyy.com>; Mon, 31 Aug 2009 15:08:18 -0100 (GMT+1)
    X-Virus-Scanned: amavisd-new at mail.yyyyyy.com
    Received: from localhost.localdomain ([127.0.0.1])
        by localhost (iredos.iredmail.org [127.0.0.1]) (amavisd-new, port 10024)
        with ESMTP id xAs8ytZ1XcRH for <info@yyyyyy.com>;
        Mon, 31 Aug 2009 15:08:17 -0100 (GMT+1)
    X-Original-Helo: smtpi3.ngi.it (iRedMail: http://code.google.com/p/iredmail/)
    Received: from smtpi3.xxxx.xx (unknown [...])
        by localhost.localdomain (iRedMail) with ESMTP id 67DCBB0500
        for <info@yyyyyy.com>; Mon, 31 Aug 2009 15:08:17 -0100 (GMT+1)
    Received: from xxx003 (...)
        by smtpi3.ngi.it (Postfix) with ESMTP id B9B49318284
        for <info@yyyyyy.com>; Mon, 31 Aug 2009 15:07:20 +0200 (CEST)
    From:  <io@zzzzzzz.com>
    To: "'Info account'" <info@yyyyyy.com>
    Subject: ciao 4
    Date: Mon, 31 Aug 2009 15:07:32 +0200
    Message-ID: <004101ca2a3c$007da8c0$0178fa40$@com>
    MIME-Version: 1.0
    Content-Type: multipart/alternative;    boundary="----=_NextPart_000_0042_01CA2A4C.C40678C0"
    X-Mailer: Microsoft Office Outlook 12.0
    Thread-Index: AcoqOsGruvi2wLTcRoWnR/suGOatCA==
    Content-Language: it


    0 0

    you only posted mail header, right? But disclaimer text is displayed as part of mail body.


    0 0

    No disclaimer (less important)
    No tag of spamassassin in header.


    0 0

    What's the value of '@local_domains_maps' in /etc/amavisd.conf (RHEL/CentOS) or /etc/amavis/conf.d/50-user (Debian/Ubuntu)?


    0 0

    $mydomain = "mail.xxx.com";
    @local_domains_maps = ( [".$mydomain","iredmail.org"] );

    the same result is obtained for both the internal and external mail.


    0 0

    Don't use 'iredmail.org' for testing...

    Amavisd inserts mail header when:
    - domain name is listed in @local_domains_maps.
    - spam score is higher than $sa_tag_level_deflt


    0 0

    ZhangHuangbin wrote:

    Don't use 'iredmail.org' for testing...

    Amavisd inserts mail header when:
    - domain name is listed in @local_domains_maps.
    - spam score is higher than $sa_tag_level_deflt

    OKKKKKKKKKKKKK

    Works, but in a multidomain configuration I must add all domain manually ?


    0 0

    Sabbiolina wrote:

    Works, but in a multidomain configuration I must add all domain manually ?

    YES.


    0 0

    I know - old thread, but:

    Is there any way to get around that? I mean what's the idea behind having iRedAdmin or postfixAdmin for adding new domains, if I still need to edit config files and restart services?

    Are there any other files I need to update when I add new domains?


    0 0

    Ok, so after googling a little bit, seems like I found a solution for this problem.
    There is a possibility to make amavis check the database for the list of local domains.
    This works by adding $sql_select_policy and @lookup_sql_dsn with the DB connection info.

    Possibly this would be a good change for 0.6.0.
    The following changes have been done by myself:

    @local_domains_maps commented out, select added.
    Please be aware, that my current query assumes all of my domains beeing local. It would be an option to extend the SQL schema to have a real "local" flag per domain.

    #@local_domains_maps = ( [".$mydomain","mail.mydomain.de"] );  # list of all local domains
    $sql_select_policy = 'SELECT "Y" AS local FROM domain WHERE CONCAT("@", domain) IN (%k)';

    Second required change was to add DSN information for DB to amavis

    @lookup_sql_dsn = ( ['DBI:mysql:database=vmail;host=127.0.0.1;port=3306', 'vmail', 'your password comes here'] );
    # @lookup_sql_dsn =
    #   ( ['DBI:mysql:database=mail;host=127.0.0.1;port=3306', 'user1', 'passwd1'],
    #     ['DBI:mysql:database=mail;host=host2', 'username2', 'password2'],
    #     ["DBI:SQLite:dbname=$MYHOME/sql/mail_prefs.sqlite", '', ''] );

    Hopefully this helps others.
    This was very critical to myself, as I have other ppl having access to postfixAdmin but not to the physical machine.
    This way they are able to add new domains with spam filtering activated.

    Regards,
    Phil


    0 0

    Already implemented this in LDAP, with 'amavisLocal=True'.


    0 0

    @ White :

    THANK YOU,
    this is an improvement I was looking for too (and banging my head bcoz customers were getting SPAM emails on hosted virtual domains).

    It seems It's working (headers in emails now have X-SPAM flags), I just need to let Spamassassin learn new spam tags as time goes by (and hopefully block the sh-t out) ...


    0 0

    ZhangHuangbin wrote:

    Already implemented this in LDAP, with 'amavisLocal=True'.

    Hi!
    Is this feature available in MySQL?

    Regards.


    0 0

    maltamirano wrote:
    ZhangHuangbin wrote:

    Already implemented this in LDAP, with 'amavisLocal=True'.

    Hi!
    Is this feature available in MySQL?

    No, sorry.