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 > delay acceptance until downstream smtp server checks
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.mail.sendmail Configuring and using the BSD sendmail agent.

delay acceptance until downstream smtp server checks

Réponse
 
LinkBack Outils de la discussion
Vieux 30/01/2007, 18h03   #1
John E. Hein
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut delay acceptance until downstream smtp server checks

Scenario: an smtp server running sendmail that forwards mail for
certain users in its domain to an email account in another domain.

How do I tell the local sendmail to wait to accept an email until the
downstream MTA has done its envelope checks?

This would avoid bounce messages when the downstream MTA refuses a
message that seems otherwise okay to the local sendmail, and the
bounce cannot be delivered to the original sender (as is, of course,
often the case with spam).
  Réponse avec citation
Vieux 30/01/2007, 21h33   #2
Dennis Peterson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: delay acceptance until downstream smtp server checks

John E. Hein wrote:
> Scenario: an smtp server running sendmail that forwards mail for
> certain users in its domain to an email account in another domain.
>
> How do I tell the local sendmail to wait to accept an email until the
> downstream MTA has done its envelope checks?
>
> This would avoid bounce messages when the downstream MTA refuses a
> message that seems otherwise okay to the local sendmail, and the
> bounce cannot be delivered to the original sender (as is, of course,
> often the case with spam).


See milter-ahead at snertsoft.com.

dp
  Réponse avec citation
Vieux 30/01/2007, 22h31   #3
John E. Hein
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: delay acceptance until downstream smtp server checks

Dennis Peterson <dennispe@inetnw.com> writes:
> John E. Hein wrote:
> > Scenario: an smtp server running sendmail that forwards mail for
> > certain users in its domain to an email account in another domain.
> > How do I tell the local sendmail to wait to accept an email until the
> > downstream MTA has done its envelope checks?
> > This would avoid bounce messages when the downstream MTA refuses a
> > message that seems otherwise okay to the local sendmail, and the
> > bounce cannot be delivered to the original sender (as is, of course,
> > often the case with spam).

>
> See milter-ahead at snertsoft.com.


I've seen that one, but I haven't yet tried it.

Anyone know of any other milters or other options? Nothing in
sendmail proper? This seems like a common problem for a server
with a lot of forwards to have.
  Réponse avec citation
Vieux 31/01/2007, 01h36   #4
jmaimon@ttec.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: delay acceptance until downstream smtp server checks

On Jan 30, 5:31 pm, j...@gromit.timing.com (John E. Hein) wrote:
> Dennis Peterson <denni...@inetnw.com> writes:
> > John E. Hein wrote:
> > > Scenario: an smtp server running sendmail that forwards mail for
> > > certain users in its domain to an email account in another domain.
> > > How do I tell the local sendmail to wait to accept an email until the
> > > downstream MTA has done its envelope checks?
> > > This would avoid bounce messages when the downstream MTA refuses a
> > > message that seems otherwise okay to the local sendmail, and the
> > > bounce cannot be delivered to the original sender (as is, of course,
> > > often the case with spam).

>
> > See milter-ahead at snertsoft.com.

>
> I've seen that one, but I haven't yet tried it.
>
> Anyone know of any other milters or other options? Nothing in
> sendmail proper? This seems like a common problem for a server
> with a lot of forwards to have.



----------
"How do I let my mx gateway server recognize which recipients are
valid
on the final destionation/next hop server and which are not?"

Which has hit the newsgroup so frequently it really needs to be a faq
entry.

The short answers are:

*

Use ldap routing

see cf/README

+--------------+
| LDAP ROUTING |
-++--------------+

http://www.sendmail.org/m4/ldap_routing.html

*

Use virtusertable with undocumented feature and an entry for each
valid user and a catchall entry that @domain.com error:nouser

_VIRTUSER_STOP_ONE_LEVEL_RECURSION_

*

Use virtusertable with a RHS of "!" for each valid user and a
catchall entry that @domain.com error:nouser

*

Use access db with undocumented feature

