PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Logiciels d'hébergement > comp.mail.sendmail > deny/allow for local-host-names?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.mail.sendmail Configuring and using the BSD sendmail agent.

deny/allow for local-host-names?

Réponse
 
LinkBack Outils de la discussion
Vieux 07/09/2007, 18h28   #1
soonquadruples@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut deny/allow for local-host-names?

Consider blah.edu. The mail server for blah.edu lists blah.edu in
local-host-names, so it
accepts mail for address@blah.edu, but it also accepts
address@sub1.blah.edu,
address@sub2.blah.edu and address@sub3.blah.edu.

Is there some way, using local-host-names or perhaps another method,
for the mail server to
accept mail for address@blah.edu and address@sub3.blah.edu but not
for
address@sub1.blah.edu and address@sub2.blah.edu. Something like a
deny/allow list
where the exceptions could be listed first?

Thanks for any pointers or RTFMs.

Cheers,
SQ

  Réponse avec citation
Vieux 07/09/2007, 18h53   #2
Andrzej Adam Filip
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: deny/allow for local-host-names?

soonquadruples@gmail.com writes:

> Consider blah.edu. The mail server for blah.edu lists blah.edu in
> local-host-names, so it
> accepts mail for address@blah.edu, but it also accepts
> address@sub1.blah.edu,
> address@sub2.blah.edu and address@sub3.blah.edu.
>
> Is there some way, using local-host-names or perhaps another method,
> for the mail server to
> accept mail for address@blah.edu and address@sub3.blah.edu but not
> for
> address@sub1.blah.edu and address@sub2.blah.edu. Something like a
> deny/allow list
> where the exceptions could be listed first?
>
> Thanks for any pointers or RTFMs.


Use virtusertable to list all valid names in the sub-domains.

virtusertable:
# list of valid emails in sub3.blah.edu
address1@sub3.blah.edu %0
address2@sub3.blah.edu %0
# instruction to reject remaining addresses in sub3.blah.edu
@sub3.blah.edu error:nouser User unknown

