Sending received faxes thru an external email

rfioravelastix

Joined
Nov 27, 2007
Messages
6
Likes
0
Points
0
#1
Hi everybody,

I
 

ramoncio

Joined
May 12, 2010
Messages
1,663
Likes
0
Points
0
#2
Code:
#!/bin/bash
relayhost=mail.myprovider.com
username=myuser.myprovider.com
password=mypassword
echo "$relayhost   $username:$password" >> /etc/postfix/sasl_passwd
chown root:root /etc/postfix/sasl_passwd
chmod 600 /etc/postfix/sasl_passwd
postmap /etc/postfix/sasl_passwd
echo "relayhost = $relayhost" >> /etc/postfix/main.cf 
echo "smtp_sasl_auth_enable = yes" >> /etc/postfix/main.cf 
echo "smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd" >> /etc/postfix/main.cf 
service postfix restart
 

rfioravelastix

Joined
Nov 27, 2007
Messages
6
Likes
0
Points
0
#3
Hi Ramoncio,

I'm very impressed by your skills.
Is this change able to relay the the voice messages also in the same way?

Thank you very much
Reinaldo
 

ramoncio

Joined
May 12, 2010
Messages
1,663
Likes
0
Points
0
#4
Elastix uses postfix as MTA.
You can configure postfix to send the emails by itself or to use a relay server.
Usually, if you have a dynamic ip you will need a relay server because otherwise many smtp servers won't accept your emails (you might be a spammer).
What the script does is configure postfix main.cf config file to use mail.myprovider.com as relay server.
All your outgoing messages will be delivered by mail.myprovider.com.
Obviously, you have to change

relayhost=mail.myprovider.com
username=myuser.myprovider.com
password=mypassword

before running the script to suit your server's details.
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,915
Messages
130,920
Members
17,595
Latest member
feparra121
Top