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 > Getting .REDIRECT aliases to fail during SMTP negotiation
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.mail.sendmail Configuring and using the BSD sendmail agent.

Getting .REDIRECT aliases to fail during SMTP negotiation

Réponse
 
LinkBack Outils de la discussion
Vieux 12/01/2007, 22h05   #1
Greg Couch
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Getting .REDIRECT aliases to fail during SMTP negotiation

I had a problem with FEATURE(`redirect') -- it accepts email to a user
that has moved, then when it tries to do the local delivery, it generates
a bounce. But often the original email has a forged sender and the email
was spam, so the "sender" rejects the email and it ends up in the my
(the postmaster's) mailbox as an undeliverable bounce.

My solution was to cause the "user moved" error message to be given as the
response to the SMTP RCPT TO command. Enclosed below are the additional
lines need in a .mc file. If there is a better way, I'd like to hear it.

Enjoy,

Greg Couch
gregc@cgl.ucsf.edu

-----------------
..mc file addition
-----------------
feature(`redirect')
# do the REDIRECT check earlier, so we reject during SMTP transaction
LOCAL_RULESETS
SLocal_check_rcpt
R$+ $: $>FullAddr $>CanonAddr $1
R$+ < @ $=w > $: $>ParseLocal $>canonify $( aliases $1 $)
  Réponse avec citation
Vieux 12/01/2007, 22h44   #2
Andrzej Adam Filip
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Getting .REDIRECT aliases to fail during SMTP negotiation

Greg Couch <gregc@cgl.ucsf.edu> writes:

> I had a problem with FEATURE(`redirect') -- it accepts email to a user
> that has moved, then when it tries to do the local delivery, it generates
> a bounce. But often the original email has a forged sender and the email
> was spam, so the "sender" rejects the email and it ends up in the my
> (the postmaster's) mailbox as an undeliverable bounce.
>
> My solution was to cause the "user moved" error message to be given as the
> response to the SMTP RCPT TO command. Enclosed below are the additional
> lines need in a .mc file. If there is a better way, I'd like to hear it.
>
> Enjoy,
>
> Greg Couch
> gregc@cgl.ucsf.edu
>
> -----------------
> .mc file addition
> -----------------
> feature(`redirect')
> # do the REDIRECT check earlier, so we reject during SMTP transaction
> LOCAL_RULESETS
> SLocal_check_rcpt
> R$+ $: $>FullAddr $>CanonAddr $1
> R$+ < @ $=w > $: $>ParseLocal $>canonify $( aliases $1 $)


Have you tried to put .REDIRECT addresses in virtusertable?
It should fix your problem.

--
[pl2en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl
Before You Ask: http://anfi.homeunix.net/sendmail/B4UAsk-Sendmail.html
http://anfi.homeunix.net/sendmail/
  Réponse avec citation
Vieux 13/01/2007, 19h24   #3
NPG
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Getting .REDIRECT aliases to fail during SMTP negotiation

* Greg Couch wrote:
> I had a problem with FEATURE(`redirect') -- it accepts email to a user
> that has moved, then when it tries to do the local delivery, it generates
> a bounce. But often the original email has a forged sender and the email
> was spam, so the "sender" rejects the email and it ends up in the my
> (the postmaster's) mailbox as an undeliverable bounce.
>
> My solution was to cause the "user moved" error message to be given as the
> response to the SMTP RCPT TO command. Enclosed below are the additional
> lines need in a .mc file. If there is a better way, I'd like to hear it.
>
> Enjoy,
>
> Greg Couch
> gregc@cgl.ucsf.edu
>
> -----------------
> .mc file addition
> -----------------
> feature(`redirect')
> # do the REDIRECT check earlier, so we reject during SMTP transaction
> LOCAL_RULESETS
> SLocal_check_rcpt
> R$+ $: $>FullAddr $>CanonAddr $1
> R$+ < @ $=w > $: $>ParseLocal $>canonify $( aliases $1 $)

Why not throw something like this in your access database?

To:address@mydomain.com 550 User unavailable.

of course replace address with the username and mydomain with your domain.

Also the Bat book 3rd Edition p. 197 describes this problem and another
( less ideal ) way to deal with it.
  Réponse avec citation
Vieux 23/01/2007, 02h03   #4
Greg Couch
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Getting .REDIRECT aliases to fail during SMTP negotiation

Andrzej Adam Filip <anfi@onet.eu> writes:

>Greg Couch <gregc@cgl.ucsf.edu> writes:


>> I had a problem with FEATURE(`redirect') -- it accepts email to a user
>> that has moved, then when it tries to do the local delivery, it generates
>> a bounce. But often the original email has a forged sender and the email
>> was spam, so the "sender" rejects the email and it ends up in the my
>> (the postmaster's) mailbox as an undeliverable bounce.
>>
>> My solution was to cause the "user moved" error message to be given as the
>> response to the SMTP RCPT TO command. Enclosed below are the additional
>> lines need in a .mc file. If there is a better way, I'd like to hear it.
>>
>> Enjoy,
>>
>> Greg Couch
>> gregc@cgl.ucsf.edu
>>
>> -----------------
>> .mc file addition
>> -----------------
>> feature(`redirect')
>> # do the REDIRECT check earlier, so we reject during SMTP transaction
>> LOCAL_RULESETS
>> SLocal_check_rcpt
>> R$+ $: $>FullAddr $>CanonAddr $1
>> R$+ < @ $=w > $: $>ParseLocal $>canonify $( aliases $1 $)


>Have you tried to put .REDIRECT addresses in virtusertable?
>It should fix your problem.


>--
>[pl2en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl
>Before You Ask: http://anfi.homeunix.net/sendmail/B4UAsk-Sendmail.html
>http://anfi.homeunix.net/sendmail/


I didn't try the virtusertable, but locally, several people have edit
access to the aliases file and are used to putting mail forwarding
information there, so I didn't want to confuse them with another file.

- Greg
  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 10h52.


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