Home N-13 News Forums Help Search
RegisterForgot password?
Login with facebook , twitter and google account aningbo
I have the following error at the top of the page how to fix it Rayc

Latest N-13 News 4.0.2

What is N-13 News?
Where can I get help?

Forums Tutorials Sendmail smtp relay gmail google apps
Chris
Posted on 23 Jan 2010, 11:00:32

Access: Admin
Total Posts: 1349
Joined: 2006-05-19

I spent the better part of 2 days trying to configure sendmail to use gmail/google apps as the external smtp server and have it authenticate properly.

In the end to get it working I uninstalled sendmail, completely deleted the /etc/mail directory then reinstalled sendmail

yum install sendmail sendmail-cf

I then followed these instructions

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
# If the above file is no longer available I've uploaded a mirror here
# wget http://network-13.com/sendmail.mc.gmail
cp sendmail.mc.gmail sendmail.mc
mkdir -p auth
chmod 700 auth
cd auth
nano client-info
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"
# Replace  user_id with your gmail username without @gmail.com
# If you're using google apps then enter your full email address user@yourdomain.com
# Replace password with your own gmail/google apps password
# 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

After you've restarted the sendmail service you can test it using the following command

echo "Test" | mail user@domain.com

Changing user@domain.com to the address you want to send the test email to. If it works you should receive an email with a blank subject and the word "Test" as the message body.

#1718
Last edited by Chris at 2011-12-30 23:03:06 Reason: .
Network-13.com © 2011