Re: sendmail access

2010-06-10 Thread Neal Hogan
On Thu, Jun 10, 2010 at 3:40 PM, kalin m  wrote:
>
>
>
> hi all...
> reading
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/sendmail.html
>
> i did get an access file set up. it doesn't do anything thought...
> i have only entry like this:
>
> some.domain.com            OK
>
> and did make. then changed /etc/defaults/rc.conf to
> sendmail_enable="YES"
>
> restarted sendmail. cool. so far. now mail is a accepted from everywhere not
> only the entry in access: some.domain.com
>
> why?
>

As far as I understand it, the access file makes more fine-grained
"decisions." That is, sendmail allows everything and the access file
allows you to discriminate more precisely. Notice that the example has
(something like) :

spam.com  REJECT
.
.
.
okay.spam.com  OK

So, if you only want to allow emails only from some.domain.com then
you have to REJECT all other domains . . . good luck ;-)


> thanks...
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


sendmail access

2010-06-10 Thread kalin m




hi all... 

reading 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/sendmail.html


i did get an access file set up. it doesn't do anything thought... 


i have only entry like this:

some.domain.comOK

and did make. then changed /etc/defaults/rc.conf to 
sendmail_enable="YES"


restarted sendmail. cool. so far. now mail is a accepted from everywhere 
not only the entry in access: some.domain.com


why?

thanks...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


login accounts with no sendmail access

2009-11-18 Thread Ian Smith
Hi all,

I hope you'll forgive a sendmail question that's not FreeBSD specific - 
immediate application is for a Debian Linux system running sendmail 8.13 
- but I assume it's most likely applicable to a similar FreeBSD system.

We need to (re)create a number of user accounts for Samba to service a 
nest of windows boxes, but do not want these accounts to be able to send 
or receive email, rather restricting mail access to only a few accounts, 
on a box that runs DNS, apache2, mail, audio streaming (fwiw) and Samba 
access to various fileshares, including users' home directories.

I figure we can deny each would-be email address using both From: and 
To: entries in /etc/mail/access, but I'm wondering if there's an easier 
way that doesn't involve creating such entries for each new account?

