getmail vs fetchmail …
I recently got quite fed up of fetchmail. The problem is that there are mails on an account from invalid sender domains (like foo.bar for example) since my Postfix rejects such mail because it can only be spam fetchmail didn’t manage to delete them. So it looped leaving the junk mails on the pop account and flooding my logfiles.
The solution was getmail. Since I use postfix + amavis + cyrus there was no example config that fits my needs so I did some experiments but finally a mail from Elimar Riesebieter on the Mailinglist solved my problem.
So I want to share my mini howto of how I configured getmail to run with amavis. I also explain how to use it with avira (former hbedv) Antivir.




Hi Cristian,
I want to ask you a question about the mini-howto.
I also have a postfix with amavis mailserver and for one (dad) user the mail is fetched with getmail from a pop3server. in your howto you state “Ok this one is obsolet for me because now everything runs trough postfix and so it also runs trough amavis and I don’t need an extra filter for getmail.”. And this is exactly what i want, but for some reason when the email is fetched by getmail, amavis is bypassed. Do you have any idea where to look for the problem, i’am very lost here.
Many thanks in advance.
Greetings Matthijs Oonk
The Netherlands
Hi, not quite sure I understood your problem. If you want to use amavis, then just put amavis into postfxi and send your mails that getmail picks up always trough postfix and you are done, if not use the version that I mentioned is obsolete for me.
I am not sure how you set up amavis, if it’s executed by postfix then you should be fine, if not then I don’t quite know but sure google will be some help.