|
|
|
|
||||||
| comp.mail.sendmail Configuring and using the BSD sendmail agent. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
my virtusertable file I have the following entries
firstName1.LastName@myDomain.com userName1 firstName2.LastName@myDomain.com userName2 signup.x10@myDomain.com error:nouser 550 No such user here signup.+*@myDomain.com userName1 @myDomain.com error:nouser 550 No such user here I have two users; userName1 and userName2 where each of them get their email when someone uses their real full names. This works as expected. When doing online shopping, one usually needs to sign up by entering an email address. Since, I usually do not trust the site's "privacy policy" I want to have a generic address I can use, but at the same time be able to reject certain email address without ffecting others. In the example above, emails sent to signup.x10@myDomain.com should be rejected, but an email to signup.amazon@myDomain.com should go to userName1 All other email address should be rejected. The problem I having is that emails to signup.amazon@myDomain.com are not going through. Am I doing something wrong? And if so, can any of you . BTW, do i need to have the following two entries as well? userName1@myDomain.com userName1 userName2@myDomain.com userName2 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
Additional information, since email address appeared to be corrupt. I
repalced @ with AT firstName1.LastNameATmyDomain.com userName1 firstName2.LastNameATmyDomain.com userName2 signup.x10ATmyDomain.com error:nouser 550 No such user here signup.+*ATmyDomain.com userName1 ATmyDomain.com error:nouser 550 No such user here signup.x10ATmyDomain.com should be rejected, but an email to signup.amazonATmyDomain.com should go to userName1 BTW, do i need to have the following two entries as well? userName1ATmyDomain.com userName1 userName2ATmyDomain.com userName2 On Jan 25, 12:18 am, JesusChuyCam...@gmail.com wrote: > my virtusertable file I have the following entries > > firstName1.LastN...@myDomain.com userName1 > firstName2.LastN...@myDomain.com userName2 > signup....@myDomain.com error:nouser 550 No such user here > signup...@myDomain.com userName1 > @myDomain.com error:nouser 550 No such user here > > I have two users; userName1 and userName2 where each of them get their > email when someone uses their real full names. This works as expected. > When doing online shopping, one usually needs to sign up by entering an > email address. Since, I usually do not trust the site's "privacy > policy" I want to have a generic address I can use, but at the same > time be able to reject certain email address without ffecting others. > > In the example above, emails sent to signup....@myDomain.com should be > rejected, but an email to signup.ama...@myDomain.com should go to > userName1 All other email address should be rejected. > > The problem I having is that emails to signup.ama...@myDomain.com are > not going through. Am I doing something wrong? And if so, can any of > you . > > BTW, do i need to have the following two entries as well? > userNa...@myDomain.com userName1 > userNa...@myDomain.com userName2 |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
JesusChuyCampos@gmail.com writes:
> my virtusertable file I have the following entries > > firstName1.LastName@myDomain.com userName1 > firstName2.LastName@myDomain.com userName2 > signup.x10@myDomain.com error:nouser 550 No such user here > signup.+*@myDomain.com userName1 > @myDomain.com error:nouser 550 No such user here > > > I have two users; userName1 and userName2 where each of them get their > email when someone uses their real full names. This works as expected. > When doing online shopping, one usually needs to sign up by entering an > email address. Since, I usually do not trust the site's "privacy > policy" I want to have a generic address I can use, but at the same > time be able to reject certain email address without ffecting others. > > In the example above, emails sent to signup.x10@myDomain.com should be > rejected, but an email to signup.amazon@myDomain.com should go to > userName1 All other email address should be rejected. The plus in signup.+*@myDomain.com is matched *literally*. There is no '+' is signup.amazon@myDomain.com so there is no match. > The problem I having is that emails to signup.amazon@myDomain.com are > not going through. Am I doing something wrong? And if so, can any of > you . Try signup+*@myDomain.com entry in virtusertable and signup+amazon@myDomain.com as email address. > BTW, do i need to have the following two entries as well? > userName1@myDomain.com userName1 > userName2@myDomain.com userName2 -- [pl>en: 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/ [orkut,linkedin,xing] |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
If you have not done so already, do some reading on User+Detail in side the cf/README file. I think you will find that it provides what you want. You can also use a character other than "+".
With User+Detail, you only need to have your self in VirtUserTable one time. With User+Detail, you would have the following: firstName1.LastName@myDomain.com userName1 firstName2.LastName@myDomain.com userName2 signup@myDomain.com userName1 signup.x10@myDomain.com error:5.7.1:550 You are not allowed to send me email. signup+x10@myDomain.com error:5.7.1:550 You are not allowed to send me email. @myDomain.com error:5.1.1:550 nouser 550 No such user here With U+D you do not need to create entries for any and all possible signup addresses you want. You just have to block those that you no longer wish to receive. I also added the "5.7.1:550" to your error messages to cause the correct error to be returned. Grant. . . . |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
I want to thank both of you (Andrzej and Grant) for the great advice.
I works as expected now. -JC On Jan 25, 9:32 am, Grant Taylor <gtaylor@riverviewtech.net> wrote: > If you have not done so already, do some reading on User+Detail in side the cf/README file. I think you will find that it provides what you want. You can also use a character other than "+". > > With User+Detail, you only need to have your self in VirtUserTable one time. With User+Detail, you would have the following: > > firstName1.LastName@myDomain.com userName1 > firstName2.LastName@myDomain.com userName2 > signup@myDomain.com userName1 > signup.x10@myDomain.com error:5.7.1:550 You are not allowed to send me email. > signup+x10@myDomain.com error:5.7.1:550 You are not allowed to send me email. > @myDomain.com error:5.1.1:550 nouser 550 No such user here > > With U+D you do not need to create entries for any and all possible signup addresses you want. You just have to block those that you no longer wish to receive. > > I also added the "5.7.1:550" to your error messages to cause the correct error to be returned. > > Grant. . . . |
|
![]() |
| Outils de la discussion | |
|
|