(Please don't even mention LDAP)

cheers, Ian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Sendmail Access DB Question

2006-08-17 Thread Derek Ragona
It doesn't check for forged headers but matches against the domain in the 
from.  The matching goes from right to left.


-Derek


At 01:18 PM 8/17/2006, Chris Maness wrote:

Derek Ragona wrote:

Check the headers it may be from another domain.

-Derek


At 05:22 PM 8/16/2006, Chris Maness wrote:
I have used the access db to allow e-mail's from domains that have been 
black listed by my black list DNS lists.  It works for all the other 
e-mails / domains that I have listed except for Yahoogroups.com.  Any 
suggestions?


Chris Maness
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.


--
This message has been scanned for viruses and
dangerous content by *MailScanner* , and is
believed to be clean.
MailScanner thanks transtec Computers  for 
their support.
I'm going to try to add yahoo.com, but a lot of spam comes with the domain 
yahoo.com.  Does it actually check if the from part of the header is forged?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Sendmail Access DB Question

2006-08-17 Thread Chris Maness

Derek Ragona wrote:

Check the headers it may be from another domain.

-Derek


At 05:22 PM 8/16/2006, Chris Maness wrote:
I have used the access db to allow e-mail's from domains that have 
been black listed by my black list DNS lists.  It works for all the 
other e-mails / domains that I have listed except for 
Yahoogroups.com.  Any suggestions?


Chris Maness
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.



--
This message has been scanned for viruses and
dangerous content by *MailScanner* , and is
believed to be clean.
MailScanner thanks transtec Computers  for 
their support. 
I'm going to try to add yahoo.com, but a lot of spam comes with the 
domain yahoo.com.  Does it actually check if the from part of the header 
is forged?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Sendmail Access DB Question

2006-08-17 Thread Chris Maness

Derek Ragona wrote:

Check the headers it may be from another domain.

-Derek


At 05:22 PM 8/16/2006, Chris Maness wrote:
I have used the access db to allow e-mail's from domains that have 
been black listed by my black list DNS lists.  It works for all the 
other e-mails / domains that I have listed except for 
Yahoogroups.com.  Any suggestions?


Chris Maness
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.



--
This message has been scanned for viruses and
dangerous content by *MailScanner* , and is
believed to be clean.
MailScanner thanks transtec Computers  for 
their support. 


Return-Path: <[EMAIL PROTECTED]>
Received: from n21b.bullet.sc5.yahoo.com (n21b.bullet.sc5.yahoo.com 
[66.163.187.188])
by ns1.internetinsite.com (8.13.6/8.13.6) with SMTP id k7H77i99098724
for <[EMAIL PROTECTED]>; Thu, 17 Aug 2006 00:07:45 -0700 (PDT)
(envelope-from [EMAIL PROTECTED])
Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lima; d=yahoogroups.com;

b=WjGRW09R5HRke+ionr7Ax6JdpLS1IxJ5vbDqjRRul+hNgOJswt97GNB2xw39lGks9Ss33oe8OCwmfJOsYJBxkNwF1tcZvK5umdQ9ZPfmvC+am8v2Mg2caFWbflz60WuE;
Received: from [66.163.187.123] by n21.bullet.sc5.yahoo.com with NNFMP; 17 Aug 
2006 07:07:39 -
Received: from [66.218.69.6] by t4.bullet.sc5.yahoo.com with NNFMP; 17 Aug 2006 
07:07:39 -
Received: from [66.218.66.33] by t6.bullet.scd.yahoo.com with NNFMP; 17 Aug 
2006 07:07:39 -
X-Yahoo-Newman-Property: groups-email
X-Yahoo-Newman-Id: 18328511-m45
X-Sender: [EMAIL PROTECTED]
X-Apparently-To: [EMAIL PROTECTED]
Received: (qmail 8163 invoked from network); 17 Aug 2006 07:07:37 -
Received: from unknown (66.218.66.218)
 by m27.grp.scd.yahoo.com with QMQP; 17 Aug 2006 07:07:37 -
Received: from unknown (HELO web50411.mail.yahoo.com) (206.190.38.154)
 by mta3.grp.scd.yahoo.com with SMTP; 17 Aug 2006 07:07:37 -
Received: (qmail 67607 invoked by uid 60001); 17 Aug 2006 07:07:29 -
Message-ID: <[EMAIL PROTECTED]>
Received: from [64.60.89.135] by web50411.mail.yahoo.com via HTTP; Thu, 17 Aug 
2006 00:07:29 PDT
To: [EMAIL PROTECTED]
In-Reply-To: <[EMAIL PROTECTED]>
X-Originating-IP: 206.190.38.154
X-eGroups-Msg-Info: 1:0:0:0
From: David De Casaus <[EMAIL PROTECTED]>
X-Yahoo-Profile: daviddecasaus
Sender: [EMAIL PROTECTED]
MIME-Version: 1.0
Mailing-List: list [EMAIL PROTECTED]; contact [EMAIL PROTECTED]
Delivered-To: mailing list [EMAIL PROTECTED]
List-Id: 
Precedence: bulk
List-Unsubscribe: 
Date: Thu, 17 Aug 2006 00:07:29 -0700 (PDT)
Subject: Re: [InlandEmpireFilm] Meeting in Cucamonga on Saturday
Reply-To: [EMAIL PROTECTED]
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Sendmail Access DB Question

2006-08-17 Thread Derek Ragona

Check the headers it may be from another domain.

-Derek


At 05:22 PM 8/16/2006, Chris Maness wrote:
I have used the access db to allow e-mail's from domains that have been 
black listed by my black list DNS lists.  It works for all the other 
e-mails / domains that I have listed except for Yahoogroups.com.  Any 
suggestions?


Chris Maness
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Sendmail Access DB Question

2006-08-16 Thread Chris Maness
I have used the access db to allow e-mail's from domains that have been 
black listed by my black list DNS lists.  It works for all the other 
e-mails / domains that I have listed except for Yahoogroups.com.  Any 
suggestions?


Chris Maness
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


sendmail access file and cidrexpand

2004-06-05 Thread Warren Block
Adding cidrexpand support to the /etc/mail/Makefile would be handy; then 
we could use CIDR notation in /etc/mail/access.  I've edited the 
/etc/mail/Makefile (patch attached), and it seems to work.

The question would be: have I done this in an appropriate way?
Feedback would be appreciated before I submit a send-pr.
-Warren Block * Rapid City, South Dakota USA--- Makefile.bakSat Jun  5 15:32:45 2004
+++ MakefileSat Jun  5 16:17:58 2004
@@ -109,6 +109,7 @@
 SENDMAIL?= /usr/sbin/sendmail
 MAKEMAP?=  /usr/sbin/makemap
 M4?=   /usr/bin/m4
+CIDREXPAND?=   /usr/src/contrib/sendmail/contrib/cidrexpand
 
 # Permissions for generated maps
 SENDMAIL_MAP_PERMS?=   0640
@@ -125,11 +126,11 @@
 # type to use when calling makemap.
 #
 SENDMAIL_MAP_SRC+= mailertable domaintable bitdomain uucpdomain \
-   genericstable virtusertable access
+   genericstable virtusertable
 SENDMAIL_MAP_OBJ=
 SENDMAIL_MAP_TYPE?=hash
 
-.for _f in ${SENDMAIL_MAP_SRC} userdb
+.for _f in ${SENDMAIL_MAP_SRC} access userdb
 .if exists(${_f})
 SENDMAIL_MAP_OBJ+= ${_f}.db
 .endif
@@ -148,6 +149,10 @@
${MAKEMAP} ${SENDMAIL_MAP_TYPE} ${.TARGET} < ${.OODATE}
chmod ${SENDMAIL_MAP_PERMS} ${.TARGET}
 .endfor
+
+access.db: access
+   ${CIDREXPAND} < ${.OODATE} | ${MAKEMAP} -r ${SENDMAIL_MAP_TYPE} ${.TARGET}
+   chmod ${SENDMAIL_MAP_PERMS} ${.TARGET}
 
 userdb.db: userdb
${MAKEMAP} btree ${.TARGET} < ${.OODATE}
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"