Loading ...
Sorry, an error occurred while loading the content.

Re: Rejected Mail

Expand Messages
  • Roman Gelfand
    The same recepient
    Message 1 of 5 , Jul 31, 2013
    • 0 Attachment
      The same recepient

      On Wed, Jul 31, 2013 at 4:52 PM, Wietse Venema <wietse@...> wrote:
      > Roman Gelfand:
      >> Is there a way to blacklist outbound email which was previously hard-bounced?
      >>
      >> For instance, if outgoing email comes back with codes 550 or 554, I
      >> would like that on subsequent times it doesn't leave the server.
      >
      > You want to block:
      > - The same sender?
      > - The same recipient?
      > - The same content?
      > - Something else?
      >
      > Wietse
    • Wietse Venema
      ... You need a logfile analyzer that mines the maillog file, or a program that processes Postfix s standardized bounce messages. Once you have a bad recipient
      Message 2 of 5 , Jul 31, 2013
      • 0 Attachment
        Roman Gelfand:
        > Is there a way to blacklist outbound email which was previously hard-bounced?
        >
        > For instance, if outgoing email comes back with codes 550 or 554, I
        > would like that on subsequent times it doesn't leave the server.

        Wietse:
        > You want to block:
        > - The same sender?
        > - The same recipient?
        > - The same content?
        > - Something else?

        Roman Gelfand:
        > The same recepient

        You need a logfile analyzer that mines the maillog file, or a program
        that processes Postfix's standardized bounce messages.

        Once you have a bad recipient you can block it with a transport table:

        /etc/postfix/main.cf:
        transport_maps = hash:/etc/postfix/transport

        /etc/postfix/transport:
        user@... error:5.1.0 Recipient is undeliverable

        That will prevent the Postfix SMTP server from accepting the
        recipient, and will prevent Postfix sendmail submissions from
        reaching the Postfix SMTP client.

        Wietse
      • Roman Gelfand
        excellent.. thank you
        Message 3 of 5 , Jul 31, 2013
        • 0 Attachment
          excellent.. thank you

          On Wed, Jul 31, 2013 at 7:32 PM, Wietse Venema <wietse@...> wrote:
          > Roman Gelfand:
          >> Is there a way to blacklist outbound email which was previously hard-bounced?
          >>
          >> For instance, if outgoing email comes back with codes 550 or 554, I
          >> would like that on subsequent times it doesn't leave the server.
          >
          > Wietse:
          >> You want to block:
          >> - The same sender?
          >> - The same recipient?
          >> - The same content?
          >> - Something else?
          >
          > Roman Gelfand:
          >> The same recepient
          >
          > You need a logfile analyzer that mines the maillog file, or a program
          > that processes Postfix's standardized bounce messages.
          >
          > Once you have a bad recipient you can block it with a transport table:
          >
          > /etc/postfix/main.cf:
          > transport_maps = hash:/etc/postfix/transport
          >
          > /etc/postfix/transport:
          > user@... error:5.1.0 Recipient is undeliverable
          >
          > That will prevent the Postfix SMTP server from accepting the
          > recipient, and will prevent Postfix sendmail submissions from
          > reaching the Postfix SMTP client.
          >
          > Wietse
        Your message has been successfully submitted and would be delivered to recipients shortly.