Browse Source

Add example genericstable

OPENBSD_3_6
millert 20 years ago
parent
commit
58429eae28
2 changed files with 34 additions and 2 deletions
  1. +6
    -2
      src/etc/mail/Makefile
  2. +28
    -0
      src/etc/mail/genericstable

+ 6
- 2
src/etc/mail/Makefile View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.3 2004/06/24 18:27:45 tom Exp $
# $OpenBSD: Makefile,v 1.4 2004/08/14 17:06:03 millert Exp $
#
# Generate the various .db versions from their source files.
# The sendmail .mc files are not built here. They live in
@ -31,6 +31,9 @@ distribution:
-O DontBlameSendmail=mapinunsafedirpath
${INSTALL} -c -o root -g wheel -m 644 local-host-names \
${DESTDIR}/etc/mail/local-host-names
${INSTALL} -c -o root -g wheel -m 644 genericstable \
${DESTDIR}/etc/mail/genericstable
makemap hash ${DESTDIR}/etc/mail/genericstable < genericstable
${INSTALL} -c -o root -g wheel -m 644 mailertable \
${DESTDIR}/etc/mail/mailertable
makemap hash ${DESTDIR}/etc/mail/mailertable < mailertable
@ -41,7 +44,8 @@ distribution:
${INSTALL} -c -o root -g wheel -m 644 virtusertable \
${DESTDIR}/etc/mail/virtusertable
makemap hash ${DESTDIR}/etc/mail/virtusertable < virtusertable
@for db in access.db aliases.db mailertable.db virtusertable.db; do \
@for db in access.db aliases.db genericstable.db mailertable.db \
virtusertable.db; do \
chmod 644 ${DESTDIR}/etc/mail/$$db; \
done


+ 28
- 0
src/etc/mail/genericstable View File

@ -0,0 +1,28 @@
# $OpenBSD: genericstable,v 1.1 2004/08/14 17:06:03 millert Exp $
#
# sendmail(8) generics table. Rebuild by running as root:
# makemap hash /etc/mail/genericstable < /etc/mail/genericstable
#
# This file contains the mapping of local to external addresses.
# It is often used to map login names to First.Last name style
# email addresses.
#
# Each line denotes a transform of:
# local_address external_address
#
# Where local_address is usually unqualified.
#
# E.g.
# peter Peter.Parker@bugle.com
#
# It is also possible to rewrite non-local address from one or more
# domains using the GENERICS_DOMAIN or GENERICS_DOMAIN_FILE macros.
# This is usally used on an outgoing mail hub to rewrite addresses
# from different subsidiaries or departments to include the parent
# domain (in addition to the First.Last name mapping). E.g.
#
# joe@dept.company.com Joe.Bloggs@company.com
#
# See the "genericstable" section of /usr/share/sendmail/README for
# more information.
#

Loading…
Cancel
Save