Or maybe you can show him some links ;)<br>Try this for send mail:<br><a href="http://docs.snake.de/smtp-auth.html">http://docs.snake.de/smtp-auth.html</a><br><br>this is very common these days and to make it more fun each mailserver (provider) has their own criteria to decide if your email is spam or not.<br>
to give you and example:<br>make sure you are using static public IP address for outgoing mails, have a PTR record for that IP and also A record for the fqn that those mails are coming from.<br>For smtp auth you need to have saslauth in place and most recent sendmails are compile with saslauth these days.<br>
I did not have 100% success with smtp and sasl and i believe that was caused due to have different TLS versions.<br>anyway that link should put you in the right direction and if anyone else has a better/easier mta that handles smarthost and auth flawlessly, please comment.<br>
<br><br><div class="gmail_quote">On Sun, Mar 16, 2008 at 3:48 PM, linuxian iandsd <<a href="mailto:pylinuxian@gmail.com">pylinuxian@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
well, maybe ou're on the wrong list (talkin sendmail in an asterisk list !!!) you're better in sendmail's list.<br><br>anyway, you need to modify <a href="http://sendmail.cf" target="_blank">sendmail.cf</a> file, just a few tweaks & it will be ok. you will need a smarthost, what is a smarthost ? thats an smtp server that is allowed to send mail to the world, without it you can't send mail, & this smarthost will be your isp's smtp server & noone else's unless you know a lot of ppl around. otherwise your mails will get nowhere.<br>
<br>if you need an <a href="http://sendmail.cf" target="_blank">sendmail.cf</a> file example i can paste it for you here.<br>also dovecot.conf will be valuable for you.<br><br><br>hope this helps.<div><div></div><div class="Wj3C7c">
<br><br><div class="gmail_quote">On Fri, Mar 14, 2008 at 1:52 PM, Felipe Trevisan <<a href="mailto:asteriskbr99@gmail.com" target="_blank">asteriskbr99@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">How would you relay on Google Apps, as Google requires SSL or TLS authentication?<br><br>How can I configure sendmail to do this?<br>
<br><br>Actually, sendmail is trying to send email directly, and I get the response below. I´ll now try Mike Hammett´s solution.<br>
<br>Thanks,<br><br>Felipe Trevisan<br><br><br><br><table border="1" width="100%"><tbody><tr bgcolor="#4ebf37"><td><table cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td><b>Message contents</b></td>
<td align="right"><br></td> </tr></tbody></table></td> </tr>
<tr bgcolor="#efefef"> <td>
<pre>The original message was received at Thu, 13 Mar 2008 23:49:31 -0300<br>from trixbox1.localdomain [<a href="http://127.0.0.1" target="_blank">127.0.0.1</a>]<br><br> ----- The following addresses had permanent fatal errors -----<br>
<<a href="mailto:fetrevisan@gmail.com" target="_blank">fetrevisan@gmail.com</a>><br> (reason: 550-5.7.1 [<a href="http://201.6.192.115" target="_blank">201.6.192.115</a>] The IP you're using to send email is not authorized<br>
)<br><br> ----- Transcript of session follows -----<br>
... while talking to <a href="http://gmail-smtp-in.l.google.com" target="_blank">gmail-smtp-in.l.google.com</a>.:<br>>>> DATA<br><<< 550-5.7.1 [<a href="http://201.6.192.115" target="_blank">201.6.192.115</a>] The IP you're using to send email is not authorized<br>
<<< 550-5.7.1 to send email directly to our servers. Please use <br><<< 550 5.7.1 the SMTP relay at your service provider instead. a44si4966479rne.2<br>554 5.0.0 Service unavailable<br></pre></td></tr></tbody></table>
<table border="1" width="100%"><tbody><tr> <td bgcolor="#4ebf37"><b>Failed delivery status</b></td> </tr>
<tr> <td bgcolor="#efefef"><table>
<tbody><tr> <td nowrap valign="top"><b>Final recipient</b></td>
<td> <a href="mailto:fetrevisan@gmail.com" target="_blank">fetrevisan@gmail.com</a></td> </tr>
<tr> <td nowrap valign="top"><b>Reason for failure</b></td>
<td> 550-5.7.1 [<a href="http://201.6.192.115" target="_blank">201.6.192.115</a>] The IP you're using to send email is not authorized </td> </tr>
<tr> <td nowrap valign="top"><b>Remote mail server</b></td>
<td> <a href="http://gmail-smtp-in.l.google.com" target="_blank">gmail-smtp-in.l.google.com</a></td> </tr>
<tr> <td nowrap valign="top"><b>Reporting mail server</b></td>
<td> trixbox1.localdomain</td></tr></tbody></table></td></tr></tbody></table><div><div></div><div><br><br><br><div class="gmail_quote">On Thu, Mar 13, 2008 at 7:13 PM, Mike Hammett <<a href="mailto:asterisk-users@ics-il.net" target="_blank">asterisk-users@ics-il.net</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff">
<div>
<div>Through help from people on the lists and then further investigation based
on those results, here is what I did.</div>
<div> </div>
<div>1) I set the office to a statically assigned IP instead of from the
pool.</div>
<div>2) I made an A entry on one of my domains <a href="http://aiur.ics-il.net" target="_blank">aiur.ics-il.net</a> (where aiur
is the machine name).</div>
<div>3) I added <a href="http://aiur.ics-il.net" target="_blank">aiur.ics-il.net</a> directly after <a href="http://127.0.0.1" target="_blank">127.0.0.1</a> in the /etc/hosts
file (copied below).</div>
<div>4) I set the from email address (serveremail) in
/etc/asterisk/voicemail.conf to something at the domain I created (<a>voicemail@aiur.ics-il.net</a>).</div>
<div>5) Presto!</div>
<div> </div>
<div>[root@Aiur ~]# cat /etc/hosts<br># Do not remove the following line, or
various programs<br># that require network functionality will
fail.<br><a href="http://127.0.0.1" target="_blank">127.0.0.1</a> <a href="http://aiur.ics-il.net" target="_blank">aiur.ics-il.net</a>
Aiur localhost.localdomain
localhost<br>::1 localhost6.localdomain6
localhost6</div></div><div>
<div> </div>
<div> </div>
<div>----------<br>Mike Hammett<br>Intelligent Computing Solutions<br><a href="http://www.ics-il.com" target="_blank">http://www.ics-il.com</a></div>
<div> </div>
<div> </div>
</div><blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;"><div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">----- Original Message ----- </div>
<div style="background: rgb(228, 228, 228) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>From:</b>
<a title="asterisk-users@ics-il.net" href="mailto:asterisk-users@ics-il.net" target="_blank">Mike Hammett</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b> <a title="asterisk-users@lists.digium.com" href="mailto:asterisk-users@lists.digium.com" target="_blank">Asterisk Users Mailing List -
Non-Commercial Discussion</a> </div>
</div><div><div></div><div><div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>Sent:</b> Thursday, March 13, 2008 4:04
PM</div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b> [asterisk-users] Mail
Server</div>
<div><br></div>
<div><font face="Arial" size="2">I need to setup a small mail server on a local
network. It only needs SMTP ability as it's just so Asterisk can send
out emails. The machine has sendmail installed. My primary mail
server seems to be rejecting the messages. Some research says something
isn't configured properly. What do I have to do so the outside world
accepts emails from my Asterisk box? It is behind a NAT.</font></div>
<div><font face="Arial" size="2"></font> </div>
<div> </div>
<div><font face="Arial" size="2">----------<br>Mike Hammett<br>Intelligent
Computing Solutions<br><a href="http://www.ics-il.com" target="_blank">http://www.ics-il.com</a></font></div>
<div> </div>
<div><font face="Arial" size="2"></font> </div>
</div></div><p>
</p><hr><div>
<p></p>_______________________________________________<br>-- Bandwidth and
Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br><br>asterisk-users
mailing list<br>To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></div></blockquote></div>
<br>_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>
</div></div><br>_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>
</div></div><br>_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>