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

user+detail -> user_detail

Réponse
 
LinkBack Outils de la discussion
Vieux 04/11/2007, 16h50   #1
matt@crazylogic.net
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut user+detail -> user_detail

With my current configuration I am using a wildcard in virtusertable for
my domain. And then in procmail I forward all mail of the form
[user]_[random]@crazylogic.net to the [user]@otherdomain.com. I set
this up a long time ago, so that I (and all my users) could use
different addresses for different purposes. I'm having a problem now
because alot of spammers are using my domain as a from address, with
[random]@crazylogic.net. I guess they like this because I treat all
crazylogic addresses as valid. I'd like to now report an error for all
unknown addresses, but still maintain [user]_[random]@crazylogic.net
support. I would tell my users to use [user]+[random]@crazylogic.net
instead, but the + isn't treated as a valid user by alot of online forms.

How do I make sendmail use an _ instead of a + be a seperator? I've
looked at sendmail.cf and see some virtuser voodoo that could possibly
be tweaked to accomplish what I want. I've tried playing around with it
a bit, keep getting 5.1.1 when I try to send an email to an addr with an
_ seperator. Does anyone know that good enough to give me some advice?
Or perhaps there is an easier solution?

Thanks for your
Matt.
  Réponse avec citation
Vieux 04/11/2007, 22h01   #2
Grant Taylor
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: user+detail -> user_detail

On 11/4/2007 9:50 AM, matt@crazylogic.net wrote:
> How do I make sendmail use an _ instead of a + be a seperator? I've
> looked at sendmail.cf and see some virtuser voodoo that could possibly
> be tweaked to accomplish what I want. I've tried playing around with it
> a bit, keep getting 5.1.1 when I try to send an email to an addr with an
> _ seperator. Does anyone know that good enough to give me some advice?
> Or perhaps there is an easier solution?


I'm not sure how to do it off hand (I'll have to look it up) but I know
there is a way to alter the "+" in user+detail to be a different character.



Grant. . . .

  Réponse avec citation
Vieux 05/11/2007, 19h56   #3
Matt Gostick
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: user+detail -> user_detail

The section in sendmail.cf that I'm editing is below:

1: # handle virtual users
2: R$+ $: <!> $1 Mark for lookup
3: R<!> $+ < @ $={VirtHost} . > $: < $(virtuser $1 @ $2 $@ $1 $: @ $)
> $1 < @ $2 . >

4: R<!> $+ < @ $=w . > $: < $(virtuser $1 @ $2 $@ $1 $: @ $) > $1 <
@ $2 . >
5: R<@> $+ + $+ < @ $* . >
6: $: < $(virtuser $1 + + @ $3 $@ $1 $@ $2 $@ +$2 $: @ $) > $1 +
$2 < @ $3 . >
7: R<@> $+ + $* < @ $* . >
8: $: < $(virtuser $1 + * @ $3 $@ $1 $@ $2 $@ +$2 $: @ $) > $1 +
$2 < @ $3 . >
9: R<@> $+ _ $* < @ $* . >
10: $: < $(virtuser $1 _ * @ $3 $@ $1 $@ $2 $@ +$2 $: @ $) > $1
_ $2 < @ $3 . >
11: R<@> $+ + $* < @ $* . >
12: $: < $(virtuser $1 @ $3 $@ $1 $@ $2 $@ +$2 $: @ $) > $1 + $2
< @ $3 . >
13: R<@> $+ + $+ < @ $+ . > $: < $(virtuser + + @ $3 $@ $1 $@ $2 $@ +
$2 $: @ $) > $1 + $2 < @ $3 . >
14: R<@> $+ + $* < @ $+ . > $: < $(virtuser + * @ $3 $@ $1 $@ $2 $@ +
$2 $: @ $) > $1 + $2 < @ $3 . >
15: R<@> $+ _ $* < @ $+ . > $: < $(virtuser _ * @ $3 $@ $1 $@ $2 $@ +
$2 $: @ $) > $1 _ $2 < @ $3 . >
16: R<@> $+ + $* < @ $+ . > $: < $(virtuser @ $3 $@ $1 $@ $2 $@ +$2
$: ! $) > $1 + $2 < @ $3 . >
17: R<@> $+ < @ $+ . > $: < $(virtuser @ $2 $@ $1 $: @ $) > $1 < @
$2 . >
18: R<@> $+ $: $1
20: R<!> $+ $: $1
21: R< error : $-.$-.$- : $+ > $* $#error $@ $1.$2.$3 $: $4
22: R< error : $- $+ > $* $#error $@ $(dequote $1 $) $: $2
23: R< $+ > $+ < @ $+ > $: $>Recurse $1


I've added lines 9,10,15, but after restarting sendmail, I still get
'User unknown'. I don't really understand the syntax of the above
code, so I'm really just stabbing in the dark. If anyone can correct
what I have above, or point me in the direction of figuring it out,
I'd be very appreciative.

Thanks
Matt


