Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 May 2013 12:45:07 +0200 (CEST)
From:      =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>
To:        Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: stupid question about sendmail
Message-ID:  <alpine.BSF.2.00.1305241207070.72982@mail.fig.ol.no>
In-Reply-To: <alpine.BSF.2.00.1305241203270.2073@wojtek.tensor.gdynia.pl>
References:  <alpine.BSF.2.00.1305240931470.14121@wojtek.tensor.gdynia.pl> <alpine.BSF.2.00.1305240936340.72982@mail.fig.ol.no> <alpine.BSF.2.00.1305240954290.14216@wojtek.tensor.gdynia.pl> <alpine.BSF.2.00.1305241014090.72982@mail.fig.ol.no> <alpine.BSF.2.00.1305241054530.72982@mail.fig.ol.no> <alpine.BSF.2.00.1305241203270.2073@wojtek.tensor.gdynia.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--2055831798-179746802-1369392269=:72982
Content-Type: TEXT/PLAIN; CHARSET=ISO-8859-1
Content-Transfer-Encoding: 8BIT
Content-ID: <alpine.BSF.2.00.1305241244551.72982@mail.fig.ol.no>

On Fri, 24 May 2013 12:03+0200, Wojciech Puchar wrote:

> > 1. Edit the /etc/mail/access file.
> > 
> > 2. Insert a line like this one:
> > 
> > To:mailbox@some.domain.tld REJECT
> 
> tried too.
> 
> doesn't work.

Make sure you edit the /etc/mail/access file, not the 
/etc/mail/access.db file.

The latter is a hashmap used by sendmail for rapid lookup. The former 
is the source used to generate the /etc/mail/access.db file.

Sendmail will never read the /etc/mail/access file.

Don't forget to run the make command afterwards to update the 
/etc/mail/access.db file, and other changed files.

Your <hostname>.mc file must contain this line exactly as shown:

FEATURE(access_db, `hash -o -T<TMPF> /etc/mail/access')

Yes, sendmail will indeed access the /etc/mail/access.db file, not the 
/etc/mail/access file.

If you changed the .mc file, then install the corresponding .cf files 
using the make install command.

-- 
+-------------------------------+------------------------------------+
| Vennlig hilsen,               | Best regards,                      |
| Trond Endrestøl,              | Trond Endrestøl,                   |
| IT-ansvarlig,                 | System administrator,              |
| Fagskolen Innlandet,          | Gjøvik Technical College, Norway,  |
| tlf. mob.   952 62 567,       | Cellular...: +47 952 62 567,       |
| sentralbord 61 14 54 00.      | Switchboard: +47 61 14 54 00.      |
+-------------------------------+------------------------------------+
--2055831798-179746802-1369392269=:72982--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1305241207070.72982>