look at the headers of my message: _______________________________________ Received: from mail.thelounge.net (mail.thelounge.net [91.118.73.15]) by english-breakfast.cloud9.net (Postfix) with ESMTP id B37E4341C53 for <postfix-users@postfix.org>; Sun, 23 Sep 2012 15:16:14 -0400 (EDT)
* mail.thelounge.net = smtp_helo_name * mail.thelounge.net = PTR from DNS (resloved by english-breakfast.cloud9.net) * 91.118.73.15 connected to english-breakfast.cloud9.net these headers are the one from english-breakfast.cloud9.net (destination server) they should always match and are depending heavily on the DNS of your ISP for your ip-address and one is the HELO-name the delivering server sends in the initial communication _______________________________________ Received: from srv-rhsoft.rhsoft.net (openvpn-rh.thelounge.net [10.0.0.241]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.thelounge.net (THELOUNGE MTA) with ESMTPSA id 3XPyvK5L5bz34 for <postfix-users@postfix.org>; Sun, 23 Sep 2012 21:16:13 +0200 (CEST) * srv-rhsoft.rhsoft.net = smtp_helo_name (thanks to thunderbird, does not matter) * openvpn-rh.thelounge.net = PTR from DNS (as you see this is not a public thing) * 10.0.0.241 = IP of my client (this is also not a public thing) these headers are the one from our mail-server _______________________________________ Am 23.09.2012 21:16, schrieb Reindl Harald: > * please do not reply off-list > * please provide real log without "smtp.ip.add.ress" > * please do not top-post (i refuse to fix the thread) > > usually your host has a PUBLIC hostname > usually your host is using this as myhostname = HELO > usually the PTR to your ip should have the same name > usually you need to have a valid PTR > > these are the only things you should care on a public mail-server > ________________ > > with "mail2.localdomain" as HELO as example we would never > accept any message from you because properly configured > mailservers would not do this > > smtpd_helo_restrictions: > * reject_non_fqdn_helo_hostname > * reject_invalid_helo_hostname > * reject_unknown_helo_hostname > > smtpd_recipient_restrictions: > * reject_invalid_hostname > * reject_unknown_reverse_client_hostname > ________________ > > [harry@srv-rhsoft:~]$ nslookup mail.thelounge.net 8.8.8.8 > Server: 8.8.8.8 > Address: 8.8.8.8#53 > Non-authoritative answer: > Name: mail.thelounge.net > Address: 91.118.73.15 > > [harry@srv-rhsoft:~]$ nslookup 91.118.73.15 8.8.8.8 > Server: 8.8.8.8 > Address: 8.8.8.8#53 > Non-authoritative answer: > 15.73.118.91.in-addr.arpa name = mail.thelounge.net. > > > Am 23.09.2012 20:59, schrieb Андрей Клаус: >> Thanks to Wietse Venema for great example and for your time and for >> the links. Looks understandable. I think it should solve my problems. >> Will try it. >> Thanks to Noel Jones for poining me to >> sender_dependent_default_transport_maps. Sorry, i'm a newbe and didnt >> see what did you mean. >> >> Thanks to Reindl Harald for the answer, but i just have changed >> $myhostname to mail2.localdomain. Sent email to myself. And see now >> "Received: from mail2.localdomain ([smtp.ip.add.ress]) by >> mx.google.com ... " >> Nobody else except posfix knows name "mail2.localdomain" in my system >> at all. Because i just changed only one string in main.cf. So, it is >> exactly postfix who says to mx.google.com that postfixbox is >> mail2.localdomain. >> I think here is something like small missunderstanding ... may be it >> is because i explained situation in wrong way because i'm a newbe. >> >> Thanks to everybody again, >> Andrey. >> >> 2012/9/23 Reindl Harald <h.rei...@thelounge.net>: >>> >>> >>> Am 23.09.2012 14:35, schrieb Андрей Клаус: >>>> About domain name - the thing is that right now i see exactly the next >>>> message (except ip address) "Received: from mail.localdomain >>>> ([ip.add.re.ss]) by mx.google.com..". And "mail.localdomain" is a >>>> local alias. >>> >>> Reveived is generated from DNS and not from any postfix config >>> it has even nothing to do with the first hop >>> as the name RECEIVED says it is added by the receiver >>> >>>> So, it cant be resolved from external network. >>> >>> who cares? >>> >>> it is a LOCAL machine >>> what and why should any WAN server resolve here? >>> >>>> So, it cant depend from real ip address. So, only postfix can say to >>>> mx.google.com that postfixbox is "mail.localdomain". >>> >>> postfix does not say anything >>> >>> mx.google.com is not interested in your received >>> hesder froma local hop and is adding his own with >>> the PTR of your ip-address >>> >>> your postfix configuration is not involved in this game >>> >>>> And i think postfix says it's $myhostname here. >>> >>> but you are wrong >>> >>>> I understand that it is really not a big thing, but i just would >>>> like to use respective domain names for this, if there is a way >>> >>> so configure your DNS server > -- Reindl Harald the lounge interactive design GmbH A-1060 Vienna, Hofmühlgasse 17 CTO / CISO / Software-Development p: +43 (1) 595 3999 33, m: +43 (676) 40 221 40 icq: 154546673, http://www.thelounge.net/ http://www.thelounge.net/signature.asc.what.htm
signature.asc
Description: OpenPGP digital signature