Author Archives: Phil
Configuring Exim to use Gmail as a Smarthost
Add a router before or instead of the dnslookup router: gmail_route: driver = manualroute transport = gmail_relay route_list = * smtp.gmail.com Add a transport: gmail_relay: driver = smtp port = 587 hosts_require_auth = $host_address hosts_require_tls = $host_address Add an authenticator … Continue reading
Truncating SQL Server Log Files
SQL Server logs in a circular fashion to its transaction log files. To shrink a transaction log file it is first necessary to backup the log. The following script backs the log up, throwing away the backup in the process … Continue reading
Converting Active Directory Date Time Attributes
To convert a date time attribute in Active Directory (e.g. as used by lastLogon) to a human readable date time, you can use the w32tm command. For example with the following LDAP record: dn: CN=John Smith,CN=Users,DC=DC=example,DC=com lastLogon: 128326919184182832 Running w32tm … Continue reading