1831219 Members
2978 Online
110021 Solutions
New Discussion

Sendmail

 
Choppa Kumar
Occasional Advisor

Sendmail

Ddear All ,
Could you some one help me how to restrict the sending the SMTP mails through sendmail using the /etc/aliases database.i'll be apprecite for your prompt reponse
Regards,
kumar umar
8 REPLIES 8
G. Vrijhoeven
Honored Contributor

Re: Sendmail

Hi kumar umar,

You can check this link:
http://www.unet.univie.ac.at/aix/files/aixfiles/aliases.htm

More info on sendmail configs:
http://www.uwsg.iu.edu/usail/mail/op/op.html

HTH,

Gideon
Stuart Browne
Honored Contributor

Re: Sendmail

Restricting is usually the job of '/etc/mail/access', not '/etc/aliases'.

What sort of things are you wanting to restrict? the source of the message? The destination? The user sending?
One long-haired git at your service...
Choppa Kumar
Occasional Advisor

Re: Sendmail

Hi,
Nice to see your reply .I want keep restriction on user sending SMTP mails .Please sugest .
Kumar
Chris Saunderson
Frequent Advisor

Re: Sendmail

Are you referring to SMTP AUTH? Or POP-before-SMTP. This may be what you are looking for:

http://popbsmtp.sourceforge.net/
Ted Nugent called. He wants his shirt back.
Choppa Kumar
Occasional Advisor

Re: Sendmail

pl find the setup details.we have E2K with sendmail as SMTP gateway .Every one can able to send smtp mails but con't receive.only specifed users having entries in "/etc/aliases " file can get SMTP files.Pl advice
Stuart Browne
Honored Contributor

Re: Sendmail

Sorry about the previous post.. wrong thread ;)

From the description, you only want certain 'users' to be able to relay?

Two options, one easier than the other.

If a given 'user' is always at a given terminal (PC), then using '/etc/mail/access' and allowing certain IP's to 'relay' (instead of the entire subnet) will

give you this.

If the users roam around, then you need to set up 'SMTP Auth', and have those users authenticate against the SMTP server first, before being able to

send/relay messages out.

The sendmail FAQ has details on setting SMTP Auth up.
One long-haired git at your service...
Choppa Kumar
Occasional Advisor

Re: Sendmail

Can you pl provide me in detail
SELVAM_1
Advisor

Re: Sendmail

An access database can be created to accept or reject mails from selected domains or senders. You edit a text file /etc/mail/access. Each domain/computers/senders can be followed by :OK,RELAY,REJECT or DISCARD.


#####-----------------------
# SAMPLE OF /etc/mail/access
#####-----------------------
localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
spammer@aol.com REJECT
192.168.1 RELAY

==============================
After modifying access text file, you have to create database map with command: makemap hash /etc/mail/access.db < /etc/mail/access


or chk

http://www.faqs.org/docs/securing/chap22sec178.html

for full details.

Hope this will help