Mostrando entradas con la etiqueta postfix. Mostrar todas las entradas
Mostrando entradas con la etiqueta postfix. Mostrar todas las entradas

lunes, 16 de mayo de 2011

ClearOS Adding a second listener port on Postfix (great for closed ISP SMTP ports)

  1. Login to your ClearOS as root (use Putty.exe)
  2. Edit /etc/postfix/master.cf as follows: find the line that says "smtp inet n - n - - smptd"copy the line or change the line "smtp" to "2525" or whatever port you want the postfix daemon to use.
  3. vi /etc/postfix/master.cf
  4. to copy line press Y
  5. to paste line press P
  6. replace on the pasted line the word smtp to 2525
  7. press Esc
  8. wq!

Restart postfix "/etc/init.d/postfix restart".

Go to Network- Firewall- Incoming
Add Nickname/port: SMTP2525
Select: TCP
PortBox: 2525
click add

Configure Outlook advanced SMTP options to point to port 2525 instead of default 2525

B

martes, 30 de noviembre de 2010

Borrar cola de postfix de un spammer

Para detener el correo:
service postfix stop
Para ver toda la cola:
mailq

Para crear un script para borrar la cola de acuerdo al sender variable $7

vi /root/postfix_queue.sh
mailq | awk 'BEGIN { RS = "" }
# $7=sender, $8=recipient1, $9=recipient2
{ if ($7 == "spammer@domain.com")
print $1 }
' | tr -d '*!' | postsuper -d -

Para grabar:
ESC :wq

Para dar permiso de ejecucion al script
chmod 755 /root/postfix_queue.sh

Para correr el script
/root/postfix_queue.sh

SUERTE!