Archive for the ‘System Administration’ Category

dk_eom(): resource unavailable: d2i_PUBKEY_bio() failed

Ok, i’ve gotten this error while trying to implement DomainKeys on one of my servers.  I’m using a debian etch with postfix amavis and dk-filter for signing emails. The errors i was getting in the logfiles were:
dk_eom(): resource unavailable: d2i_PUBKEY_bio() failed
SSL error:0D06B08E:asn1 encoding routines:ASN1_D2I_READ_BIO:not enough data
After searching a while over the internet i’ve figured [...]

Leave a Comment

mydns: out of memory: Cannot allocate memory error

MyDNS was working great on my machine until i’ve decided to implement DomainKeys and DKIM support for my e-mail system. As you probably know DKIM and DomainKeys require a long TXT record with a public key to be inserted in the DNS.
MyDNS started giving me problems when i was query-ing the DNS for this TXT [...]

Leave a Comment

HowTo: Completely Remove Debian Applications With apt-get

I have a testing server on which i fool around and test things.
I had to completely remove postfix from my server to reinstall it using other settings. Here’s how i did it :
apt-get –purge remove postfix
This will completely whipe out postfix from your server along with it’s dependencies.
I’ve been looking over for this for a [...]

Leave a Comment

HowTo: manually install .deb packages:

This process only installs the downloaded .
deb package. If the package has dependencies, you may need to install them as well.
First, download your .
deb package via wget or whichever method you prefer. Then on the terminal type dpkg -i packagename.
deb (replacing packagename with the name of the package).
That’s it

Leave a Comment

HowTo: bcc all recieved or sent mail from your postfix server

Postfix has the option to bcc all sent or recieved emails for a specific domain.
You can bcc all recieved mails for a specific by inserting the following in to /etc/postfix/main.cf :
recipient_bcc_map = pcre:/etc/postfix/bcc_recipient
then edit the file /etc/postfix/bcc_recipient and add your domain like this :
/(.*)@(example.com)/  backup@example.com
then at the console type postmap /etc/postfix/bcc_recipient to load the bcc [...]

Leave a Comment

HowTo : install the mail command under Debian

The mail command under Debian distros is a part of the mailutils package.
Simply use :
apt-get install mailutils
and you’re  done !

Leave a Comment

Howto: Increase apt-get’s cache limit

Dynamic MMap ran out of room
getting the above error means that your apt cache is out of space. This is solved simply by editing
/etc/apt/apt.conf or /etc/apt/apt.conf.d/70debconf and adding the following line :
APT::Cache-Limit “10000000″; ( this is equal to 10m, set it to whatever you want or need )
That’s it but remember that by increasing [...]

Leave a Comment

HowTo : add custom transport routes (maps) in postfix.

In postfix, when you need your e-mails for some specific domains to relay through another server ( your ip is blocked or for some other reason ) you can specify custom transport maps in the postfix config.
You have to setup postfix to use custom transport maps :
in  main.cf enable the transport_maps directive :
transport_maps = [...]

Leave a Comment

Web Brands