Hi everyone,
I recently installed a mail server for my home
usage... It works perfectly, I'm using: Postfix /
Courier-imap+ssl / Maildrop / SpamAssassin.
But, for 2 days i'm receiving dummy tons of mails
I don't understand why it comes to my email address,
whatever, SpamAssassin don't filter them.
This is always the same type of mail, it's about MS
security patchs and a Windows .exe executable file is
included in the mails which is in fact a virus.
I want to filter them and I think I have just to add
some lines in my /etc/maildroprc
There is my config in the main.cf for Postfix in order
to use maildrop:
mailbox_command = /usr/bin/maildrop -d "$USER" -f
"$SENDER" "$EXTENSION"
I notice that the name of the sender is always the
same (it begins with Microsoft....) but the mail
address change every time.
I want to extract the name of the sender from the From
header.
I tried to add this 2 types of config in my maildroprc
without success:
if ( /^Sender: Microsoft*/ )
{
to "$HOME/Maildir/.Spam"
}
and:
if ( /^From: Microsoft*/ )
{
to "$HOME/Maildir/.Spam"
}
Any idea ?
Alexandre Ahmim-Richard.