[ILUG] regarding sendmail
mariconor at gmail.com
Thu Jan 17 23:26:40 GMT 2008
On 17 Jan 2008, at 20:50, Sher Khan wrote:
> Hello all;
> I would like to restrict some email address for outer world
> relaying ... I
> am using sendmail as MTA.
> my problem is; like i have email address:
> abc1 at mydomian.com
> email@example.com <abc2 at mydomian.com>*
> I just wanted to allow abc2 at mydomian.com to send emails to my local
> abc1 at mydomian.com on my local domain only......
> But abc2 at mydomian.com is not allowed to send emails to outer world
> like hotmail or yahoo etc
> how can I do this ... please any body out there to help me...
Its been a few years but lets go:
add abcd1 at mydomain.com and abcd2 at mydomain.com to /etc/mail/access
then give em access or denied rules :
abcd1 at mydomain.com REJECT
abcd2 at mydomain.com RELAY
makemap hash /etc/mail/access < /etc/mail/access
Does it work? If not, have you explicitly enterered you smarthost?
No, then install the m4 macroprocessor,
More info on t'internet
Save and exit and then
m4 /etc/mail/sencmail.mc >>/etc/mail/sendmail.cf
Forgive me if this has errors but I have a few glasses of wine, hic...
and it really has been many years since I looked at sendmail. hic ;-0
Oh, dont forget to restart sendmail
More information about the ILUG