<HTML dir=ltr><HEAD><TITLE>Re: [GLLUG] Sendmail configuration</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16608" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText90027 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Mike's right about having proper looking headers. I'd add to that - if you only intend to *send* e-mails to real people and real mail servers on the Internet, you'll probably get by with using your ISP's smart host. </FONT></DIV>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>However, if you want to receive them as well, you'll probably also want to get a proper DNS name such as mail.deepan.com, and make sure that you also have *reverse* DNS records so that if some does a DNS lookup on your IP address, it will come up with mail.deepan.com as well. If you don't do that, a lot of mail servers on the Internet will reject your mail outright. In addition to DNS you'll want to change your servers hostname to mail.deepan.com, and also edit your mail config with that information as well. If you are going to receive mail on that host, make sure you check your mail relaying configuration so that not "just anybody" can send mail through you, or you'll get blacklisted in a week or so.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>Even then you won't get everyone. Some ISP's appear to block any mail that clearly comes from a DSL or Cable modem IP range (hence another reason to use your ISP's smart host) </FONT><FONT face=Arial size=2>I run a full time mail server from my ACD DSL account (lachniet.com) and its a real pain some times. For example, SBC Ameritech apparently outright blocks my whole IP range randomly, which has forced my mom to get a gmail account. Tis annoying</FONT></DIV>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2></FONT> </DIV></DIV>
<DIV id=idSignature98332 dir=ltr>
<DIV><FONT face=Arial color=#000000 size=2><FONT face="Times New Roman">
<DIV><FONT size=2>Mark Lachniet<BR>Solutions Architect - Security<BR>Analysts International</FONT></DIV>
<DIV><FONT size=2>3101 Technology Blvd. Suite A<BR>Lansing, MI 48910<BR>(517) 336-1004 (voice)<BR><A href="mailto:mlachniet@analysts.com">mailto:mlachniet@analysts.com</A><BR> </FONT> </DIV></FONT></FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> linux-user-bounces@egr.msu.edu on behalf of Mike Rambo<BR><B>Sent:</B> Thu 3/20/2008 7:16 AM<BR><B>To:</B> Deepan<BR><B>Cc:</B> linux-user@egr.msu.edu<BR><B>Subject:</B> Re: [GLLUG] Sendmail configuration<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Deepan wrote:<BR>> Hi All,<BR>> I am using sendmail via php mail function to send<BR>> emails. However few servers reject my mails with<BR>> the error 'Sender address rejected: Domain not<BR>> found', since mails from my server are sent as<BR>> email@localhost.localdomain. How do I change this<BR>> to a valid domain name ? We only own a public IP.<BR>> we dont really have a domain name, is it possible<BR>> to use IP ?<BR>> Regards<BR>> Deepan<BR><BR>You need to set up sendmail to masquerade as a real domain, like that of<BR>your ISP for example, use your ISP as a smart host to send the mail, and<BR>set up the genericstable feature of sendmail so it will modifiy the mail<BR>headers to make mail sent by apache (or whatever user your php scripts<BR>will appear to run as and thus mail as) to be rewritten to a valid user<BR>from your ISPs perspective. Or at least, those three steps are what I<BR>have done when I need to do such things. I've got about five or six<BR>servers set up to do basically what you're describing and It Works For<BR>Me. That said, I've not spent a great deal of time to see if there is an<BR>easier way and I certainly don't claim to comprehend all of sendmail. YMMV.<BR>_______________________________________________<BR>linux-user mailing list<BR>linux-user@egr.msu.edu<BR><A href="http://mailman.egr.msu.edu/mailman/listinfo/linux-user">http://mailman.egr.msu.edu/mailman/listinfo/linux-user</A><BR></FONT></P></DIV></BODY></HTML>