Servizi
 
Cerca
Ricerca parole o frasi all’interno del sito.
 
Statistiche
Visite: 23398

Utilizzare Gmail come SMTP per asterisk

Argomento: 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


Scritto da riccardocapra, Lunedi 28 Ottobre 2013 - 11:06 (letto  19295 volte)
Comment Commenti? Print Stampa

Commenti

Comment Aggiungi commento


Nessuna notizia più vecchia | Notizia successiva »

Le ultime notizie relative a questo argomento

News Utilizzare Gmail come SMTP per asterisk (28/10/2013 - 11:06, letto 19296 volte)

Tutte le notizie relative a questo argomento
linux.png
 
Calendario
Data: 22/02/2026
Ora: 16:49
« Febbraio 2026 » 
Lu Ma Me Gi Ve Sa Do
            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





Lingua del sito:
deutsch english español français italiano português
 
Utenti
Persone on-line:
admins 0 amministratori
users 0 utenti
guests 1 ospiti
 
Sondaggio
Nessun sondaggio attivo in questo momento:
vecchi sondaggi
Freely inspired to Mollio template