View Single Post

  #2 (permalink)  
Old 10-25-2006, 11:48 PM
nixcraft's Avatar
nixcraft nixcraft is offline
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,103
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Quote:
1.)
I have a query about Sendmail that why we need DNS for Sendmail, whereas it can also run with default configuration with No DNS
No you can't use sendmail or any other modern MTA without DNS. You need DNS to find out mail server name for each domain. For example following query shows the mail serer for this site (cyberciti.biz)
Code:
host -t mx cyberciti.biz
cyberciti.biz mail is handled by 10 mail.cyberciti.biz.

Code:
host -t mx nixcraft.com
nixcraft.com mail is handled by 10 ASPMX.L.GOOGLE.com.

So when someone sends an email to me@nixcraft.com or me@cyberciti.biz it is handled by ASPMX.L.GOOGLE.com. or mail.cyberciti.biz mail server respectively. DNS is used to provide this information.

Quote:
2.)Is sendmail can be configured as Mail Router as well as Mail Server for Local Users. If Yes. Pl. give me logic behind it, that how it will deferentiate between internet mail account (Global account and Local Users mail account.
Is sendmail can be configured as Mail Router as well as Mail Server for Local Users. If Yes. Pl. give me logic behind it, that how it will deferentiate between internet mail account (Global account and Local Users mail account.
If you local UNIX/Linux username it will be send to local mail account for example
Code:
mail -s "test" vivek < /dev/null
But if you use @domain it will be queried using DNS and mail is send to actual mail server:
Code:
mail -s "test" vivek@nixcraft.in < /dev/null
Quote:
Can we see the log report of Internet Uses Using Squid Proxy.
Can we see the log report of Internet Uses Using Squid Proxy.
Yes use /var/log/squid/access.log and /var/log/squid/cache.log files.
Code:
tail -f /var/log/squid/access.log
tail -f /var/log/squid/cache.log
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote