--- Begin Message ---
Package: smail
Version: 3.2.0.102-1
Severity: wishlist
I need smail configured to masquerade as mitre.org for outbound mail
(so all mail from vanzandt-pc.mitre.org appears to come from
mitre.org, even if it is addressed to other hosts within mitre.org),
but not to accept mail for mitre.org (because my smarthost accepts
such mail, and redirects it here only if appropriate). I was unable
to set this up with smailconfig. I eventually set it up using
configtype=1,
from="vanzandt-pc.mitre.org",
no alternate addresses, and
smarthost=1,
then editing /etc/smail/config to set visible_host=mitre.org.
I have three suggestions:
(1) provide a way to set this up without manual edits (or else
clarify the dialog, if there is a way already :-)
(2) record somewhere the choices made when smailconfig is run,
to make it easier to reconstruct what happened.
(3) preferably, smailconfig should offer the current
configuration as the default entries (not just after the first time
around the dialogs).
- Jim Van Zandt
-- System Information
Debian Release: 2.1
Kernel Version: Linux vanzandt-pc 2.2.5 #2 Fri Apr 2 08:59:22 EST 1999 i686
unknown
Versions of the packages smail depends on:
ii libc6 2.0.7.19981211 GNU C Library: shared libraries
ii libident 0.21-7 simple RFC1413 client library - runtime
ii cron 3.0pl1-50 management of regular background processing
ii util-linux 2.9g-6 Miscellaneous system utilities.
--- Begin /etc/aliases (modified conffile)
postmaster: root
root: jrv
daemon: root
bin: root
sys: root
sync: root
games: root
man: root
lp: root
mail: root
news: root
uucp: root
proxy: root
gnats: root
majordom: root
postgres: root
backup: root
dos: root
operator: root
list: root
irc: root
mailer-daemon: postmaster
--- End /etc/aliases
--- Begin /etc/smail/transports (modified conffile)
local: driver=appendfile, # append message to a file
from, # supply a From_ envelope line
local, # use local forms for delivery
inet, # use route-addr addresses for routing
return_path, # include a Return-Path: field
unix_from_hack; # insert > before From in body
append_as_user,
check_user, # use user-id associated with address
file=/var/spool/mail/${lc:strip:user}, # location of mailbox files
group=mail, # group to own file
mode=0660,
suffix="\n" # append an extra newline
smtp: driver=tcpsmtp,
max_addrs=100, # limit on number of addresses
-max_chars,
inet; # use route-addr addresses for routing
use_bind, # resolve MX and multiple A records
defer_no_connect, # try again if the nameserver is down
-local_mx_okay, # fail an MX to the local host
defnames # use standard domain searching
uux: driver=pipe,
uucp, # use UUCP-style addressing forms
from, # supply a From_ envelope line
max_addrs=5,
max_chars=200;
cmd="/usr/bin/uux - -r $host!rmail $(($user)$)",
pipe_as_sender, # have uucp logs contain caller
log_output # save error output for bounce messages
pipe: driver=pipe,
from, # supply a From_ envelope line
local, # use local forms for delivery
inet, # use route-addr addresses for routing
return_path, # include a Return-Path: field
unix_from_hack; # insert > before From in body
cmd="/bin/sh -c $user",
-ignore_status, # ignore a non-zero exit status
-ignore_write_errors, # ignore write errors, i.e., broken pipe
log_output, # save error output for bounce messages
parent_env, # environment info from parent addr
pipe_as_user, # use user-id associated with address
umask=0077
file: driver=appendfile,
from, # supply a From_ envelope line
local, # use local forms for deliver
return_path, # include a Return-Path: field
unix_from_hack; # insert > before From in body
append_as_user, # use user-id associated with addres
file=$user, # file is taken from address
expand_user, # expand ~ and $ within addres
mode=0660,
suffix="\n" # append an extra newline
--- End /etc/smail/transports
--- Begin /etc/smail/directors (modified conffile)
aliasinclude:
driver=aliasinclude, # use this special-case driver
nobody; # associate nobody user with addresses
# when mild permission violations
# are encountered
copysecure, # get permissions from alias director
copyowners, # get owners from alias director
forwardinclude:
driver=forwardinclude, # use this special-case driver
nobody;
copysecure, # get perms from forwarding director
copyowners, # get owners from forwarding director
aliases:
driver=aliasfile, # general-purpose aliasing director
-nobody, # all addresses are associated
# with nobody by default, so setting
# this is not useful.
sender_okay, # don't remove sender from expansions
owner=postmaster; # problems going to postmaster
file=/etc/aliases, # default: sendmail compatible
owners=root:mail:daemon, # A list of permissible owners/owning
owngroups=root:mail:daemon, # groups for the alias file.
modemask=002, # should not be globally writable
proto=lsearch, # unsorted ASCII file
# if you ever change the line above, change /usr/sbin/mkaliases, too!!!
dotforward:
driver=forwardfile, # general-purpose forwarding director
owner=real-$user, # problems go to the user's mailbox
nobody, # use nobody user, if unsecure
sender_okay; # sender never removed from expansion
file=~/.forward, # .forward file in home directories
checkowner, # the user can own this file
owners=root, # or root can own the file
modemask=002, # it should not be globally writable
caution=0-10:uucp:daemon, # don't run things as root or daemons
# be extra carefull of remotely accessible home directories
unsecure=0-99:~ftp:~uucp:/tmp:/var/tmp,
user:
driver=user;
transport=local
#
real_user:
driver=user;
transport=local,
prefix="real-",
#
lists: driver=forwardfile,
caution, # flag all addresses with caution
nobody, # and then associate the nobody user
-sender_okay, # do remove sender from list expansions
owner=owner-$user; # system V sites may wish to use
# o-$user, as owner-$user may be
# too long for a 14-char filename.
# map the name of the mailing list to lower case
file=lists/${lc:user},
--- End /etc/smail/directors
--- Begin /etc/smail/routers (modified conffile)
smart_host:
driver=smarthost, transport=smtp;
path=mbunix.mitre.org
--- End /etc/smail/routers
--- Begin /etc/smail/config (modified conffile)
visible_name=mitre.org
more_hostnames=localhost
-domains
hostnames=vanzandt-pc.mitre.org
max_load_ave=5
smtp_accept_max=20
smtp_accept_queue=10
rfc1413_query_timeout=15
require_configs
-second_config_file
-qualify_file
-retry_file
copying_file=/usr/doc/smail/copyright
max_message_size=10M
smtp_remote_allow=localnet
received_field="Received: ${if def:sender_host\
{from $sender_host${if def:sender_host_addr\
{ (really [$sender_host_addr])}} }\
else {${if def:sender_host_addr\
{from [$sender_host_addr] }}}}\
by $visible_name\n\t\
${if def:sender_program\
{via $sender_program }}\
${if def:sender_proto\
{with $sender_proto}\
else {from stdin}}\
${if def:ident_sender\
{ (ident $ident_sender using $ident_method)}}\n\t\
id <[EMAIL PROTECTED]> (Debian Smail$version)\n\t\
${if def:input_addr\
{for ${top:input_addr}}\
else {for <unknown>}}\
; $spool_date "
--- End /etc/smail/config
--- End Message ---