On 5/18/2017 1:57 PM, Marek Kozlowski wrote: > On 05/18/2017 08:53 PM, Noel Jones wrote: >> On 5/18/2017 1:32 PM, Marek Kozlowski wrote: >>> :-) >>> >>> mydomain = mini.pw.edu.pl >>> mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, >>> mail.$mydomain, www.$mydomain, ftp.$mydomain >>> relay_domains = $mydestination >>> >>> I'm wondering why after telnet connection to port 25 the host accepts >>> any `RCPT TO:' addresses ending with `mini.pw.edu.pl' (for example: >>> `[email protected]') and then tries to forward it. I thought >>> that only those explicitly listed above would be accepted. Which >>> parameter may be missing / responsible for it? How can I debug or change it? >>> >> >> Please see the documentation for relay_domains and address classes. >> You probably should set relay_domains explicitly empty. > > But I don't want it empty! I want it explictly the same as > mydestination. Why does it accept *any* subdomain of my domain? > > Best regards, > Mare >
That's probably a mistake. Use mydestination for locally delivered mail, use relay_domains for your domains you accept mail for that are relayed to another mailstore. That should be two different lists of domains. At any rate, please see the documentation I suggested which explains this in more detail, including the handling of subdomains. -- Noel Jones
