sendmail and discarding incoming FROM address's

http://www.faqs.org/docs/securing/chap22sec178.html
im referring to this online info where i want to block incoming FROM: address's
i currently block incoming TO: address's already

like ....

jack@aol.com DISCARD
john@tootles.com DISCARD


but how does sendmail know whether its a from or to address ?
i just today wanted to add the from address from an address.

currently the access table discards all to address's above so it must be working

Question is how does it know if i add a new address to refer to it as a FROM address ?
LVL 1
aot2002Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

wesly_chenCommented:
Hi,

> how does sendmail know whether its a from or to address
All the emails have "From: xxx@xxx.xxx" and "TO: yyy@yyy.yyy" fields, that's how sendmail to distingush where the email from
and whare it should send to.

   However, according to http://www.faqs.org/docs/securing/chap22sec178.html,
/etc/mail/access is for "From" not for "TO".

   So whatever email addresses you "DISCARD" in /etc/mail/access", your users will not receive "from" those email addresses.
It's sort of spam control.

Regards,

Wesly
0
aot2002Author Commented:
>>>>/etc/mail/access is for "From" not for "TO".

ok but why would it be currently blocking to address's ?
hmm doesnt make any sense ?

can i block from address's or no ?




> how does sendmail know whether its a from or to address
>>All the emails have "From: xxx@xxx.xxx" and "TO: yyy@yyy.yyy" fields, that's how sendmail to distingush where the email >>from and whare it should send to.

No no i mean how does sendmail know it in the access.db file not the email ...

0
wesly_chenCommented:
> can i block from address's or no
Yes.

> how does sendmail know it in the access.db file not the email
access.db is for "from". So sendmail check every email's "FROM:" and match with access.db
Please see the following URL:
http://www.sendmail.org/~ca/email/doc8.12/cf/m4/features.html
----
The access db gives you the ability to allow or refuse to accept mail FROM specified domains for administrative reasons. Moreover, it can control the behavior of sendmail in various situations.
-----

> but why would it be currently blocking to address's ?
I'm not sure.
You can put your yahoo or hotmail address in access and send an email to your company address to test.

Wesly
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.