Virtual mail ubuntu10.04,badh spam

Discussion in 'HOWTO-Related Questions' started by Brasse, Sep 16, 2010.

  1. Brasse

    Brasse New Member

    I've installed a virtual mail system according to:
    http://www.howtoforge.com/virtual-users-domains-postfix-courier-mysql-squirrelmail-ubuntu-10.04

    Everything except quota and squirrelmail.
    I have a lot(1-3 per day) of false-positives in my spam quarantine folder, and 90% of those are because of bad header. (most bad header senders uses Outlook, no suprises there.)

    I dont want to quarantine bad header mails at all, i want them delivered to the recipients mail box!
    It would be ok to tag bad header mails in the subject, but definetley no quarantine.

    Settings in < /etc/amavis/conf.d/20-debian_defaults >
    Code:
    $final_virus_destiny      = D_DISCARD;  # (data not lost, see virus quarantine)
    $final_banned_destiny     = D_REJECT;   # D_REJECT when front-end MTA
    $final_spam_destiny       = D_DISCARD;
    $final_bad_header_destiny = D_PASS;     # False-positive prone (for spam)
    Settings in < /etc/amavis/conf.d/21-ubuntu_defaults >
    Code:
    $final_virus_destiny      = D_DISCARD; # (defaults to D_BOUNCE)
    $final_banned_destiny     = D_DISCARD;  # (defaults to D_BOUNCE)
    $final_spam_destiny       = D_DISCARD;  # (defaults to D_REJECT)
    $final_bad_header_destiny = D_PASS;  # (defaults to D_PASS), D_BOUNCE suggested
    i have not really understood what file is used: 21-ubuntu_defaults or 20-debian_defaults?

    And how do i make the bad header mails find there way to the recipient instead of quarantine?


    BTW, thanks for a very good guide, i really appreciate you guys taking your time to set up theese guides! :)
     
  2. Brasse

    Brasse New Member

    I found another problem. It does not work as SMTP-relay. Except when someone tries to send to a mail account in our domain

    Lets call our domain companyx.se .
    So when someone on the outside(lets say user@hotmail.com) selects SMTP-server companyx.se and send a mail to:
    user@gmail.com
    The user will recieve an error saying: relay access denied
    However if someone send a mail from the outside (user@hotmail.com) with SMTP: companyx.se to my account on company.x (brasse@companyx.se) the mail will arrive.

    In other words, our server relays mails if they are sent to an account in our domain, but not if sent to an account outside our domain.


    All this is tried without any authentication to the SMTP-server.

    How can i deny ALL SMTP access without proper authtentication?
     
  3. falko

    falko Super Moderator

    That is how it's supposed to be for users that don't authenticate.
     
  4. Brasse

    Brasse New Member

    Is there no way to fix this bad-header thing?
     

Share This Page