Re: question on virtusertable - sendmail

2006-11-24 Thread John Nielsen
On Friday 24 November 2006 15:18, Giorgos Keramidas wrote:
> On 2006-11-24 15:04, David Banning 
<[EMAIL PROTECTED]> wrote:
> >> @domain.combounce
> >>
> >> You can define "bounce" in /etc/mail/aliases, or just leave it
> >> undefined (since it will probably bounce anyway).
> >
> > I am looking at my /etc/mail/aliases
> >
> > how would I define bounce?
> >
> > I know I could simple send it to /dev/null, but I want it to bounce
> > back to the sender with a "no such user" error.
>
> How about bouncing from inside `virtusertable' itself?
>
> [EMAIL PROTECTED]   alpha
> [EMAIL PROTECTED]beta
> @domain.comerror:nouser 550 No such user here
>
> I think this is the cleanest way to do something like the setup you
> described, since all the relevant information is kept closely packed
> together in `virtusertable' itself.

I thought there should be a better way than what I described. With this 
approach you don't necessarily need a catchall entry. Just let the mail 
flow through for everyone except exceptions listed in virtusertable.

JN
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: question on virtusertable - sendmail

2006-11-24 Thread Giorgos Keramidas
On 2006-11-24 15:04, David Banning <[EMAIL PROTECTED]> wrote:
>> @domain.com  bounce
>> 
>> You can define "bounce" in /etc/mail/aliases, or just leave it undefined 
>> (since it will probably bounce anyway).
> 
> I am looking at my /etc/mail/aliases
> 
> how would I define bounce?
> 
> I know I could simple send it to /dev/null, but I want it to bounce 
> back to the sender with a "no such user" error.

How about bouncing from inside `virtusertable' itself?

[EMAIL PROTECTED]   alpha
[EMAIL PROTECTED]beta
@domain.comerror:nouser 550 No such user here

I think this is the cleanest way to do something like the setup you
described, since all the relevant information is kept closely packed
together in `virtusertable' itself.

- Giorgos

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: question on virtusertable - sendmail

2006-11-24 Thread John Nielsen
On Friday 24 November 2006 15:04, David Banning wrote:
> > @domain.com bounce
> >
> > You can define "bounce" in /etc/mail/aliases, or just leave it
> > undefined (since it will probably bounce anyway).
>
> I am looking at my /etc/mail/aliases
>
> how would I define bounce?
>
> I know I could simple send it to /dev/null, but I want it to bounce
> back to the sender with a "no such user" error.

That should be the behavior you'd get from leaving it undefined. I actually 
don't know of a straightforward way to do it otherwise (short of using a 
pipe redirect to another program)..

JN
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: question on virtusertable - sendmail

2006-11-24 Thread David Banning
> @domain.com   bounce
> 
> You can define "bounce" in /etc/mail/aliases, or just leave it undefined 
> (since it will probably bounce anyway).

I am looking at my /etc/mail/aliases

how would I define bounce?

I know I could simple send it to /dev/null, but I want it to bounce 
back to the sender with a "no such user" error.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: question on virtusertable - sendmail

2006-11-24 Thread John Nielsen
On Friday 24 November 2006 14:39, David Banning wrote:
> I have several times where I have no user setup in virtusertable but
> the mail is still delivered to the user. If I delete the user
> then the mail bounces - I want to keep the user and still have
> the mail bounce - how would I do that?

Create a virtusertable entry for each user at the relevant domain you DO 
want to receive mail, then add a catchall entry:

[EMAIL PROTECTED]   bob
[EMAIL PROTECTED]   tom
@domain.com bounce

You can define "bounce" in /etc/mail/aliases, or just leave it undefined 
(since it will probably bounce anyway).

JN
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"