On Nov 4, 4:01 pm, Grant Taylor <gtay...@riverviewtech.net> wrote:
> On 11/4/2007 9:50 AM, m...@crazylogic.net wrote:
>
> > How do I make sendmail use an _ instead of a + be a seperator? I've
> > looked at sendmail.cf and see some virtuser voodoo that could possibly
> > be tweaked to accomplish what I want. I've tried playing around with it
> > a bit, keep getting 5.1.1 when I try to send an email to an addr with an
> > _ seperator. Does anyone know that good enough to give me some advice?
> > Or perhaps there is an easier solution?

>
> I'm not sure how to do it off hand (I'll have to look it up) but I know
> there is a way to alter the "+" in user+detail to be a different character.
>
> Grant. . . .



  Réponse avec citation
Vieux 05/11/2007, 20h01   #4
Matt Gostick
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: user+detail -> user_detail


Ew, that chunk looks awful when wordwrapped.
If you wanna see it online its here:
http://www.crazylogic.net/virtuser.html

On Nov 5, 1:56 pm, Matt Gostick <mgost...@gmail.com> wrote:
> The section in sendmail.cf that I'm editing is below:
>
> 1: # handle virtual users
> 2: R$+ $: <!> $1 Mark for lookup
> 3: R<!> $+ < @ $={VirtHost} . > $: < $(virtuser $1 @ $2 $@ $1 $: @ $)> $1 < @ $2 . >
>
> 4: R<!> $+ < @ $=w . > $: < $(virtuser $1 @ $2 $@ $1 $: @ $) > $1 <
> @ $2 . >
> 5: R<@> $+ + $+ < @ $* . >
> 6: $: < $(virtuser $1 + + @ $3 $@ $1 $@ $2 $@ +$2 $: @ $) > $1 +
> $2 < @ $3 . >
> 7: R<@> $+ + $* < @ $* . >
> 8: $: < $(virtuser $1 + * @ $3 $@ $1 $@ $2 $@ +$2 $: @ $) > $1 +
> $2 < @ $3 . >
> 9: R<@> $+ _ $* < @ $* . >
> 10: $: < $(virtuser $1 _ * @ $3 $@ $1 $@ $2 $@ +$2 $: @ $) > $1
> _ $2 < @ $3 . >
> 11: R<@> $+ + $* < @ $* . >
> 12: $: < $(virtuser $1 @ $3 $@ $1 $@ $2 $@ +$2 $: @ $) > $1 + $2
> < @ $3 . >
> 13: R<@> $+ + $+ < @ $+ . > $: < $(virtuser + + @ $3 $@ $1 $@ $2 $@ +
> $2 $: @ $) > $1 + $2 < @ $3 . >
> 14: R<@> $+ + $* < @ $+ . > $: < $(virtuser + * @ $3 $@ $1 $@ $2 $@ +
> $2 $: @ $) > $1 + $2 < @ $3 . >
> 15: R<@> $+ _ $* < @ $+ . > $: < $(virtuser _ * @ $3 $@ $1 $@ $2 $@ +
> $2 $: @ $) > $1 _ $2 < @ $3 . >
> 16: R<@> $+ + $* < @ $+ . > $: < $(virtuser @ $3 $@ $1 $@ $2 $@ +$2
> $: ! $) > $1 + $2 < @ $3 . >
> 17: R<@> $+ < @ $+ . > $: < $(virtuser @ $2 $@ $1 $: @ $) > $1 < @
> $2 . >
> 18: R<@> $+ $: $1
> 20: R<!> $+ $: $1
> 21: R< error : $-.$-.$- : $+ > $* $#error $@ $1.$2.$3 $: $4
> 22: R< error : $- $+ > $* $#error $@ $(dequote $1 $) $: $2
> 23: R< $+ > $+ < @ $+ > $: $>Recurse $1
>
> I've added lines 9,10,15, but after restarting sendmail, I still get
> 'User unknown'. I don't really understand the syntax of the above
> code, so I'm really just stabbing in the dark. If anyone can correct
> what I have above, or point me in the direction of figuring it out,
> I'd be very appreciative.
>
> Thanks
> Matt
>
> On Nov 4, 4:01 pm, Grant Taylor <gtay...@riverviewtech.net> wrote:
>
> > On 11/4/2007 9:50 AM, m...@crazylogic.net wrote:

>
> > > How do I make sendmail use an _ instead of a + be a seperator? I've
> > > looked at sendmail.cf and see some virtuser voodoo that could possibly
> > > be tweaked to accomplish what I want. I've tried playing around with it
> > > a bit, keep getting 5.1.1 when I try to send an email to an addr with an
> > > _ seperator. Does anyone know that good enough to give me some advice?
> > > Or perhaps there is an easier solution?

>
> > I'm not sure how to do it off hand (I'll have to look it up) but I know
> > there is a way to alter the "+" in user+detail to be a different character.

>
> > Grant. . . .



  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 09h05.


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