Johannes van Hulst
2004-Jul-16 09:46 UTC
[Asterisk-Users] sendmail.cf and relaymail to a smtp server
Hello, Who can help me I am trying to setup the sendmail so that I can mail the voicemail's to an internet SMTP mail server. I know that I have to setup the sendmail.cf and configured a relay to my normal SMTP server. I am running RedHat 9 and my internet provider has a SMTP mail server with user and password authentication. Regards, Han -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040716/3376dcf9/attachment.htm
David Cook
2004-Jul-16 10:50 UTC
[Asterisk-Users] Re: sendmail.cf and relaymail to a smtp server
I am presuming your Asterisk box is behind your ISP. You don't actually need user/pw to send somebody email in the outside world, but your ISP has prevented you from _directly_ sending email to anybody and make you go through their SMTP server which forces you to authenticate with it like a Mail User Agent rather than a Mail Transport Agent. You don't need relaying, you need to define your ISP as a "Smart Host" for SMTP and then you need to invoke authentication. Try this link for the auth stuff: http://www.sendmail.org/~ca/email/auth.html Then in your sendmail.cf file you need to specify your ISP as a smart host by looking for the "DS" line and adding your isp with no spaces like this: DSmyisp.com It is probably too much to delve into at this point, but after you get this working, go check out managing sendmail with the m4 preprocessor. It will allow you to automatically generate sendmail.cf files from a (more) comprehensible file than the .cf. It will make a world of difference once you start chaning more than just one value like we are doing here. dbc.>Hello, > >Who can help me I am trying to setup the sendmail so that I can mail the >voicemail's to an internet SMTP mail server. > >I know that I have to setup the sendmail.cf and configured a relay to my >normal SMTP server. > >I am running RedHat 9 and my internet provider has a SMTP mail server with >user and password authentication. > >Regards, > >Han