Nearly every mail with a wrong address was sent by a spammer. The Proxmox mail gateway has got greylisting. This feature eliminates nearly every such e-email. So there is no need to maintain a list of allowed recipients. (But it is possible!)
Hi,
we got many spam from our backup mx. I think for this IP adress it ist not possible to use grey lists. Can you tell me how to establish an allowed recipient list?
Exclude your backup mx from greylisting (Mail Proxy->Greylist excl.)
To make a list of allowed recipients you have to add 2 rules.
The first one will look like this (compare to whitelist):
From: Anybody
To: Allowed Recipients (= new WHO Object)
When: Always
What: Anything
Action: ACCEPT
The second one:
From: Anybody
To: Anybody
When: Always
What: Anything
Action: Block
Be sure that both rules are for incoming e-mails and the first rule has a higher priority than teh second one. (But less than your spam rules)
If an incoming e-mail is not in your recipients object than the next rule will work. And this one blocks the e-mail. Maybe you would like to be informed about blocking, than you can add a "notify admin" object to the 2nd rule action.
Hello,
ok, next problem: We have 600 allowed recipients. I dont want to add them via the webingerface. I have created a new who object. Is it possible to edit this via ssh and vi?
I do not see any need for a allowed recipients list (IMHO), but I will support you.
There is no easy way to add 600 e-mail adresses. I recommend a backup before starting.
1) Login to web interface
2) Click on Mail Filter->Who
3) Place your mouse about the red arrow left to your who object (recipients list)
4) Look at the status bar (bottom-left-corner) of your browser
5) Note the number after &aa= as your objectgroup_id (for example 3)
6) Login to the console
7) Create a text file (eg. test.sql)
8) Insert lines like
Code:
insert into object (objecttype,objectgroup_id,value) values (1001,3,'test1@example.com');
insert into object (objecttype,objectgroup_id,value) values (1001,3,'test2@example.com');
Note: Replace 3 with your objectgroup_id! Do not change 1001
9) Type this command to insert the new e-mails to the database:
Code:
psql -U postgres -d Proxmox_ruledb -f test.sql
10) End (Finally look at your who object to see your success!)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.