• 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.

Change my domain to avoid being blacklisted

Status
Not open for further replies.

CarlosBurgos

New Pleskian
Hello, I have a problem with my Plesk server.

I have recently upgraded to Parallels version 11.x and the name of my mail server has changed localhost.localdomain, so I have been introduced in Spamhaus blacklists and CBL.

Could you please tell me how I can edit the name of my machine for my e-mail reach the target?

Thank you so much.
 
If you are blacklisted it will be the SMTP server, with Plesk either Qmail or Postfix.
I've had this where you change the name in Plesk and it doesn't update server wide until after a restart.
Anyway, to do it manually (Ubuntu)...

Postfix:
Edit /etc/postfix/main.cf

look for

myhostname = localhost.localdomain

and change it to.

myhostname = mail.yourdomain.tld

You'll probably need to update the

mydestination =

to

mydestination = mail.youdomain.tld, localhost, localhost.localdomain

And reload postfix.

I haven't used Qmail for a long time, so can't remember.

EDIT: Qmail /var/qmail/controls/me
 
Last edited:
Have you already checked the Server & Setting options for changing the hostname?
 
This is the /etc/postfix/main.cf code that refers to myhostname:


Code:
# INTERNET HOST AND DOMAIN NAMES
#
# The myhostname parameter specifies the internet hostname of this
# mail system. The default is to use the fully-qualified domain name
# from gethostname(). $myhostname is used as a default value for many
# other configuration parameters.
#
#myhostname = host.domain.tld
#myhostname = virtual.domain.tld

# The mydomain parameter specifies the local internet domain name.
# The default is to use $myhostname minus the first component.
# $mydomain is used as a default value for many other configuration
# parameters.
#
#mydomain = domain.tld

# SENDING MAIL
#
# The myorigin parameter specifies the domain that locally-posted
# mail appears to come from. The default is to append $myhostname,
# which is fine for small sites.  If you run a domain with multiple
# machines, you should (1) change this to $mydomain and (2) set up
# a domain-wide alias database that aliases each user to
# [email protected].
#
# For the sake of consistency between sender and recipient addresses,
# myorigin also specifies the default domain name that is appended
# to recipient addresses that have no @domain part.
#
#myorigin = $myhostname
#myorigin = $mydomain

Which of the two lines should I edit?
 
I have two lines, which of the two lines must uncomment?

Code:
#myhostname = host.domain.tld
#myhostname = virtual.domain.tld

And other question, is it enough to uncomment these lines, or I need to change their content?
 
Hi Carlos,
I would use mail and then change the settings in your mail client (Outlook/Thunderbird) if that's what you mean.
Regards

Lloyd
 
I configure the /etc/postfix/main.cf file with the settings you have told me, but still sending mails from localhost.localdomain.

Then, I send an e-mail from my server to a friend with gmail:

Received: from localhost.localdomain (vrtl10286-b.servidoresdns.net [82,223,124,105].)

Is there some other file involved in sending that I need to edit?

Thanks.
 
I've restarted postfix with an error, but I've restarted all Plesk and problem persist.

Finally, I remember your lines:

Lloyd_mcse said:
I haven't used Qmail for a long time, so can't remember.

EDIT: Qmail /var/qmail/controls/me

So, I edited the line of the file in SSH using:

vim /var/qmail/control/me

At the beginning of the file there was a line that said "localhost.localdomain", which is what I edited the name of my server.

Upon restart, no longer appears localhost.localdomain in the emails others recipients received from me (appears my server name), so I guess the problem is solved, is not it?
 
Status
Not open for further replies.
Back
Top