RaghuNath L rearranged electrons thusly:
> Is it possible to use sendmail through smtp for local delivary.
Yes.
> in my setup i have configured mail.mydomain.com as smart host and mx
> record points to the same .
Smarthost is for *outgoing* mail. An MX record (Mail eXchanger) is to
determine where incoming mail bound for your domain must be delivered.
Your outgoing and incoming mailservers need not be the same, just FYI
> When use /bin/mail the mail gets deliverd but when i use telnet to port
> 25 and try to send mail it goes to diffrent host but not the local host
> i get an error saying local configuration error mx record loops back to
> me.
Take a look at http://www.sendmail.org/faq/ and see the topmost FAQ "Local
Config Error". That's your problem. To fix it, add your domain name to
/etc/sendmail.cw (till sendmail 8.9.3) or /etc/mail/local-host-names (in
sendmail 8.10 and upwards)
> please give me some pointer for simple mc file without uucp and dns
> looup.
If you are running redhat, there's a good /etc/sendmail.mc (or
/etc/mail/sendmail.mc) included. You'd have to install the sendmail-cf
package. For a machine connected through a dialup / behind a LAN firewall,
take a look at http://www.hserus.net/sendmail.html
I dont understand why you'd need UUCP for this. The mail looping is trivial to
fix.
-s
----------------------------------------------
LIH is all for free speech. But it was created
for a purpose. Violations of the rules of
this list will result in stern action.