Ubuntu bouncing spam emails

Discussion in 'Installation/Configuration' started by ant.hill, Mar 20, 2015.

  1. ant.hill

    ant.hill New Member

    Not sure if this is the correct place to post this but hoping someone can point me in the right direction.
    I used this tutorial (or very similar) for building a webserver:
    I've setup postfix as a relayhost, using sendgrid to send emails as my ISP disallows me to send direct from my IP in postfix.
    All this is working fine.
    Only i've noticed that my sendgrid reputation is going down because i have a lot of bounced emails. Upon investigation it looks like spam messages being sent to my server are being bounced back to sender.
    I've been through the amavis settings and set all configuration to DISCARD thinking it was this, but still emails are being bounced back.
    Any ideas how i can stop bouncing these emails back?
  2. ant.hill

    ant.hill New Member

    I think I may have solved the issue by adding the following two lines the /etc/postfix/header_checks:

    /^Content-Type: multipart\/report; report-type=delivery-status\;/ REJECT no third-party DSNs
    /^Content-Type: message\/delivery-status; / REJECT no third-party DSNs

Share This Page