Category: linux

  • MX backup server with postfix on debian

    by

    in

    Not to lose mails when main mail server is down, best solution is – mx backup server. This is configuration to have backup mx server set up and running. myhostname = mx2.loginroot.com mynetworks = 127.0.0.0/8 maximal_queue_lifetime = 120d smtpd_banner = $myhostname ESMTP relay_domains = hash:/etc/postfix/relaydomains transport_maps = hash:/etc/postfix/transportmaps smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination

  • Exim mail via different IP

    by

    in

    In /etc/exim.conf You need to change: remote_smtp: driver = smtp to remote_smtp: driver = smtp interface = 11.22.33.44

  • Openvpn centos 6.4 x64 with certificates

    by

    in

    Renewed POST with new info, as openvpn package changed, not everything in old tutorial is true now :) This tutorial is based by old one Default centos repositoryt doesn’t have openvpn package, so lets add epel repository first. I downloaded it from this mirror here. yum install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm (link may be different depending on latest…

  • bandwidth monitoring script for nagios (CentOS) – bw_watch.sh

    by

    in

    Bash script for nagios, that monitors bandwidth usage on remote host. # usage ./bw_watch bw_warning bw_critical pkt_warning pkt_critical It takes momentary 5 secs average bandwidth from “vnstat”, and returns value for nagios. bc and vnstat packages at host side are necessary. bc package should be in default centos repository, vnstat and nrpe You can find…

  • Horde5 webmail: sending mail via smtp.

    by

    in

    You can fix error: There was an error sending your message: sendmail: unknown error (127) by changing sending method to SMTP:

  • evolution-ews plugin install script for evolution 3.2.3 on ubuntu 12.04

    by

    in

    Made script for automatic evolution-ews plugin install. By default ubuntu 12.04 uses evolution 3.2.3 and there are no evolution-ews package in repository. Use evolution-ews plugin the same version as Your evolution mail client version.

  • Adding MS exchange compability with evolution-ews in ubuntu 12.04

    by

    in

    Ubuntu 12.04 has crappy support for bussiness solutions. You can check MS exchange mail, synchronize calendar in evolution with evolution-ews which is missing in default repository. Exchange has to have owa enabled. Also default client on Ubuntu precise is thunderbird, which doesn’t have ability to use system provided calendar. How silly is that? Didn’t want…

  • Ubuntu 12.04 Wireless unmanaged

    by

    in

    When installing Ubuntu, and during install You choose to use wlan0 interface. On first system boot wireless becomes unmanaged, and You can’t choose wireless AP. solution is to edit file /etc/network/interfaces There should be lines like auto wlan0 iface wlan0 inet dhcp wpa-ssid wifi-name wpa-psk wifi-key delete those lines and reboot computer. Network manager will…

  • how to: create openvpn centos 6.3 x64 with certificates

    how to: create openvpn centos 6.3 x64 with certificates

    by

    in

    Some parts of this tutorial are not working anymore. New version available here Default centos repositoryt doesn’t have openvpn package, so lets add epel repository first. I downloaded it from this mirror here. downloading repo: # wget http://mirror.duomenucentras.lt/epel/6/x86_64/epel-release-6-7.noarch.rpm and installing repo: # yum localinstall epel-release-6-7.noarch.rpm After that, You can install openvpn package: # yum install…

  • reset network interfaces on centos 6.3

    by

    in

    If You copy/clone Your machine, or change network card, on linux Your interfaces get names eth1, eth2, eth3 and so on. Before makeing changes just delete /etc/udev/rules.d/70-persistent-net.rules file. After first boot, network interfaces will be enumerated from zero again. rm /etc/udev/rules.d/70-persistent-net.rules