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 |