• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Greylisting - CLI

kram@

Regular Pleskian
Hello,

when i run this command /usr/local/psa/bin/grey_listing -i

I get

White domains patterns list:
*google.com
*mail.ru
*parallels.com
*mail.ru
*yahoo.com
*yandex.ru

I am trying to remove *mail.ru *mail.ru *yandex.ru

I run the following commands.

/usr/local/psa/bin/grey_listing --update-server -domains-whitelist del:*@mail.ru

/usr/local/psa/bin/grey_listing --update-server -whitelist del:*@mail.ru

I get the following reply.

SUCCESS: Update of server-wide settings complete.

However when i run /usr/local/psa/bin/grey_listing -i

White domains patterns list:
*google.com
*mail.ru
*parallels.com
*mail.ru
*yahoo.com
*yandex.ru

The domain is still listed.

Am i missing something simple here?

ANy suggestions?
 
Simply remove the @ sign.

Use command

/usr/local/psa/bin/grey_listing --update-server -domains-whitelist del:*mail.ru

and/or

/usr/local/psa/bin/grey_listing --update-server -domains-whitelist del:*mail.ru
 
Resolved

Hey trialotto,

Thanks, I was making such a silly error.
I don't know why I just never though of removing the @.

Clearly doing to many things at once on the server, is not the best approach.
1x Things at a time = 100% focus :)
 
By the way....

It was not that silly.

Some further advice: it is wise to add some specific mail adresses to the (generic) white list, as you was probably trying to do.

Just use:

/usr/local/psa/bin/grey_listing --update-server -whitelist add:*@<allowedDomain>.tld

(Hint: if possible, please remove the * and replace with the mail address that you really trust. Make a list of those trusted mail adresses and do:

-whitelist add:<mailname1>@<allowedDomain>.tld,<mailname2>@<allowedDomain>.tld (and so on)

)

Why should you? Well, there is an advantage to this: the generic whitelist is shared with spamassassin and therefore the spam daemon knows to trust the address(es). Nice, easy and very convenient for those mail adresses coming from yahoo.com, hotmail.com, gmail.com etc.

Then all other mail adresses from those domains will not be whitelisted and will be evaluated.

Hence, for this to be really effective and optimal, remove the domain entry from the domains whitelist with:

/usr/local/psa/bin/grey_listing --update-server -domains-whitelist del:*<allowedDomain>.tld

Afterwards, do check the entries with the -i option.

Probably you were trying this ;-) So, not that silly at all.
 
Bulk for a single domain

Hey trialotto,

Thanks for the info!
Do you by any chnace know how to add an email address or domain to all mailboxes in one domain.
One client of mine has 75 mailboxes, they all communicate with a specific email domain that is black-listed.
Instead of trying to add a white list 1 by 1 a bulk add would certainly help :)

any thoughts?
 
Bulk White list for a single domain

Hey

Thanks for the info :)

Do you by any chance know how to add a domain or email address to all emails in a domains white-list?
I have a few clients that have over 70 mailboxes, they communicate with certain domains that in the server-black list

Would be cool if i could add their list from the CLI instead of 1 by 1 in PLESK.

Any thoughts?
 
Bulk white lists

kram@, I am not sure what the essence of your post is.

Please clarify!

It is possible by the way, to black-/whitelist domains/mailaddresses on the individual domain level. This is achieved by greylisting, with the associated black-/whitelisted items also being used by the normal spam filter (spamassassin).

Somehow, it seems that you want a routing of mail, but i cannot identify from your story why you want that and how you have (tried) to set it up.

Or, it can be the case that you want to say that you receive mail for your customers domains, from servers that are blacklisted somehow (probably by the default settings of plesk).

Hence, explain want you want....then i can give an appropriate response/commands
 
Clarity

trialotto -

What I am trying to is white-list an email address/domain to every user in a domain on PLESK.
If a domain has 50+ mailbox it's a bit of a pain to add one at a time via PLESK for the client.

I had to create a txt file enter every mailbox with the white-list option

--MY TXT FILE LOOKS LIKE THIS--
./grey_listing --update-mailname user1@mydomain.co.za -whitelist add:*@yourdomain.co.za
./grey_listing --update-mailname user2@mydomain.co.za -whitelist add:*@yourdomain.co.za
./grey_listing --update-mailname user3@mydomain.co.za -whitelist add:*@yourdomain.co.za
./grey_listing --update-mailname user4@mydomain.co.za -whitelist add:*@yourdomain.co.za

Again time consuming!

If this could be done with a script, that called the domain, counted in the mailboxes and produced a .txt file above and ran it.... that would rule!

A few my clients have 75 - 150 email accounts.
They deal with very specific domains, I would like them to supply me a list of these domains.
I then enter the sender domains in a script, it runs and does all the mailboxes at once :)

Does this make sense?
 
trialotto -

What I am trying to is white-list an email address/domain to every user in a domain on PLESK.
If a domain has 50+ mailbox it's a bit of a pain to add one at a time via PLESK for the client.

I had to create a txt file enter every mailbox with the white-list option

--MY TXT FILE LOOKS LIKE THIS--
./grey_listing --update-mailname user1@mydomain.co.za -whitelist add:*@yourdomain.co.za
./grey_listing --update-mailname user2@mydomain.co.za -whitelist add:*@yourdomain.co.za
./grey_listing --update-mailname user3@mydomain.co.za -whitelist add:*@yourdomain.co.za
./grey_listing --update-mailname user4@mydomain.co.za -whitelist add:*@yourdomain.co.za

Again time consuming!

If this could be done with a script, that called the domain, counted in the mailboxes and produced a .txt file above and ran it.... that would rule!

A few my clients have 75 - 150 email accounts.
They deal with very specific domains, I would like them to supply me a list of these domains.
I then enter the sender domains in a script, it runs and does all the mailboxes at once :)

Does this make sense?

Not really: even though it is late at night for me when reading your post, it is clear to me that what you want is simpler than you think.

Running the command

./grey_listing -u -domains-whitelist add:*yourdomain.co.za

would result in what you try to achieve in that txt file.

It simply states that all mail from yourdomain.co.za will be whitelisted for all mailadresses available on all domains on your plesk server, including those domains with the pattern *mydomain.co.za

Even if there is an alternative reason why you want to do some specific, your method is not the proper one.

Your improper method seems to suggest that there is some relaying role for yourdomain.co.za, but in this situation it is not wise to do something like that. First try the command mentioned above.
 
Maybe a stupid question, but: why are mail.ru, rambler.ru and yandex.ru whitelisted by default?

Not a stupid question at all - it is a very valid question.

Valid, since there is no clear-cut answer.

In essence, I can make an educated guess by stating that part of the development team used to be located "abroad" and also by stating that - in theory - there was (past tense) not very much wrong with .ru domains : they were just as good or bad as other domains.

Nevertheless, any educated guess cannot distract from the fact that .ru domains are often used for spamming.

Stated differently, one can safely block (blacklist) all .ru domains ....... but again, this is also (!) theory.

In practice, it does not really matter which domain extension it concerns, the whitelisting/blacklisting of specific domain extensions is not enough to prevent spam (or other malicious traffic) from specific parts of the world.

The best thing one can do is to use the good-old-and-reliable firewall, in combination with DNSBL blacklisting methods.

In my experience, the DNSBL blacklisting is just adding "some" extra dynamic protection, but the firewall still remains one of the most important tools.

I hope the above helps a bit!

Kind regards....

PS Do not forget Fail2Ban ......
 
Back
Top