How to reject mails those users does not exist in Sendmail

Anil Sawale asawale at cautel.com
Wed Aug 16 11:42:16 UTC 2006


Thanks for replay, but my problem is not solved.

I have only one domain in that 12 users. I want reveive mails only for 12
users and other for reject.

-regards
anil

-----Original Message-----
From: redhat-list-bounces at redhat.com
[mailto:redhat-list-bounces at redhat.com]On Behalf Of Manuel Arostegui
Ramirez
Sent: Wednesday, August 16, 2006 4:26 PM
To: asawale at cautel.com; General Red Hat Linux discussion list
Subject: Re: How to reject mails those users does not exist in Sendmail


El Miércoles, 16 de Agosto de 2006 12:43, Anil Sawale escribió:
> Hi! I have RedHat Linux 9 cinfigured sendmail its working fine but one
> problem is that,
> I received mails on acount of post master, those users not exist.
>
>
> please anyone have solution, help me.
>
> -Anil Sawale

Do you mean sendmail reject delivery of all mail when the receipent
doesn't appear in the virtualusertable?

If so, try putting a catch-all address in the virtusertable:

@domain.com	error:nouser 550 User unknown

Once you've done this you will have to add all the users that should
receive mail at that address or they too will be rejected.

If you want sendmail to reject non-existent users per domain, you obviously
have to tell it which users exist in each domain. This is done by
enumerating
them in the virtusertable and adding the catch-all to indicate that all
users
are explicitly listed there.

If you have a lot of domains on that machine,that can hardly be a problem




More information about the redhat-list mailing list