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
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!