|
|
|
|
||||||
| comp.mail.sendmail Configuring and using the BSD sendmail agent. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 $) |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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/ |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
* 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. |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
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 |
|
![]() |
| Outils de la discussion | |
|
|