Sendmail Debugging
sendmail -qf -v (process what is in the queue)
Setting up Gmail as your smart host
mkdir -p /etc/mail/authchmod 700 /etc/mail/auth
Change the user_id and password in the following example:
cat >> /etc/mail/auth/client-info <<EOF
AuthInfo:smtp.gmail.com “U:smmsp” “I:user_id” “P:password” “M:PLAIN”
AuthInfo:smtp.gmail.com:587 “U:smmsp” “I:user_id” “P:password” “M:PLAIN”
EOF
Add the following to the end of the /etc/mail/sendmail.mc file:
cat >> /etc/mail/sendmail.mc <<EOF GENERICS_DOMAIN_FILE(`/etc/mail/genericsdomain')dnl EOF
Correct the sender’s email address to match the correct domain
cat >> /etc/mail/genericsdomain <<EOF
cookie!cookie!asterisk ncherry@linuxha.com
EOF
cd /etc/mail
makemap -r hash genericstable.db < genericstable
cd /etc/mail
make
service sendmail restart
test