Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

controlling who is allowed to send to a local user/address?

0 views
Skip to first unread message

thomahawk

unread,
Jan 10, 2007, 7:18:13 AM1/10/07
to
I am running v.8.13.12 with spamassassin and mimedefang.

My server is running several virtual domains. I wonder, is it possible
to limit access to one of the mail addresses on one of the virt.domain,
such that only certain known From-addresses is relayed and sent to it?
How? :)

The address in question is an alias for several (local) recipents; a
static
mailing list, so to say. It should be so that the only one allowed to
send mail to this address are the
ones on the alias-list.


Regards,
thomas

Per Hedeland

unread,
Jan 11, 2007, 4:52:39 PM1/11/07
to
In article <1168431493.8...@i56g2000hsf.googlegroups.com>
"thomahawk" <thomas...@gmail.com> writes:

>I am running v.8.13.12 with spamassassin and mimedefang.

Probably not, since no such version exists, but anyway...

>My server is running several virtual domains. I wonder, is it possible
>to limit access to one of the mail addresses on one of the virt.domain,
>such that only certain known From-addresses is relayed and sent to it?
>How? :)
>
>The address in question is an alias for several (local) recipents; a
>static
>mailing list, so to say. It should be so that the only one allowed to
>send mail to this address are the
>ones on the alias-list.

Well, typically such things are handled with a mailing list manager
outside of sendmail - most all mailing lists are set up that way these
days. Of course sendmail can do better by rejecting the message before
it is received/accepted, which can be important if it is spam that you
need to block. There are some suggestions for doing it via the sendmail
config at http://www.sendmail.org/~ca/email/protected.html , but given
that you're already running MIMEDefang, it may be simpler to do it there
- just a few lines of perl...

Using the actual recipient-list for the check, i.e. avoiding having to
define it in two places, is the norm for a mailing list manager. Doing
it when using sendmail "itself" or MIMEDefang is probably a bit more
tricky, but it should be doable. Hm, for the MIMEDefang case, try

$ perl -le 'use DB_File; \
tie(%ALIAS, "DB_File", "/etc/mail/aliases.db", 0) || die "Error: $!"; \
print $ALIAS{"postmaster\0"}'

Then it's just a few more lines of perl.:-)

--Per Hedeland
p...@hedeland.org

jma...@ttec.com

unread,
Jan 14, 2007, 8:54:52 PM1/14/07
to

thomahawk

unread,
Jan 17, 2007, 3:52:22 AM1/17/07
to
Guys,

thanks for reply and input.
As Hedeland noted, my sendmail version was wrong.. sorry.. it should
have been 8.13.7-2.

Although, I have been using sendmail for quite a while, I am still no
hardcore, such that I hack .cf-files. I stick to my mc-files... :) I
see, however, that what I want to accomplish, probably isn't possible
with only generating .cf-files through .mc..

The easiest way out is probably to install a mailinglist manager such
as mailman.

thanks!


thomas

jma...@ttec.com

unread,
Jan 17, 2007, 12:09:17 PM1/17/07
to

thomahawk wrote:
> Guys,
>
> thanks for reply and input.
> As Hedeland noted, my sendmail version was wrong.. sorry.. it should
> have been 8.13.7-2.
>
> Although, I have been using sendmail for quite a while, I am still no
> hardcore, such that I hack .cf-files. I stick to my mc-files... :) I

> > http://www.jmaimon.com/sendmail/#rcptauthreq
> > http://www.jmaimon.com/sendmail/patches/rcptauthsender.txt
> > http://www.jmaimon.com/sendmail

This is a simple as placing the lines into sendmail.mc and adding lines
to your access database.

0 new messages