[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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.

  sed 's/.*/@&  error:nouser 550 User unknown/' /etc/mail/local-host-names

(You may need to filter out a few.)

Hope that helps.
Manuel Arostegui Ramirez.

Electronic Mail is not secure, may not be read every day, and should not
be used for urgent or sensitive issues.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]