Архиви на блога

catch spam from apache

Sometimes is very hard to debug from which virtual host spam is This can be check very easy with this trick create a new file  vim /usr/local/bin/phpsendmail place inside it #!/usr/bin/php <?php $sendmail = ‘/usr/sbin/sendmail’; $logfile = ‘/var/log/mail.form’; /* Get

С етикет: , , , ,
Публикувано в linux, php

dkim on debian with postfix

This is a guide to installing OpenDKIM for multiple domains on a Postfix-installtion on Debian. I tried some other guides but kept running into problems, so this is how I did it. Among others, Google Gmail and Yahoo mail check

С етикет: , ,
Публикувано в linux

postfix queue lifetime

postconf -e maximal_queue_lifetime=[time] Time can be in seconds (s), minutes (m), hours (h), days (d), and weeks (w).

С етикет: , ,
Публикувано в linux

изчистване на пощенската опашката на postfix

Изчистване на писамата от  специфичен адрес: mailq | tail +2 | grep -v ‘^ *(‘ | awk  ‘BEGIN { RS = „“ } { if ($8 == „email@address.com“ && $9 == „“) print $1 } ‘ | tr -d ‘*!’

С етикет: ,
Публикувано в linux