LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] regarding sendmail

[ILUG] regarding sendmail

Conor Wynne 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
> abc2*@mydomian.com <abc2 at mydomian.com>*
>
> I just wanted to allow  abc2 at mydomian.com to send emails to my local  
> user
> abc1 at mydomian.com on my local domain only......
> But abc2 at mydomian.com is not allowed to send emails to outer world  
> domain
> 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,
vi /etc/mail/sendmail.cf
define(`SMART_HOST', `your-smtp-server')
FEATURE(authinfo)dnl

More info on t'internet
http://cri.ch/linux/docs/sk0009.html

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

Regards
Conor.




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell