sync mails with dovecot over tcp 7

I use on my servers ISPConfig, for IMAP and POP3 Dovecot is used. With Dovecot 2.x, the mails can also keep in sync between two servers. The replication is done via the Dovecot index files. So neither an error in the file system nor an accidentally deleted Maildir have a […]


mysql – log queries

You can either put a log file for all queries (mysqld –log=log_file_name or log = log_file_name in your my.cnf) or write the queries in table mysql.general_log. The use of the table can be done without restarting mysqld and the stored values could be filtered much easier. The table can create […]


temporarily suspend mail delivery to a specific domain

With postfix and cron delivery of new mail messages may be certain times quite easily prevented. It can for example be prevent from that emails are delivered via push to inopportune times to a user. Add a hash-table in /etc/postfix/main.cf to smtpd_recipient_restrictions: check_recipient_access hash:/etc/postfix/hold In the file /etc/postfix/hold all domains […]


search in less

With less text files are displayed. But you can also search in files. By pressing /named to get to the first occurrence of named. A reverse search works with ?named. Press n to jump to the next occurrence. In order not to have to press n again and again, a […]


Use mollyguard to prevent rebooting the wrong server

Mollyguard detects if you are logged in using ssh when you try to reboot or shutdown (unfortunatly init 6 works) a server. In this case you have to enter the hostname to proceed with the shutdown. The installation is quite simple. Just use apt-get install mollyguard Afterwards you will be […]


Workaround for sending mails to google with IPv6 6

If you see host aspmx.l.google.com[2607:f8b0:400d:c02::1b] said: 550-5.7.1 [2607:5300:101::79e] Our system has detected that this message does 550-5.7.1 not meet IPv6 sending guidelines regarding PTR records and 550-5.7.1 authentication. Please review 550-5.7.1 https://support.google.com/mail/?p=i…tication_error for more 550 5.7.1 information. h1si3408978qew.71 – gsmtp (in reply to end of DATA command) the destination dropped […]


Permission denied: mod_fcgid: couldn’t bind unix domain socket 1

After updating libapache2-mod-fcgid my websites won´t work anymore. I found the following error in apache`s error.log: [Sat Oct 12 09:33:53 2013] [error] (13)Permission denied: mod_fcgid: couldn’t bind unix domain socket /var/lib/apache2/fcgid//15907.67 [Sat Oct 12 09:33:53 2013] [warn] (13)Permission denied: mod_fcgid: spawn process /srv/www/php-fcgi-scripts/web319/.php-fcgi-starter error The problem were the rights for […]


send mail with postfix for certain domains using ipv4 or ipv6 only 4

To send outgoing mail with postfix for certain domains only over IPv6 or IPv4, only a few changes are required. The domains are registered in accordance /etc/postfix/transport examplev4.de smtp-ipv4-only: examplev6.de smtp-ipv6-only: /etc/postfix/master.cf: smtp-ipv4-only unix  –       –       n        –       –       smtp        -o inet_protocols=ipv4 smtp-ipv6-only unix  –       –       n        –       –       smtp        -o inet_protocols=ipv6 /etc/postfix/main.cf: transport_maps = hash:/etc/postfix/transport: Execute postmap hash:/etc/postfix/transport and […]