* 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
signature.asc
Description: OpenPGP digital signature