define(`_RELAY_FULL_ADDR_', `1')

And put all your users in there

To:u...@example.com RELAY

*

use a milter of which there are several.

milter-ahead
j-chkmail
mimedefang
dnsbl
callahead-milter
milter-sav

A list of milters is available at
http://www.jmaimon.com/sendmail/milters

  Réponse avec citation
Vieux 31/01/2007, 01h40   #5
jmaimon@ttec.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: delay acceptance until downstream smtp server checks

On Jan 30, 1:03 pm, j...@gromit.timing.com (John E. Hein) wrote:
> Scenario: an smtp server running sendmail that forwards mail for
> certain users in its domain to an email account in another domain.
>
> How do I tell the local sendmail to wait to accept an email until the
> downstream MTA has done its envelope checks?
>
> This would avoid bounce messages when the downstream MTA refuses a
> message that seems otherwise okay to the local sendmail, and the
> bounce cannot be delivered to the original sender (as is, of course,
> often the case with spam).



Do you want recipient checks or do you want to actually send the whole
message downstream before reporting 250 after the smtp DATA phase?

The former is the common problem.

  Réponse avec citation
Vieux 31/01/2007, 04h35   #6
John E. Hein
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: delay acceptance until downstream smtp server checks

"jmaimon@ttec.com" <jmaimon@ttec.com> writes:
> Do you want recipient checks or do you want to actually send the whole
> message downstream before reporting 250 after the smtp DATA phase?
>
> The former is the common problem.


I would be interested in hearing about a solution to hold an email
until the full email was checked downstream (in case, for instance,
the downstream server used something like spamass-milter with a
rejection threshold). But I could see how that could get
problematic in terms of processing time.

To answer your question, I would be happy at this point with a
solution that did full envelope checks on the downstream server before
accepting the mail on my server. It may not be just the recipient
that the downstream server rejects (the envelope could contain a
sending domain that the next server considers invalid whereas my
server might not for whatever reason).

That would prevent most of the MAILER-DAEMON bounces I see.
  Réponse avec citation
Vieux 31/01/2007, 04h56   #7
John E. Hein
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: delay acceptance until downstream smtp server checks

"jmaimon@ttec.com" <jmaimon@ttec.com> writes:
> "How do I let my mx gateway server recognize which recipients are
> valid
> on the final destionation/next hop server and which are not?"
>
> Which has hit the newsgroup so frequently it really needs to be a faq
> entry.
>
> The short answers are:
>
> *
>
> Use ldap routing
>
> see cf/README
>
> +--------------+
> | LDAP ROUTING |
> -++--------------+
>
> http://www.sendmail.org/m4/ldap_routing.html


This doesn't me.
That would still involve accepting a mail and relaying to the
downstream host which might then reject it causing bounce
messages from MAILER-DAEMON on my server.


> *
>
> Use virtusertable with undocumented feature and an entry for each
> valid user and a catchall entry that @domain.com error:nouser
>
> _VIRTUSER_STOP_ONE_LEVEL_RECURSION_


I'm pretty sure this feature does not address my problem either.

from proto.m4 ...
dnl this is not a documented option
dnl it stops looping in virtusertable mapping if input and output
dnl are identical, i.e., if address A is mapped to A.
dnl it does not deal with multi-level recursion

> *
>
> Use virtusertable with a RHS of "!" for each valid user and a
> catchall entry that @domain.com error:nouser


Same issues. Unknown user downstream is not really a problem
in my case. It may happen on occasion when a downstream
server (not under my control) deletes an account or one of
my users supplies an erroneous forwarding account. But
I don't have a problem with seeing bounces from those.
It's the bounces that aren't really errors that are the
problems (e.g., slightly different envelope rejection criteria
on the downstream server).


> *
>
> Use access db with undocumented feature
>
> define(`_RELAY_FULL_ADDR_', `1')
>
> And put all your users in there
>
> To:u...@example.com RELAY
>


Doesn't me either.


> *
> use a milter of which there are several.
>
> milter-ahead
> j-chkmail
> mimedefang
> dnsbl
> callahead-milter
> milter-sav
>
> A list of milters is available at
> http://www.jmaimon.com/sendmail/milters


Some of those (not mimedefang, not dnsbl, as far as I can see) may do
the trick. I'll check them out. Thanks.
  Réponse avec citation
Vieux 31/01/2007, 05h23   #8
Dennis Peterson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: delay acceptance until downstream smtp server checks

John E. Hein wrote:
> "jmaimon@ttec.com" <jmaimon@ttec.com> writes:
>> Do you want recipient checks or do you want to actually send the whole
>> message downstream before reporting 250 after the smtp DATA phase?
>>
>> The former is the common problem.

>
> I would be interested in hearing about a solution to hold an email
> until the full email was checked downstream (in case, for instance,
> the downstream server used something like spamass-milter with a
> rejection threshold). But I could see how that could get
> problematic in terms of processing time.
>
> To answer your question, I would be happy at this point with a
> solution that did full envelope checks on the downstream server before
> accepting the mail on my server. It may not be just the recipient
> that the downstream server rejects (the envelope could contain a
> sending domain that the next server considers invalid whereas my
> server might not for whatever reason).
>
> That would prevent most of the MAILER-DAEMON bounces I see.


You heard it - sendmail does not provide this. It is an MTA, first and
last, has some basic rules you can use, but it quickly becomes
cumbersome. You extend it with milters. A milter that does exactly what
you want is milter-ahead. Your other choice is to maintain a list in the
virtusertable or access_db on the gateway system of all the valid
addresses it is expected to relay for and rejects the rest and I assure
you that can be a lot of work. Using LDAP/Active Directory is an option
but not a light weight one.

At least in the case of milter-ahead it caches the results of what it
finds which reduces the call-ahead retry traffic. Milter-ahead looks at
your mailertable to determine which domains to call ahead to, so it
doesn't get bogged down trying pre-contacting every domain you relay for.

dp
  Réponse avec citation
Vieux 01/02/2007, 00h42   #9
jmaimon@ttec.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: delay acceptance until downstream smtp server checks

On Jan 30, 11:35 pm, j...@gromit.timing.com (John E. Hein) wrote:
> "jmai...@ttec.com" <jmai...@ttec.com> writes:
> > Do you want recipient checks or do you want to actually send the whole
> > message downstream before reporting 250 after the smtp DATA phase?

>
> > The former is the common problem.

>
> I would be interested in hearing about a solution to hold an email
> until the full email was checked downstream (in case, for instance,
> the downstream server used something like spamass-milter with a
> rejection threshold). But I could see how that could get
> problematic in terms of processing time.
>
> To answer your question, I would be happy at this point with a
> solution that did full envelope checks on the downstream server before
> accepting the mail on my server. It may not be just the recipient
> that the downstream server rejects (the envelope could contain a
> sending domain that the next server considers invalid whereas my
> server might not for whatever reason).
>
> That would prevent most of the MAILER-DAEMON bounces I see.



Some of the milters on the list support rcpt checking and sender
checking both on the recipient servers and on the purported sender's
server.


  Réponse avec citation
Vieux 02/02/2007, 00h53   #10
David F. Skoll
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: delay acceptance until downstream smtp server checks

John E. Hein wrote:

> Some of those (not mimedefang, not dnsbl, as far as I can see) may do
> the trick.


Of course MIMEDefang will do the trick. It has a function specifically
for this purpose.

--
David.
  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 03h45.


É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,20861 seconds with 18 queries