Cerca
Recherche dans ce site
 
Statistiche
Visites: 23400

Utilizzare Gmail come SMTP per asterisk

Argument: linuxTags: SMTP, GMAIL, ASTERISK



cd /etc/mail
hostname -f > genericsdomain
touch genericstable
makemap -r hash genericstable.db < genericstable
mv sendmail.mc sendmail.mc.original
wget http://pbxinaflash.net/source/sendmail/sendmail.mc.gmail
cp sendmail.mc.gmail sendmail.mc
mkdir -p auth
chmod 700 auth
cd auth
echo AuthInfo:smtp.gmail.com ”U:smmsp” ”I:user_id” ”P:password” ”M:PLAIN” > client-info
echo AuthInfo:smtp.gmail.com:587 ”U:smmsp” ”I:user_id” ”P:password” ”M:PLAIN” >> client-info

# Stop here and edit client-info (nano -w client-info) in both lines.
# Replace user_id with your gMail account name without @gmail.com
# Replace password with your real gMail password
# Be sure to replace the double-quotes shown above if they don’t appear in the file!!!
# Save your changes (Ctrl-X, Y, then Enter)
chmod 600 client-info
makemap -r hash client-info.db < client-info
cd ..

make
service sendmail restart

Rammentate che se cambiate i valori in /etc/aliases dovrete ricompilare il db utilizzando la stringa /usr/lib/sendmail -bi


Publié par riccardocapra, Lundi 28 Octobre 2013 - 11:06 (Lu  19297 fois)
Comment Commentaires? Print Imprimer

Commentaires

Comment Ajoutez un commentaire


Aucun article précédent | Article suivant »

Derniers articles sur cet argument

News Utilizzare Gmail come SMTP per asterisk (28/10/2013 - 11:06, Lu 19298 fois)

Tous les articles sur cet argument
linux.png
 
Calendario
Date: 22/02/2026
Heure: 16:50
« Février 2026 » 
Lu Ma Me Je Ve Sa Di
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28
 
Login





Langage du site:
deutsch english español français italiano português
 
Utenti
People on-line:     
admins 0 administrators
users 0 users
guests 1 guests
 
Sondaggio
Pas de sondages actifs maintenant:
ancien sondages
Freely inspired to Mollio template