Category Archives: Troubleshooting

Postfix on KPN Direct ADSL

Hi,

I had a lot of trouble setting up Postfix so that it would relay my mail (sending only). I am using KPN Direct ADSL and have documented some tricks here for Ubuntu 12.10.

KPN’s support answer is somewhat useful but not that much:
http://kpn-customer.custhelp.com/app/answers/detail/a_id/13372

The three different addresses they are mentioning for the relayhost, confused me a lot. The right relayhost to use is: mail.kpnmail.nl.

My /etc/postfix/main.cf looks like this:

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
append_dot_mydomain = no
readme_directory = no
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
myhostname = <hostname>
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = <externaldomain>, <hostname>, localhost
relayhost = [mail.kpnmail.nl]
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = loopback-only
default_transport = relay
relay_transport = relay
inet_protocols = all
sender_canonical_maps=hash:/etc/postfix/sender_canonical

Please make sure that you replace <hostname> and <externaldomain> with your machine’s hostname and external domain URL.

The last I found with http://www.whatismyip.com/ to get my external ip address and to get your external domain URL:

host <ip-address>

Notice that I had to change the default_transport and relay_transport to error to:

default_transport = relay
relay_transport = relay

The other thing I had to do is to set the following to change rewrite the from field as KPN does not accept the <user>@<hostname> that your Ubuntu machine provides:

sender_canonical_maps=hash:/etc/postfix/sender_canonical

To set up your sender_canonical file, follow these instructions:
http://ubuntuforums.org/archive/index.php/t-38429.html

Useful background information can be found here:
http://www.postfix.org/

Embedding Slideshare on WordPress.com

If you are trying to figure out, like me, how to embed Slideshare presentations on WordPress.com, here is how to do it:

http://en.support.wordpress.com/slideshows/slideshare/

Mac OS X Mountain Lion Subversion missing

If you are like me missing Subversion in Mountain Lion, find the solution here:
http://superuser.com/questions/455214/where-is-svn-on-os-x-mountain-lion

As I have Xcode installed, I took the option to install the command line tools and it works.

Regards,
Jeroen

Outlook for Mac 2011 stops working (doesn’t start)

Hi,

If your Outlook for Mac 2011 stops working (yes, I don’t know why I am using it too), the solution might be to build your profile database by pressing CTRL when clicking to start Outlook. It takes a while, but it works (for me).

The answer can be found here:
http://answers.microsoft.com/en-us/mac/forum/macoffice2011-macoutlook/outlook-for-mac-2011-wont-start/22dd1e68-67f8-4f83-bb2d-5831c588a095

Regards,
Jeroen

Spotify on Precise Pangolin (Ubuntu 12.04LTS)

Good instructions to install Spotify using apt-get on Ubuntu 12.04LTS Precise Pangolin can be found here:
http://www.liberiangeek.net/2012/04/the-quickest-way-to-install-spotify-client-in-ubuntu-12-04-precise-pangolin/

If you get an error about invalid keys, the solution is here (post by dubbe):
http://community.spotify.com/t5/Desktop-Linux/Can-t-Open-Spotify/td-p/89529

Have fun.

Regards,
Jeroen

Postfix malfunctioning on Ubuntu 11.10

In case Postfix is complaining about /etc/postfix/main.cf missing in your Ubuntu 11.10 Oneiric Ocelot too, follow this link for the solution:

http://ubuntuforums.org/showthread.php?p=9348088

Ubuntu 11.10 (Oneiric Ocelot): PHP dynamic library problem

Hi,

I noticed that my Ubuntu 11.10 Oneiric Ocelot machine was complaining about:

$ php -v
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/idn.so' - /usr/lib/php5/20090626/idn.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/sqlite.so' - /usr/lib/php5/20090626/sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.3.6-13ubuntu3.6 with Suhosin-Patch (cli) (built: Feb 11 2012 03:26:01) 
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies

To resolve this issue, take a look at this thread. It works:
http://ubuntuforums.org/showthread.php?t=1610097

http://ubuntuforums.org/showthread.php?t=1610097

Outlook for Mac: Error 19906

Just wanted to share my experience with Outlook for Mac regarding error 19906. In my case it was preventing all downloading of e-mail and sending out e-mails.

The resolution that worked for me was removing all shared calendars by selecting each of them and removing them from view.

Hope that this helps you.