Do not deliver any outgoing mail

Discussion in 'Mail Gateway: Installation and configuration' started by jumangi, Oct 7, 2018.

  1. jumangi

    jumangi New Member

    Joined:
    Oct 7, 2018
    Messages:
    1
    Likes Received:
    0
    Hi folks! I'm using the notorious PMG in a closed lab to monitor and get statistics on malware spambot infections. I am able to successfully re-route all outgoing SMTP mail via an iptables rule pointed to the PMG outgoing receiver on port 26. I need to ensure that all email is processed by PMG, but none of the email should actually be delivered to the intended recipients.

    In the past I have captured all outgoing mail locally using smtp-sink (part of the postfix package), but would like to get better statistics and ClamAV results on the attachments. It appears that the outgoing mail can be delivered to the smarthost, but is there a way to just silently drop all outgoing email and not forward it anywhere?

    I appreciate any suggestions and input.
     
  2. heutger

    heutger Active Member

    Joined:
    Apr 25, 2018
    Messages:
    254
    Likes Received:
    67
    Use a smarthost as outgoing hop and drop there all incoming mails, e.g. with postfix header checks. You may also try PMG rules to block the mails then, but I'm afraid, you won't then get your statistics as the mail is blocked by rule.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice