> -----Original Message-----
> From: John Van Ostrand
> Sent: Saturday, January 07, 2006 10:37 AM
> To: David Fishburn
> Subject: Re: [on-asterisk] RE: setting up asterisk to use an 
> SMTP server
> 
> On Fri, 2006-01-06 at 23:04 -0500, David Fishburn wrote: 
> 
>       
>       This is the exact issue I am dealing with at the moment.
>       I am a novice *nix user.
>       Rogers blocks port 25, can anyone post the changes you 
> would make to this
>       file (and the actual filename) to get me started.  I 
> have tried googling
>       around for a bit, there is a lot of information out there.
>       
>       TIA,
>       Dave
>       
> 
> 
> You need a combination of smart hosting and smtp 
> authentication. The trick to this is to use Roger's email 
> server and send email through them.
> 
> To do this you require:
> 
>    * Sendmail
>    * Sendmail-cf (usually a separate RPM for FC, Red Hat, CentOS, etc)
>    * The name or IP address of the Rogers (Yahoo?) email server
>    * A login and password to the mail server (referred to as 
> mylogin and mypass in the examples.
> 
> Rogers support can help you with the latter two.
> 
> Now, edit the /etc/mail/sendmail.mc file and add these lines 
> ABOVE the MAILER lines at the bottom, set the SMART_HOST to 
> your mail server:
> 
> define(`SMART_HOST',`[ssmtp.bloor.is.net.cable.rogers.com]')dnl
> TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
> define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 
> CRAM-MD5 LOGIN PLAIN')dnl
> FEATURE(`authinfo', `hash -o /etc/mail/authinfo')dnl
> 
> Then create the /etc/mail/authinfo file and add a line LIKE this:
> 
> AuthInfo:   "U:[EMAIL PROTECTED]" "I:[EMAIL PROTECTED]" 
> "P:mypass" "M:PLAIN"
> 
> Now edit the /etc/mail/Makefile. Locate the line that begins 
> with "all:" and add the file authinfo.db to the end 
> (separated by a space of course.)
> 
> Now run make "make -C /etc/mail" and restart sendmail 
> (chkconfig sendmail on; service sendmail start)
> 
> If you also have postfix installed on the system you will 
> need to use the "alternatives" command to make sure that 
> sendmail is the default mailer. I don't use this enough to 
> direct you exactly on this.


John, thank you very much.

These were the exact detailed instructions I needed to get this going.

For other people that may try this, once you have this configured, you can
try sending a test message directly from a terminal window:

        su - asterisk
        mail -v -s test2 [EMAIL PROTECTED]<enter>
        test2<enter>
        .<C-D>
        <enter>
        <enter>

Saves the trouble of creating a message in Asterisk.

Dave

Reply via email to