stupid question about sendmail
Trond Endrestøl
Trond.Endrestol at fagskolen.gjovik.no
Fri May 24 10:48:42 UTC 2013
On Fri, 24 May 2013 12:45+0200, Trond Endrestøl wrote:
> 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 at 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.
One final(?) note: You might need this line as well:
FEATURE(blacklist_recipients)
--
+-------------------------------+------------------------------------+
| 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. |
+-------------------------------+------------------------------------+
-------------- next part --------------
_______________________________________________
freebsd-hackers at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
More information about the freebsd-hackers
mailing list