Complex Postfix issue

This is a discussion on Complex Postfix issue within the mailing.postfix.users forums, part of the Mail Servers and Related category; I have a complex isue over here. Top level domain : domain.org (MX=mailserver.domain.org) Subdomain 1 : monkey.domain....


Go Back   Usenet Forums > Mail Servers and Related > mailing.postfix.users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-18-2006
R.Smits
 
Posts: n/a
Default Complex Postfix issue

I have a complex isue over here.

Top level domain : domain.org (MX=mailserver.domain.org)
Subdomain 1 : monkey.domain.org (MX=mailserver.domain.org)
Subdomain 2 : bird.domain.org (MX=mailserver.bird.domain.org)

For the monkey domain I use virtual_maps. Works great
The bird domain is a relay domain.
(We relay all email to mailserver.bird.domain.org.

When I try to send an email to user@pc1.monkey.domain.org
--------
I get "Relay access denied"

If I put the : pc1.monkey.domain.org in the relays file, as specified in
the main.cf , I can send an email to this address. No problem so far.
(pc1.monkey.domain.org OK)

Same story for the bird domain.

But, if the bird.domain.org is an relay domain, and has his own MX
record , to an email server on our campus, our corp mailserver also
accepts email for : pc1@bird.domain.org

This I understand : aaccxv@bird.domain.org (Is accepted, because we
relay to this domain)

This I don't understand : aaccxv@pc1.bird.domain.org (Is accepted, but
WHY ?)

If I put the host : pc1.bird.domain.org in a
smtpd_recipient_restrictions file, with this content:

pc1.bird.domain.org 550 5.1.2 System cannot receive mail

We can block the spam, to this address, But I still think it's weird.

Greetings... R.Smits
Reply With Quote
  #2 (permalink)  
Old 09-18-2006
Greg Hackney
 
Posts: n/a
Default Re: Complex Postfix issue

R.Smits wrote:
> I have a complex isue over here.
>
> Top level domain : domain.org (MX=mailserver.domain.org)
> Subdomain 1 : monkey.domain.org (MX=mailserver.domain.org)
> Subdomain 2 : bird.domain.org (MX=mailserver.bird.domain.org)
>
> For the monkey domain I use virtual_maps. Works great
> The bird domain is a relay domain.
> (We relay all email to mailserver.bird.domain.org.
>
> When I try to send an email to user@pc1.monkey.domain.org
> --------
> I get "Relay access denied"
>
> If I put the : pc1.monkey.domain.org in the relays file, as specified in
> the main.cf , I can send an email to this address. No problem so far.
> (pc1.monkey.domain.org OK)
>
> Same story for the bird domain.
>
> But, if the bird.domain.org is an relay domain, and has his own MX
> record , to an email server on our campus, our corp mailserver also
> accepts email for : pc1@bird.domain.org
>
> This I understand : aaccxv@bird.domain.org (Is accepted, because we
> relay to this domain)
>
> This I don't understand : aaccxv@pc1.bird.domain.org (Is accepted, but
> WHY ?)
>
> If I put the host : pc1.bird.domain.org in a
> smtpd_recipient_restrictions file, with this content:
>
> pc1.bird.domain.org 550 5.1.2 System cannot receive mail
>
> We can block the spam, to this address, But I still think it's weird.
>
> Greetings... R.Smits


I suspect that what you might be seeing is the effect of the
"parent_domain_matches_subdomains" setting.

$ postconf parent_domain_matches_subdomains
parent_domain_matches_subdomains = debug_peer_list,fast_flush_domains,
mynetworks,permit_mx_backup_networks,
qmqpd_authorized_clients,relay_domains,
smtpd_access_maps

Try something like this in the restrictions file:

..bird.domain.org 550 5.1.2 Invalid domain name

--
Greg




Reply With Quote
  #3 (permalink)  
Old 09-19-2006
Richard Smits
 
Posts: n/a
Default Re: Complex Postfix issue

>> This I don't understand : aaccxv@pc1.bird.domain.org (Is accepted,
>> but WHY ?)
>>
>> If I put the host : pc1.bird.domain.org in a
>> smtpd_recipient_restrictions file, with this content:
>>
>> pc1.bird.domain.org 550 5.1.2 System cannot receive mail
>>
>> We can block the spam, to this address, But I still think it's weird.
>>
>> Greetings... R.Smits

>
> I suspect that what you might be seeing is the effect of the
> "parent_domain_matches_subdomains" setting.
>
> $ postconf parent_domain_matches_subdomains
> parent_domain_matches_subdomains = debug_peer_list,fast_flush_domains,
>
> mynetworks,permit_mx_backup_networks,
>
> qmqpd_authorized_clients,relay_domains,
> smtpd_access_maps
>
> Try something like this in the restrictions file:
>
> .bird.domain.org 550 5.1.2 Invalid domain name
>
> --
> Greg
>
>
>
>
>


Yes, you're right. If I remove the last two entry's :
relay_domains, smtpd_access_maps

It works. The the subdomain or A record gets a "Relay Access denied"

Thank you !

Greetings... R.Smits

Reply With Quote
  #4 (permalink)  
Old 09-21-2006
Greg Hackney
 
Posts: n/a
Default Re: Complex Postfix issue

Richard Smits wrote:

> Yes, you're right. If I remove the last two entry's :
> relay_domains, smtpd_access_maps
>
> It works. The the subdomain or A record gets a "Relay Access denied"


Cool. Just be aware that change will affect any other access maps too.


--
Greg
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:08 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0