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:mail...@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.      |
+-------------------------------+------------------------------------+
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Reply via email to