Top posts

Latest articles


Postfix, MySQL setup a blackhole

Posted by Jongerius under Development, General Rant, Internet
1 Star2 Stars3 Stars4 Stars5 Stars6 Stars (No Ratings Yet)
Loading ... Loading ...

In previous articles I got into how to setup Postfix and Dovecot using MySQL for management. Well this time round a question rose about creating a blackhole. Which is basically a catch all e-mail address that dumps all mail coming in.

Doing this in the MySql setup created before should be relatively easy. First of modify the ‘/etc/aliasses‘ file and add ‘devnull: /dev/null‘. This will add a virtual debian user called devnull to the system. Keep in mind this alias is not yet active. To activate it run: newaliases. This will compile the file and load it into the memory.

Now open either PostfixAdmin or MySql and add an alias from ‘@domain.com’ to ‘devnull’. Which will catch all e-mail sent to domain.com and store it into the file belonging to user devnull, which in our case is the blackhole :) .

Please be carefull, as all mail sent to the domain will be dropped unless either an alias or a mailbox is defined for the domain.


Setting up a mailserver, continued

Posted by Jongerius under Internet, Uncategorized
1 Star2 Stars3 Stars4 Stars5 Stars6 Stars (1 votes, average: 3 out of 6)
Loading ... Loading ...

In my last article on how to setup a basic mail server in debian using postfix and dovecot, I am now continueing on how to setup some basic spam filters. The reason to split this up, well I was stupid and assumed I wouldn’t need a spam filter yet. But I forgot that I also moved one domain to my new mail server that got 200 spam messages a day.

So now to repair my mistake I am adding the following features to my already existing mail server. To find out how to setup the  mail server itself read my earlier article.

  • Use spamassassin to mark spam in the header
  • Change the mail delivery to dovecot LDA, this is needed for step 3
  • Automatically move marked e-mails to the spam folder of the user

Sounds easy right. Well it should be ;-) .

(more…)


Debian Setting up a Postfix and Dovecot mail server

Posted by Jongerius under Development, Internet, Webdevelopment
1 Star2 Stars3 Stars4 Stars5 Stars6 Stars (No Ratings Yet)
Loading ... Loading ...

Ok over the weekend I spent some time to finally set up my personal mail server on the VPS system I have. I had been planning this for some time, and made several unsuccessful attempts. But this weekend after spending some hard time on it I finally got it working.

My setup is as follows:

  • Postfix as a SMTP service
  • Dovecot as the IMAPS service and authentication service
  • MySQL as a storage location indicating the virtual email boxes and domains
  • PostfixAdmin as a package to manage the virtual domains and boxes

(more…)