Main Contents

Redirect root mail to an external e-mail address

July 29, 2008

This uses postfix, my mail transport of choice. Configure /etc/postfix/main.cf as below. (If you already have a local MTA running, skip this section.) Also, this allows any other mail to be sent from your box, not just for root. myhostname = host.domain.tld mydomain = domain.tld myorigin = $myhostname inet_interfaces = localhost mydestination = $myhostname, localhost.$mydomain, […]

Filed under: Linux | Comments (1)

CentOS custom network scripts on ifup and ifdown

July 29, 2008

To automatically run custom scripts as interfaces are brought up and down, create the following files: /sbin/ifup-local /sbin/ifdown-local and mark them executable: chmod +x /sbin/ifup-local chmod +x /sbin/ifdown-local These will be called everytime an interface comes up or goes down. The device name will be passed to it as an argument so you can use […]

Filed under: Linux | Comments Off on CentOS custom network scripts on ifup and ifdown