Tag Archives: postfix

Having your Linux system email you! | How to write a script which emails you

Quite often you need to write scripts which need to email you urgent information, there is a very simply way to do this.

First we need to install an email server to transmit the emails.

Then insert the following into your script.

In the above example it will email a copy of your local host file, change be change for any file you want transmitted.

See this script for a working example.

Visibility when your IP changes and is updated by no-ip | email notification when ip changes home adsl nbn bash script

My new internet connection with NBN changes the IP on a regular basis, but I wanted visibility as to how often.

So I’ve written a bash script which records your IP and date, once it changes it records your new IP and sends you an email to notify you of the new change.

This is completed by querying your no-ip dns record.

Usage

 

Cron Entry. (runs every hour)

 

 

Raspberry Pi Postfix Courier-imap error | imapd: username: Account’s mailbox directory is not owned by the correct uid or gid

Im running postfix with courier-imap on a raspberry pi, got the following error, this is the fix.

Edit the imapd config file with the following command

Ensure the following is set to 0, its set to 1 be default.