• # Ok, let's go

    Posté par (site web personnel) . En réponse au message configuration fastidieuse du trio clamav amavis-new postfix. Évalué à 1.

    Nota: postfix ne scannera que les mails qu'il recevra, donc il te faudra fetchmail par ex pour les recuperer d'abord. ET ne pas demander a fetchmail de passer par un mda directement. 1 main.cf:
    # see /usr/share/postfix/main.cf.dist for a commented, fuller
    # version of this file.
    # Do not change these directory settings - they are critical to Postfix
    # operation.
    command_directory = /usr/sbin
    daemon_directory = /usr/lib/postfix
    program_directory = /usr/lib/postfix
    setgid_group = postdrop
    biff = no
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    transport_maps = hash:/etc/postfix/transport
    # domaine interne, enregistré dans le dns local
    myhostname = isis.localnet.fr
    myorigin = localnet.fr
    mydomain = localnet.fr
    mydestination = $myhostname, $mydomain, localhost.$mydomain, autres.domaines
    smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
    mynetworks = 127.0.0.0/8, 192.168.0.0/24
    mailbox_command = procmail -a "$EXTENSION"
    mailbox_size_limit = 0
    recipient_delimiter = +
    append_dot_mydomain = yes
    home_mailbox = Maildir/
    default_transport = uucp:uucpssh
    content_filter = smtp-amavis:[127.0.0.1]:10024
    max_use = 10
    
    2:master.cf a rajouter a la fin:
    smtp-amavis unix - - n - 2 lmtp -o lmtp_data_done_timeout=
    1200 -o lmtp_send_xforward_command=yes
    127.0.0.1:10025 inet n - n - - smtpd -o content_filter= -o local_recipient_maps= -o relay_recipient_maps= -o smtpd_restriction_classes= -o smtpd_client_restrictions= -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o mynetworks=127.0.0.0/8 -o strict_rfc821_envelopes=yes -o smtpd_error_sleep_time=0 -o smtpd_soft_error_limit=1001 -o smtpd_hard_error_limit=1000
    
    pour /etc/amavis/amavisd.conf j'ai pris la conf d'example et j'ai un peu adapté pour le spam et autre.