I host multiple domain on my server and have problems with virtusertable.
I only have one user called
info@domain1.com in my virtusertable but other spam mail with
info@domain2.com as user will get into my "info" mailbox. I only have ONE (1) info user which is from domain1.com.
What is wrong? If I try sending
abc@domain1.com or
abc@domain2.com it will get the error "No such user" error.
Why can't sendmail catch the info??
/etc/mail/virtusertable
user1@domain2.com user1
user2@domain2.com user2
@domain2.com ERROR:nouser No such user
info@domain1.com info
@domain1.com ERROR:nouser No such user
/etc/mail/genericstable
user1
user1@domain2.com
user2
user2@domain2.com
info
info@domain1.com
my mc file
*************
include(`../m4/cf.m4')
VERSIONID(`linux for smtp-only setup')dnl
OSTYPE(linux)
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')dnl
FEATURE(`genericstable',`hash -o /etc/mail/genericstable')dnl
GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable')dnl
FEATURE(use_cw_file)dnl
FEATURE(relay_entire_domain)dnl
FEATURE(always_add_domain)dnl
FEATURE(`access_db', `hash -T<TMPF> /etc/mail/access')
FEATURE(relay_mail_from)dnl
MAILER(local)dnl
MAILER(smtp)dnl