voice mail to email

Discussion in 'General' started by torboy, Jul 14, 2009.

  1. torboy

    Joined:
    Apr 30, 2009
    Messages:
    37
    Likes Received:
    0
    I want to send my voice mail and faxes to my email address. I want to send these email via my gmail account. I have my own domain say abc.net
    my domain email are handled with gmail.com and I have a pbx@abc.net account and I can send and receive email with my outlook express with smtp.gmail.com and pop.gmail.com

    here is what i did



    in /etc/postfix/main.cf

    mydomain = abc.net
    myhostname = elastix.abc.net
    smtp_sasl_auth_enablee = yes
    smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
    smtp_sasl_security_options =

    relayhost = smtp.gmail.com

    then I made sasl_passwd and add this information
    smtp.gmail.com:465 pbx@abc.net:wordpass

    then I run postmap /etc/postfix/sasl_passwd

    my emails are not going
    here is what i get in /var/log/maillog

    Code:
    Jul 13 17:47:43 elastix postfix/qmgr[2403]: F3F6D12111D: from=<asterisk@abc.net>, size=19212, nrcpt=1 (queue active)
    Jul 13 17:47:43 elastix postfix/qmgr[2403]: 0700112110B: from=<asterisk@abc.net>, size=20524, nrcpt=1 (queue active)
    Jul 13 17:52:43 elastix postfix/smtp[3940]: 0700112110B: conversation with smtp.gmail.com[74.125.79.109] timed out while receiving the initial server greeting
    Jul 13 17:52:43 elastix postfix/smtp[3939]: F3F6D12111D: to=<bahram@abc.net>, relay=smtp.gmail.com[216.239.59.109]:465, delay=2489, delays=2189/0.02/300/0, dsn=4.4.2, status=deferred (conversation with smtp.gmail.com[216.239.59.109] timed out while receiving the initial server greeting)
    Jul 13 17:57:43 elastix postfix/smtp[3940]: 0700112110B: to=<bahram@abc.net>, relay=smtp.gmail.com[74.125.79.111]:465, delay=64654, delays=64054/0.02/600/0, dsn=4.4.2, status=deferred (conversation with smtp.gmail.com[74.125.79.111] timed out while receiving the initial server greeting)
    Jul 13 18:04:23 elastix postfix/qmgr[2403]: 45A1812111C: from=<asterisk@abc.net>, size=15513, nrcpt=1 (queue active)
    Jul 13 18:09:23 elastix postfix/smtp[3969]: 45A1812111C: conversation with smtp.gmail.com[74.125.79.111] timed out while receiving the initial server greeting
    
    as you can I think the trouble is email are not going from pbx@abc.net but from asterisk@abc.net
     
  2. gamba47

    Joined:
    May 28, 2009
    Messages:
    595
    Likes Received:
    0
    I make and script for this.

    If you want you can try:

    Code:
    cd /root
    wget www.santafaz.com.ar/gamba47/gmail_english.sh
    chmod +x gmail_english.sh
    sh gmail_english.sh
    
    This script with ask you about your account settings (username & password)

    Post the results if you use this!

    Regards. gamba47
     
  3. torboy

    Joined:
    Apr 30, 2009
    Messages:
    37
    Likes Received:
    0
    Here is the output

    Code:
    [root@elastix ~]# cd /root
    [root@elastix ~]# wget www.santafaz.com.ar/gamba47/gmail_english.sh
    --11:48:41--  http://www.santafaz.com.ar/gamba47/gmail_english.sh
    Resolving www.santafaz.com.ar... 200.58.117.225
    Connecting to www.santafaz.com.ar|200.58.117.225|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 3553 (3.5K) [application/x-sh]
    Saving to: `gmail_english.sh.1'
    
    100%[=======================================>] 3,553       19.0K/s   in 0.2s
    
    11:48:42 (19.0 KB/s) - `gmail_english.sh.1' saved [3553/3553]
    
    [root@elastix ~]# chmod +x gmail_english.sh
    [root@elastix ~]# sh gmail_english.sh
    which: no dialog in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
    gmail_english.sh: line 13: wl: command not found
    gmail_english.sh: line 15: [: -eq: unary operator expected
    gmail_english.sh: line 75: dialog: command not found
    mkdir: cannot create directory `/etc/postfix/certs': File exists
    Generating DSA parameters, 1024 bit long prime
    This could take some time
    ....+++++++++++++++++++++++++++++++++++++++++++++++++++*
    ...+......+............+......................+...+....+.+...................+.....+......................+...+........+.+.....+.+......................+........+.......+..+.......+........+...+........+.+...+......+..........+.....+.+.....+..+.......+..................+...+...+............+.......+...+..+.....+......+...+......+.......+......+.............+.....+........+......+.................+......................................+..............+.+............+..........+......+....+.+...+...+.....+...............+..+..+...............+...................+.......+........+++++++++++++++++++++++++++++++++++++++++++++++++++*
    Generating a 1024 bit DSA private key
    writing new private key to 'mykey.pem'
    -----
    You are about to be asked to enter information that will be incorporated
    into your certificate request.
    What you are about to enter is what is called a Distinguished Name or a DN.
    There are quite a few fields but you can leave some blank
    For some fields there will be a default value,
    If you enter '.', the field will be left blank.
    -----
    Country Name (2 letter code) [GB]:CA
    State or Province Name (full name) [Berkshire]:
    Locality Name (eg, city) [Newbury]:
    Organization Name (eg, company) [My Company Ltd]:PBX ABC
    Organizational Unit Name (eg, section) []:
    Common Name (eg, your name or your server's hostname) []:
    Email Address []:pbx@abc.net
    You are about to be asked to enter information that will be incorporated
    into your certificate request.
    What you are about to enter is what is called a Distinguished Name or a DN.
    There are quite a few fields but you can leave some blank
    For some fields there will be a default value,
    If you enter '.', the field will be left blank.
    -----
    Country Name (2 letter code) [GB]:CA
    State or Province Name (full name) [Berkshire]:
    Locality Name (eg, city) [Newbury]:
    Organization Name (eg, company) [My Company Ltd]:PBX ABC
    Organizational Unit Name (eg, section) []:
    Common Name (eg, your name or your server's hostname) []:
    Email Address []:pbx@ABC.net
    gmail_english.sh: line 84: /etc/inid.d/postfix: No such file or directory
    gmail_english.sh: line 86: dialog: command not found
     
  4. rafael

    Joined:
    May 14, 2007
    Messages:
    1,454
    Likes Received:
    1
    Hi guys, great work :D

    I moved it to tip & tricks sections ;)

    Regards,

    Rafael
     
  5. gamba47

    Joined:
    May 28, 2009
    Messages:
    595
    Likes Received:
    0
    torboy, sorry for this!!

    Please, donwnload again and please install dialog before run the script

    Code:
    yum install dialog -y
    regards. gamba47
     
  6. Megabyte

    Joined:
    Mar 28, 2009
    Messages:
    327
    Likes Received:
    0
    Gamba thx for that script work very nice i will increase your karma nice job.
     
  7. massquote

    Joined:
    May 18, 2010
    Messages:
    3
    Likes Received:
    0
    I've been looking for a solution like this and for a noob like me this one works marvelously. I will just compile what gamba47 instructed. Thanks a lot...


    Code:
    wget www.santafaz.com.ar/gamba47/gmail_english.sh
    yum install dialog -y
    chmod +x gmail_english.sh
    sh gmail_english.sh

     

Share This Page