--
[pl>en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl
.... A solemn, unsmiling, sanctimonious old iceberg who looked like he
was waiting for a vacancy in the Trinity.
-- Mark Twain
  Réponse avec citation
Vieux 07/09/2007, 20h06   #3
soonquadruples@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: deny/allow for local-host-names?

On Sep 7, 11:53 am, Andrzej Adam Filip <a...@onet.eu> wrote:
> soonquadrup...@gmail.com writes:
> > Consider blah.edu. The mail server for blah.edu lists blah.edu in
> > local-host-names, so it
> > accepts mail for addr...@blah.edu, but it also accepts
> > addr...@sub1.blah.edu,
> > addr...@sub2.blah.edu and addr...@sub3.blah.edu.

>
> > Is there some way, using local-host-names or perhaps another method,
> > for the mail server to
> > accept mail for addr...@blah.edu and addr...@sub3.blah.edu but not
> > for
> > addr...@sub1.blah.edu and addr...@sub2.blah.edu. Something like a
> > deny/allow list
> > where the exceptions could be listed first?

>
> > Thanks for any pointers or RTFMs.

>
> Use virtusertable to list all valid names in the sub-domains.
>
> virtusertable:
> # list of valid emails in sub3.blah.edu
> addre...@sub3.blah.edu %0
> addre...@sub3.blah.edu %0
> # instruction to reject remaining addresses in sub3.blah.edu
> @sub3.blah.edu error:nouser User unknown


Thank you very much for the quick response.

I think that is very close to what I was looking for, but the
problem is a bit more complex than I was letting on.

Assume smtp.blah.edu is the mail server for blah.edu.

sub2.blah.edu and sub3.blah.edu each run their own mail
servers and have MX records to that effect. smtp.blah.edu
(sadly) accepts mail for sub2 and sub3, even though
it shouldn't, but it is perhaps understandable because it
needs to accept @blah.edu addresses.

So, I believe virtusertable would work to deny the
accepting of mail for sub2 and sub3 at smtp.blah.edu.
So far, so good.

However, now suppose that user@blah.edu has a PC
mail client and has smtp.blah.edu set as the outgoing
smtp server. If user@blah.edu mails user@sub2.blah.edu,
won't smtp.blah.edu accept the mail and then deny
it via virtusertable?

I suppose the question should be:

"Is it possible to deny the *acceptance* of mail on a
server for a subdomain, yet still allow the *relaying*
of mail to that subdomain though the server?"

Thanks again,
SQ

  Réponse avec citation
Vieux 07/09/2007, 20h20   #4
Andrzej Adam Filip
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: deny/allow for local-host-names?

soonquadruples@gmail.com writes:

> On Sep 7, 11:53 am, Andrzej Adam Filip <a...@onet.eu> wrote:
>> soonquadrup...@gmail.com writes:
>> > Consider blah.edu. The mail server for blah.edu lists blah.edu in
>> > local-host-names, so it
>> > accepts mail for addr...@blah.edu, but it also accepts
>> > addr...@sub1.blah.edu,
>> > addr...@sub2.blah.edu and addr...@sub3.blah.edu.

>>
>> > Is there some way, using local-host-names or perhaps another method,
>> > for the mail server to
>> > accept mail for addr...@blah.edu and addr...@sub3.blah.edu but not
>> > for
>> > addr...@sub1.blah.edu and addr...@sub2.blah.edu. Something like a
>> > deny/allow list
>> > where the exceptions could be listed first?

>>
>> > Thanks for any pointers or RTFMs.

>>
>> Use virtusertable to list all valid names in the sub-domains.
>>
>> virtusertable:
>> # list of valid emails in sub3.blah.edu
>> addre...@sub3.blah.edu %0
>> addre...@sub3.blah.edu %0
>> # instruction to reject remaining addresses in sub3.blah.edu
>> @sub3.blah.edu error:nouser User unknown

>
> Thank you very much for the quick response.
>
> I think that is very close to what I was looking for, but the
> problem is a bit more complex than I was letting on.
>
> Assume smtp.blah.edu is the mail server for blah.edu.
>
> sub2.blah.edu and sub3.blah.edu each run their own mail
> servers and have MX records to that effect. smtp.blah.edu
> (sadly) accepts mail for sub2 and sub3, even though
> it shouldn't, but it is perhaps understandable because it
> needs to accept @blah.edu addresses.
>
> So, I believe virtusertable would work to deny the
> accepting of mail for sub2 and sub3 at smtp.blah.edu.
> So far, so good.
>
> However, now suppose that user@blah.edu has a PC
> mail client and has smtp.blah.edu set as the outgoing
> smtp server. If user@blah.edu mails user@sub2.blah.edu,
> won't smtp.blah.edu accept the mail and then deny
> it via virtusertable?
>
> I suppose the question should be:
>
> "Is it possible to deny the *acceptance* of mail on a
> server for a subdomain, yet still allow the *relaying*
> of mail to that subdomain though the server?"


1) virtusertable is consulted before giving reply to "RCPT TO:"
2) virtusertable can be used for non local email domains
[e.g. for relayed domains ]

