Category Archives: Ubuntu

Postfix not sending mails after installing and uninstalling Sendmail

I got bitten today, really bad! My story starts when postfix stopped working for me (after the update last night). All I had to do was re-install postfix but in desperation I ended up installing Sendmail and that’s how it all started! I found my mistake, uninstalling Sendmail and then reinstalled Postfix. But it was too late. Now the server wasn’t sending emails. I quickly jumped to /var/log/mail.log which read:

postfix/master: fatal: bind 0.0.0.0 port 25: Address already in use

A big of Googling to see what was using port 25, I had to install sockstat as it gives you the process ID of the process running on that port:

socket | grep :25

The output I got was very interesting:

root     sendmail-mta    17059    tcp4    127.0.0.1:25     *:*    LISTEN

Aha! I thought I had uninstalled Sendmail! Well I have, but the process is still running(!) and holding the port 25 at bay!

A quick kill command:

kill 17059

(replace the number with the process id you got in the previous command)

Give Postfix a reboot and viola! It works!

If this works for you, please leave a comment 🙂

Flattr this!

Sharing Folders in Ubuntu 9.10 using VirtualBox

I just wanted to share a folder in Ubuntu 9.10 which I have installed using VirtualBox. Whenever I tried mounting the shared folder using the mount command, I kept getting the following error:

/sbin/mount.vboxsf: mounting failed with the error: No such file or directory

After wandering through forum after forum and post after post, I finally got to share my folder in Ubuntu 9.10 using VirtualBox. The whole process was a mesh so I thought I should create a simple post, so here goes:

Adding Share Folder to VirtualBox

  1. Start by opening VirtualBox (making sure Ubuntu is Powered Off), right-click the Ubuntu Virtual Machine in the left column and choose Settings
  2. Click Shared Folders option in the left column
  3. Click the Add new shared folder button (its a folder with a + sign) located on the right
  4. A small window pops up asking you the Folder Path (a drop-down) and a Folder Name (no spaces)
  5. Once you are happy with everything, press OK twice to close this pop up and the Settings window. Now start the Ubuntu 9.10 Virtual Machine

Mounting Shared Folder in Ubuntu 9.10

  1. Start the Terminal by going to Applications > Accessories > Terminal
  2. Create a folder under mnt directory by:

    sudo mkdir /mnt/my_shared_folder

    replace my_shared_folder with whatever you want to call the shared folder

  3. Now mount the shared folder by:

    sudo mount -t vboxsf my_folder /mnt/my_shared_folder

    replace my_folder with what you entered in the Folder Name when you added the folder under Settings and replace my_shared_folder with whatever you have called the folder in the previous step

  4. You’re done!

Please do leave a comment if this works for you 🙂

Flattr this!