Archive for May 20th, 2006

May 20 2006

Switching sendmail from Comcast to Verizon on Redhat 9

Published by Forager under science technology, web

I promised myself that if I figured this one out I will put it in blog. Took me longer than necessary: somehow Comcast did not ask for user/password authentication but verizon did–plain text unencrypted!

Configure sendmail in general:
Add to /etc/mail/sendmail.mc
————————————————-
MASQUERADE_AS(`YOURDOMAIN.COM’)dnl
FEATURE(`allmasquerade’)dnl
FEATURE(`masquerade_envelope’)dnl
————-change
define(`SMART_HOST’,`SMTP.ISP.net’)
————-check
define(`confAUTH_OPTIONS’, `A y’)dnl

Update: with RH 9 Sendmail 8.12:
need to add the following to sendmail.mc:
FEATURE(`genericstable’, `hash /etc/mail/genericstable’)dnl
GENERICS_DOMAIN_FILE(`/etc/mail/genericsdomain’)dnl
——-and change/add:
FEATURE(masquerade_envelope)dnl
FEATURE(masquerade_entire_domain)dnl

**KEY**: need to add/change genericsdomain:
localhost.localdomain ISP.net (have not tried YOURDOMAIN since I don’t need one)
localhost ISP.net

One more thing:
Edit /etc/mail/access:
AuthInfo:SMTP.ISP.net “U:USERNAME” “I:USERNAME” “P:PSWD “M:LOGIN PLAIN”

$ touch /etc/mail/masq-domains
$ touch /etc/mail/genericsdomain
$ vi /etc/mail/genericstable:
root your_reply_to@ISP.net
$ makemap -r hash genericstable.db < genericstable
$ m4 ./sendmail.mc > /etc/sendmail.cf
$ /etc/rc.d/init.d/sendmail restart

No responses yet