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
>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
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
> > 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.