Quote:
Originally Posted by stioanid
I just did that. I configured my smarthost variable to mail.mydomain.com which is my MX .
I hope it works. I'll check it and I'll let you know
|
It doesn't work after all.
By the way my ISP provider is only responsible for DNS not sendmail. Sendmail is locally mantained.
I did the following but still it seems it doesn't work
edit sendmail.mc
dnl MASQUERADE_AS('example.com')dnl
dnl MASQUERADE_AS('example.com')dnl
FEATURE(`access_db')dnl
FEATURE(`authinfo', `hash /etc/mail/authinfo')
define(`SMART_HOST',`mail.example.com')dnl
MASQUERADE_AS(example.com)dnl
FEATURE(`allmasquerade')dnl
FEATURE(`masquerade_envelope')dnl
FEATURE(genericstable, `hash -o /etc/mail/genericstable')dnl
GENERICS_DOMAIN_FILE(`/etc/mail/genericsdomain')dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
Create a file named
/etc/mail/genericstable
with this inside it
root
stavros@example.com
and the execute this,
makemap hash /etc/mail/genericstable < /etc/mail/genericstable
FEATURE(`authinfo', `hash /etc/mail/authinfo')
Then created the authinfo file
vi /etc/mail/authinfo
with this inside
AuthInfo:mail.example.com "U:stavros@mail.example.com" "I:stavros" "P

asswd" "M:LOGIN PLAIN"
and run
makemap hash /etc/mail/authinfo < /etc/mail/authinfo
and made authinfo readable only by root
chmod 600 /etc/mail/authinfo
My question is do I need to really have the real password in "P

asswd" ? And the user I am using has to have root priviliges?
And can you check generally to see if what I did looks all right .