Link to home
Start Free TrialLog in
Avatar of ITMiami
ITMiami

asked on

Lock down Sendmail

I have a linux server running SENDMAIL 8.13.3, config V10/Berkeley
 I tested it for an open relay and it came back negative, I need to know how to setup the server to just accept emails to domains that are listed under Local Domains (CW)

So basically any email that arrives at the server and it's not for one of the domains at (CW) gets rejected or discarted. But I have some domains that forward mail out so I need to allow the server to send mail from the local domains to outside servers ex  user@domain1.com has a virtuser rule to forward emails to user1@hotmail.com

Does anyone know how to do that?

Thanks

Here is a sample of the message (note the TO field is blank)
From BecomeHealthier@mail.domain1.com
To  
Date Thu, 1 Feb 2007 19:57:49 -0500
Subject The best appetite suppressant available without a prescription
Avatar of PsiCop
PsiCop
Flag of United States of America image

Whoops! I thot I was looking at a different TA. Ignore my last Comment.
you have a file called /etc/mail/relaydomains

you can specify a list of domains

.domain.com             RELAY
.domain2.com           RELAY

this would make the server relay only for these specific domains
Avatar of ITMiami
ITMiami

ASKER

It's working now it's relaying the domains I need, without adding to /etc/mail/relaydomains, I need to find out how to block any email that is not going to a local domain... Somehow that's is happening on my server...

I have over 20 emails like this on queue now

---------------------------------------------------------------------------------------------------
From BecomeHealthier@mail.domain1.com
To  
Date Thu, 2 Feb 2007 02:27:49 -0500
Subject The best appetite suppressant available without a prescription

---------------------------------------------------------------------------------------------------
ASKER CERTIFIED SOLUTION
Avatar of PsiCop
PsiCop
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial