Skip to content

Instantly share code, notes, and snippets.

@cerealskill
Created November 10, 2017 13:48
Show Gist options
  • Select an option

  • Save cerealskill/894f4fc301a2ffe544a5fa96da7cb337 to your computer and use it in GitHub Desktop.

Select an option

Save cerealskill/894f4fc301a2ffe544a5fa96da7cb337 to your computer and use it in GitHub Desktop.
Postfix Stop Send SPAM MAIL-DAEMON
## This is the mail-log with the activities from=<> (SPAM) to relay
Nov 9 10:22:34 lonquen postfix/cleanup[22653]: 7690E9FE0D: message-id=<20171109132234.7690E9FE0D@mx.mailserver.cl>
Nov 9 10:22:34 lonquen postfix/qmgr[12006]: 7690E9FE0D: from=<>, size=9957, nrcpt=1 (queue active)
Nov 9 10:22:34 lonquen postfix/bounce[22665]: 391CC9FE10: sender non-delivery notification: 7690E9FE0D
Nov 9 10:22:34 lonquen postfix/qmgr[12006]: 391CC9FE10: removed
Nov 9 10:22:42 lonquen postfix/cleanup[22653]: D2E5B9FE0A: message-id=<20171109132242.D2E5B9FE0A@mx.mailserver.cl>
Nov 9 10:22:42 lonquen postfix/qmgr[12006]: D2E5B9FE0A: from=<>, size=9509, nrcpt=1 (queue active)
Nov 9 10:22:42 lonquen postfix/bounce[22665]: 8D1199FE0E: sender non-delivery notification: D2E5B9FE0A
Nov 9 10:22:42 lonquen postfix/qmgr[12006]: 8D1199FE0E: removed
Nov 9 10:22:46 lonquen postfix/smtp[22668]: 7690E9FE0D: to=<kame@jtmlsk.info>, relay=jtmlsk.info[186.103.186.230]:25, delay=12, delays=0.01/0/12/0, dsn=4.4.2, status=deferred (lost connection with jtmlsk.info[186.103.186.230] while receiving the initial server greeting)
Nov 9 10:22:54 lonquen postfix/smtp[22581]: D2E5B9FE0A: to=<eljardinero@vtmlsx.info>, relay=vtmlsx.info[186.103.186.230]:25, delay=12, delays=0.01/0/12/0, dsn=4.4.2, status=deferred (lost connection with vtmlsx.info[186.103.186.230] while receiving the initial server greeting)
## EDIT /etc/postfix/master.cf
# Buscar la siguiente linea en el archivo de configuraion
bounce unix - - n - 0 bounce
# Reemplazar por la siguiente linea (change bounce with discard)
bounce unix - - n - 0 discard
# Reiniciamos el servidor
service postfix restart
# and enjoy the magic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment