Cerca
Auf dieser Website suchen.
 
Statistiche
Visits: 23397

Utilizzare Gmail come SMTP per asterisk

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


Posted by riccardocapra, Montag 28 Oktober 2013 - 11:06 (gelesen  19293 Male)
Comment Kommentare? Print Drucken

Kommentare

Comment Kommentar hinzufügen


Keine vorherigen Artikel | Nächste Artikel »

Neueste Einträge in dieser Kategorie

News Utilizzare Gmail come SMTP per asterisk (28/10/2013 - 11:06, gelesen 19294 Male)

Alle Einträge in dieser Kategorie
linux.png
 
Calendario
Datum: 22/02/2026
Zeit: 16:49
« Februar 2026 » 
Mo Di Mi Do Fr Sa So
            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





Seite Sprache:
deutsch english español français italiano português
 
Utenti
Personen on-line:  
admins 0 Administratoren
users 0 Angemeldete
guests 1 Gäste
 
Sondaggio
Momentan keine aktive Umfrage vorhanden:
Alte Umfragen
Freely inspired to Mollio template