I suggest you taking a look at FEATURE(`ldap_routing').
It will allow you to
* add more email gateways
* route messages for blah.edu users without "central hub hop" at
sunN.blah.edu hosts

URL(s):
http://www.sendmail.org/m4/ldap_routing.html
[The latest version supports options not mentioned in the above URL]

--
[pl>en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl
"The hottest places in Hell are reserved for those who, in times of moral
crisis, preserved their neutrality."
-- Dante
  Réponse avec citation
Vieux 07/09/2007, 23h35   #5
Per Hedeland
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: deny/allow for local-host-names?

In article <1189191986.473308.306490@50g2000hsm.googlegroups. com>
soonquadruples@gmail.com writes:
>
>Assume smtp.blah.edu is the mail server for blah.edu.
>
>sub2.blah.edu and sub3.blah.edu each run their own mail
>servers and have MX records to that effect. smtp.blah.edu
>(sadly) accepts mail for sub2 and sub3, even though
>it shouldn't, but it is perhaps understandable because it
>needs to accept @blah.edu addresses.


No - putting blah.edu in local-host-names does not cause it to accept
mail for user@whatever.blah.edu - rather it is treated as any non-local
address, i.e. relayed if the rules permit that, otherwise rejected. If
you're seeing that it is accepted for local delivery, it's due to
something else - perhaps inapproriate DNS or /etc/hosts entries. The
output from

sendmail -d21.2 -bv user@sub2.blah.edu

may you figure out what is going on.

--Per Hedeland
per@hedeland.org
  Réponse avec citation
Vieux 08/09/2007, 17h19   #6
soonquadruples@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: deny/allow for local-host-names?

On Sep 7, 4:35 pm, p...@hedeland.org (Per Hedeland) wrote:
> In article <1189191986.473308.306...@50g2000hsm.googlegroups. com>
>
> soonquadrup...@gmail.com writes:
>
> No - putting blah.edu in local-host-names does not cause it to accept
> mail for u...@whatever.blah.edu - rather it is treated as any non-local
> address, i.e. relayed if the rules permit that, otherwise rejected. If
> you're seeing that it is accepted for local delivery, it's due to
> something else - perhaps inapproriate DNS or /etc/hosts entries. The
> output from
>
> sendmail -d21.2 -bv u...@sub2.blah.edu
>
> may you figure out what is going on.


Thank you. I was unaware that that was the case and could not
test it myself. I'll see if that command sheds any light.

For the record, I'm not the guy at the top trying to disallow the
subdomains,
I'm the subdomain guy trying to get the guys at the top to stop
accepting
mail for me. As I don't control the top, it's hard for me to do more
than
query, suggest and keep my patience tank full.

Thank you for your time.

Cheers,
SQ

  Réponse avec citation
Vieux 09/09/2007, 00h27   #7
Per Hedeland
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: deny/allow for local-host-names?

In article <1189268390.003853.148070@k79g2000hse.googlegroups .com>
soonquadruples@gmail.com writes:
>On Sep 7, 4:35 pm, p...@hedeland.org (Per Hedeland) wrote:
>> In article <1189191986.473308.306...@50g2000hsm.googlegroups. com>
>>
>> soonquadrup...@gmail.com writes:
>>
>> No - putting blah.edu in local-host-names does not cause it to accept
>> mail for u...@whatever.blah.edu - rather it is treated as any non-local
>> address, i.e. relayed if the rules permit that, otherwise rejected. If
>> you're seeing that it is accepted for local delivery, it's due to
>> something else - perhaps inapproriate DNS or /etc/hosts entries. The
>> output from
>>
>> sendmail -d21.2 -bv u...@sub2.blah.edu
>>
>> may you figure out what is going on.

>
>Thank you. I was unaware that that was the case and could not
>test it myself. I'll see if that command sheds any light.
>
>For the record, I'm not the guy at the top trying to disallow the
>subdomains,
>I'm the subdomain guy trying to get the guys at the top to stop
>accepting
>mail for me. As I don't control the top, it's hard for me to do more
>than
>query, suggest and keep my patience tank full.


OK, well, the command above has to be run at the "top" server - it will
just do a local trace of the rules that lead to the routing decision.
FWIW, there's another way than local-host-names (a.k.a. "class {w}") to
specify that a domain should be delivered locally (there are some subtle
differences), and that is to list it in the mailertable with a RHS of
'local:', i.e. like so:

blah.edu local:

That line will also only affect mail to user@blah.edu, but if you/they
also have a line

..blah.edu local:

- it will apply to user@whatever.blah.edu. Just mentioning this in case
that's what they're doing, since there's not a "canned" way (i.e. an
option in the .mc file or equivalent) to say that you want local
delivery for all of the subdomains of the domains that you have
specified in local-host-names - it's possible with custom rules of
course, but if they have such they ought to know about it...

--Per Hedeland
per@hedeland.org


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 07h50.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,15897 seconds with 15 queries