Random client domains in email header

Community support for Plesk, CPanel, WebMin and others with insight from two of the founders of Plesk. Ask for help here! No question is too simple or complicated. :-)
bob83
Forum User
Forum User
Posts: 33
Joined: Wed Oct 28, 2009 8:42 pm

Random client domains in email header

Unread post by bob83 »

I use plesk 9.5.4 with all updates installed.
For some reason domains from other clients are showed in the email headers.

For example if client A receive mail on info@hisdomain.com, the mailheader shows a line with the domain from a other client:
from mail-iw0-f182.google.com (209.85.214.182) by domainoffclientx.com with

Here the complete header, ive change the from domain by [RANDOMDOMAININPLESK.COM]:

* (qmail 30219 invoked from network); 26 Jan 2011 17:23:57 +0100
* from mail-iw0-f182.google.com (209.85.214.182) by [RANDOMDOMAININPLESK.COM] with (RC4-MD5 encrypted) SMTP; 26 Jan 2011 17:23:57 +0100
* by iwn39 with SMTP id 39so1098423iwn.41 for <test@domain1.nl>; Wed, 26 Jan 2011 08:30:54 -0800 (PST)
* by 10.231.182.10 with SMTP id ca10mr8578233ibb.28.1296059454214; Wed, 26 Jan 2011 08:30:54 -0800 (PST)
* by 10.231.14.13 with HTTP; Wed, 26 Jan 2011 08:30:54 -0800 (PST)

Have other plesk 9.5.4 users this same problem?
bob83
Forum User
Forum User
Posts: 33
Joined: Wed Oct 28, 2009 8:42 pm

Re: Random client domains in email header

Unread post by bob83 »

I already try rebuild the mailconfig: /usr/local/psa/admin/sbin/mchk --with-spam
Still same problem.
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Re: Random client domains in email header

Unread post by faris »

This is caused by having a PTR entry in the DNS records of more than one domain in Plesk.

I don't know how things are now, but for many years the default DNS template that Plesk comes shipped with adds a PTR record for each domain you add, pointing to the shared IP address that domain is allocated to.

qmail then does a reverse lookup and gets a random result from any of the domains you have hosted.

The solution is to remove the PTR records from all existing domains except one (your "main" domain - the one you want in the headers) and to modify the default DNS remplate to not add a PTR all the time.
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Re: Random client domains in email header

Unread post by breun »

faris wrote:The solution is to remove the PTR records from all existing domains except one (your "main" domain - the one you want in the headers) and to modify the default DNS remplate to not add a PTR all the time.
Actually you'll want to just remove *all* PTR records in all zones and only set the reverse hostname mapping at the place where this is actually managed, which is usually the ISP that hosts your server.
Lemonbit Internet Dedicated Server Management
Post Reply