Postfix User:
> I apologize if this is not the correct place to ask this question.
> 
> I am using the "clamav milter" with Postfix. I assume it is checking
> mail both coming and going. I want it to only filter mail I receive. Is
> that possible in Postfix?

There may be a way in clamav milter to whitelist mail from a local
IP address. Otherwise, use different smtpd settings for dufferent
clients:

/etc/postfix.master.cf:
    # ==================================================================
    # service      type  private unpriv  chroot  wakeup  maxproc command
    #                    (yes)   (yes)   (yes)   (never) (100)
    # ==================================================================
    # Service for remote MTAs.
    1.2.3.4:smtp   inet  n       -       n       -       -       smtpd
        -o smtpd_milters=inet:xxx:yyy

    # All other services have smtpd_milters turned off.
    # Submission service for mail clients.
    1.2.3.4:submission inet  n       -       n       -       -       smtpd
        -o smtpd_milters=
        ...other submission settings...
    # Legacy submission service for mail clients.
    1.2.3.4:smtps inet  n       -       n       -       -       smtpd
        -o smtpd_milters=
        ...other smtps settings...
    # Mail from localhost.
    127.0.0.1:smtp inet  n       -       n       -       -       smtpd
        -o smtpd_milters=

But, if you are sending mail that your clamav milter would block,
why would it not be blocked by remote systems?

        Wietse

Reply via email to