• Whitelisting outbound specific To addresses

    From Michael Grant@21:1/5 to All on Fri Apr 16 09:23:20 2021
    I am trying to report some virus ridden spam messages to some sites like spamcop but sometimes one of my milters blocks the message.

    Adding this to the access file doesn't help:

    To:spamreport@example.com OK

    I don't want to bypass the milters on all messages submitted locally or submitted via authenticated users. I just want to whitelist specific destinations. Is it possible? How might I configure this?

    Michael Grant

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Claus =?iso-8859-1?Q?A=DFmann?= @21:1/5 to Michael Grant on Fri Apr 16 17:23:07 2021
    Michael Grant wrote:
    I am trying to report some virus ridden spam messages to some sites like spamcop but
    sometimes one of my milters blocks the message.

    Then you have to configure the milter accordingly. Nothing in
    sendmail will change its behaviour -- unless you turn off the milter:

    DaemonPortOptions=options
    ..
    InputMailFilters List of input mail filters for the daemon

    --
    Note: please read the netiquette before posting. I will almost never
    reply to top-postings which include a full copy of the previous
    article(s) at the end because it's annoying, shows that the poster
    is too lazy to trim his article, and it's wasting the time of all readers.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Grant Taylor@21:1/5 to Michael Grant on Fri Apr 16 13:12:41 2021
    On 4/16/21 10:23 AM, Michael Grant wrote:
    I don't want to bypass the milters on all messages submitted locally
    or submitted via authenticated users. I just want to whitelist
    specific destinations. Is it possible? How might I configure this?

    As Claus said, you will need to take that up with your milter. I've
    found that different milters have significantly different feature sets.
    -- I recently switched to milter-clamc from SnertSoft, away from the
    milter in my distro's repo, explicitly because I could tell milter-clamc
    to ignore messages from and / or to specific addresses via entries in Sendmail's Access DB file.

    Something else you might consider doing is an additional DaemonPort and
    use with custom MailFilter entries.

    Note: You will need to switch to MAIL_FILTER from INPUT_MAIL_FILTER as
    the latter automatically adds said filter to DaemonPort InputMailFilter options. Conversely the former requires explicit configuration.

    Ultimately you can have an alternate DaemonPort that has different
    filtering for very specific use cases.



    --
    Grant. . . .
    unix || die

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael Grant@21:1/5 to All on Fri Apr 16 13:00:35 2021
    Thanks. I suspected as much. I'm familiar with the snertsoft milters, I've even licensed them in the past. One of my milters is the BitDefender milter which I could not find a way to control this. I don't recall if Anthony ever did a milter proxy to
    another milter.

    Another option is to use a script that talks SMTP directly. I'm looking for a decent simple one now or I'll roll yet another one myself.

    Michael Grant

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Grant Taylor@21:1/5 to Michael Grant on Fri Apr 16 14:19:03 2021
    On 4/16/21 2:00 PM, Michael Grant wrote:
    Thanks. I suspected as much. I'm familiar with the snertsoft
    milters, I've even licensed them in the past.

    I too have licensed SnertSoft milters in the past. That was multiple
    jobs ago.

    One of my milters is the BitDefender milter which I could not find
    a way to control this.

    I'm not familiar with it.

    I don't recall if Anthony ever did a milter proxy to another milter.

    I'm not aware of Anthony ever doing that. But I think there is a milter
    that does do that. Check out Milter-Manager

    https://milter-manager.osdn.jp/

    I've looked at Milter-Manager a couple of times, but I've not /needed/
    to go down that path. Read: Other changes absolved the need.

    Another option is to use a script that talks SMTP directly.
    I'm looking for a decent simple one now or I'll roll yet another
    one myself.

    Been there. Done that. SMTP engines aren't hard to write, but they are annoying to write.



    --
    Grant. . . .
    unix || die

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)