mailq | grep KEYWORD | awk ‘{print $1}’ | postsuper -d -mailq | grep KEYWORD […]
Category: Quick Tips
How to install nagios3 on Ubuntu server
apt-get install nagios3 nagios-nrpe-plugin nagios-plugins dpkg-statoverride –update –add nagios www-data 2710 /var/lib/nagios3/rw dpkg-statoverride –update –add […]
ProFTPd service shuts down automatically
Edit: /etc/init.d/proftpd/etc/init.d/proftpd Find this line: start-stop-daemon –stop –signal $SIGNAL –quiet –pidfile "$PIDFILE"start-stop-daemon –stop –signal $SIGNAL […]
IPtables port forwarding
Бързи бележки за 1-2 команди и прансочване на портове 🙂 iptables -t nat -A PREROUTING […]
Как да прочетем мейл, който вече е в опашката на postfix
postcat -q MESSAGE_IDpostcat -q MESSAGE_ID
Как да добавим delay в postfix
В /etc/postfix/main.cf добавяме: smtp_destination_rate_delay = 1s smtp_destination_rate_delay = 1s След като изпрати 1 мейл, postfix […]
List all subfolders in path
find . -type d -exec echo mkdir -p {} \;find . -type d -exec echo […]
MySQL How to select domain name from email address ?
SELECT COUNT(*) as cnt, SUBSTR(SUBSTR(Email, INSTR(Email, ‘@’), INSTR(Email, ‘.’)), 2) as domain FROM Users GROUP […]
lost connection with while performing the HELO handshake
Ако видите този проблем в mailq опашката, най-вероятната грешка е, че нямате set-нат smtp_helo_name. В […]