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 > enforce sender address?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.mail.sendmail Configuring and using the BSD sendmail agent.

enforce sender address?

Réponse
 
LinkBack Outils de la discussion
Vieux 20/08/2007, 19h13   #1
Kevin K
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut enforce sender address?

I posted a few days ago asking if sendmail could require that a sender's
"From:" address match that of a certificate presented at STARTTLS to allow
relaying.

Since I haven't heard back, I'll assume the answer is 'no'.

Is there *any* way to require clients to only use a correct sender address?
  Réponse avec citation
Vieux 21/08/2007, 05h14   #2
Bill Cole
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: enforce sender address?

In article <pan.2007.08.20.18.08.53.41906@kretz.net>,
Kevin K <c.m.s@kretz.net> wrote:

> I posted a few days ago asking if sendmail could require that a sender's
> "From:" address match that of a certificate presented at STARTTLS to allow
> relaying.
>
> Since I haven't heard back, I'll assume the answer is 'no'.


You probably want to reconsider your trust in the reliability of this
newsgroup.

The answer is actually "yes" but I don't have a handy pointer to the .cf
code to do it. The cert subject DN would be available for checking in
the check_* rulesets and/or a custom From header ruleset.


> Is there *any* way to require clients to only use a correct sender address?


Absolutely. There are probably a dozen unique ways to do it, and at
least four could be referred to as 'standard' in that they use
technologies described in various RFC's. What are you willing to demand
that your users adopt?

If you want to do this on a machine that accepts mail from people that
you cannot dictate specific technologies to (i.e. an inbound MX) then
you can forget it. That's not a technical problem, but a social one.

--
Now where did I hide that website...
  Réponse avec citation
Vieux 21/08/2007, 17h02   #3
Kevin K
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: enforce sender address?

On Tue, 21 Aug 2007 00:14:27 -0400, Bill Cole wrote:

> In article <pan.2007.08.20.18.08.53.41906@kretz.net>,
> Kevin K <c.m.s@kretz.net> wrote:
>
>> I posted a few days ago asking if sendmail could require that a sender's
>> "From:" address match that of a certificate presented at STARTTLS to
>> allow relaying.

(snip)
> The answer is actually "yes" but I don't have a handy pointer to the .cf
> code to do it. The cert subject DN would be available for checking in the
> check_* rulesets and/or a custom From header ruleset.


Thanks - I'll do some more searching, then.




>
>
>> Is there *any* way to require clients to only use a correct sender
>> address?

>
> Absolutely. There are probably a dozen unique ways to do it, and at least
> four could be referred to as 'standard' in that they use technologies
> described in various RFC's. What are you willing to demand that your users
> adopt?


The users of this relay are a small group whose mails have increased
integrity and security requirements. Often the messages they send are
generated by software (which is why I was asking about using a certificate).

They'll do whatever I insist on. (how often can admins say that?)


> If you want to do this on a machine that accepts mail from people that you
> cannot dictate specific technologies to (i.e. an inbound MX) then you can
> forget it. That's not a technical problem, but a social one.


Nope. I have a captive audience.

  Réponse avec citation
Vieux 21/08/2007, 17h24   #4
Bill Cole
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: enforce sender address?

In article <pan.2007.08.21.15.57.25.613035@kretz.net>,
Kevin K <c.m.s@kretz.net> wrote:

> On Tue, 21 Aug 2007 00:14:27 -0400, Bill Cole wrote:
>
> > In article <pan.2007.08.20.18.08.53.41906@kretz.net>,
> > Kevin K <c.m.s@kretz.net> wrote:
> >
> >> I posted a few days ago asking if sendmail could require that a sender's
> >> "From:" address match that of a certificate presented at STARTTLS to
> >> allow relaying.

> (snip)
> > The answer is actually "yes" but I don't have a handy pointer to the .cf
> > code to do it. The cert subject DN would be available for checking in the
> > check_* rulesets and/or a custom From header ruleset.

>
> Thanks - I'll do some more searching, then.


It should be a pretty simple ruleset *conceptually* but I don't have one
written. I also know of no public source.

The sendmail.cf macro {cert_subject} is the subject DN of the client
certificate, and that can/might/should (depending on who you ask)
contain an email address or the components to build one. In check_mail
you could reject the mail if the envelope sender does not match that
address and in a custom From header ruleset you could check against the
From header. There are a lot of potential edge cases in checking whether
one address is equivalent to another, but in a controlled environment
they should be manageable.


> >> Is there *any* way to require clients to only use a correct sender
> >> address?

> >
> > Absolutely. There are probably a dozen unique ways to do it, and at least
> > four could be referred to as 'standard' in that they use technologies
> > described in various RFC's. What are you willing to demand that your users
> > adopt?

>
> The users of this relay are a small group whose mails have increased
> integrity and security requirements. Often the messages they send are
> generated by software (which is why I was asking about using a certificate).
>
> They'll do whatever I insist on. (how often can admins say that?)


Lucky bastard

You might also want to consider the alternative of a content signature
(e.g. S/MIME or PGP) and a milter to validate that and match it to
envelope sender and/or From header. The STARTTLS cert is only used for
transport encryption, so validating against that only tells you that the
claimed senders/authors are the same people talking SMTP to you, but it
doesn't tell you that specific message content is really theirs.

--
Now where did I hide that website...
  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 01h56.


É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,11457 seconds with 12 queries