[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

smail (again..... sheesh..)



Okay... over the last 2-3 months I have been subscribed to this list, I
have noticed a predominant percentage of messages are about smail, and
it's configuration.

Obviously, I have a question. What I would like to know is what are
peoples opinion's on their own configurations, and what the pro's and
con's are. One I can think of; Daniel's rewriting of /etc/smail/config
every login, versus having visible_name set to your ISP's domain, to
have a valid hostname. (All of these questions relate to dial-up 
configurations)

Another question is, what is better: using a smarthost for all mail, or
for mail that fails? opinions here....

What would people suggest in my situation, where my ISP's SMTP server
does not mind invalid hostnames? should I just use it as a smarthost,
and forget about visible_name? I have not understood how to set up a
smarthost, how is this done?

I have been contemplating this topic and a decent solution for a while,
and have simply not been able to decide what to do........

Any help would be greatly appreciated,

                       Michael Beattie (mickyb@es.co.nz)

-------------------------------------------------------------------------------
            WinErr: 00F User error - Not our fault. Is Not! Is Not!
-------------------------------------------------------------------------------
                Debian GNU/Linux....  Ooohh You are missing out!


****************************************************************************

The following is my complete smail configuration, for whoever wants to
read it.... and make suggestions..... enhancements...... etc......

****************************************************************************
---------------- /etc/smail/config -------------------------------------

visible_name=omnic.rumpus.net                    <---- LONG story
-domains
hostnames=omnic.rumpus.net:localhost             <---- to support fetchmail

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

received_field="Received: \
    ${if def:sender_host\
       {from $sender_host ${if def:sender_host_addr ([$sender_host_addr]) }}\
       {${if def:sender_host_addr:from [$sender_host_addr] }}}\
    by $primary_name\n\t\
    ${if def:sender_proto: with $sender_proto }\
    ${if def:ident_sender:(ident $ident_sender using $ident_method) }\
    id $message_id\n\t\
    (Debian $version_string); $spool_date"

---------------- end /etc/smail/config ---------------------------------

---------------- /etc/smail/routers ------------------------------------

inet_addrs:
	driver=gethostbyaddr, transport=smtp;
	check_for_local, fail_if_error

inet_hosts:
	driver=bind, transport=smtp;
	defer_no_connect, -local_mx_okay, defnames,
	gateways=uu.net:uucp:+:cunyvm.cuny.edu:bitnet

---------------- end /etc/smail/routers --------------------------------

---------------- /etc/smail/transports ---------------------------------

#local:	driver=appendfile, from, local, inet, return_path, unix_from_hack;
#	append_as_user, check_user, file=/var/spool/mail/${lc:strip:user},
#	group=mail, mode=0660, notify_comsat, suffix="\n",

local:	return_path, local, from, driver=pipe; user=root,
	cmd="/usr/bin/procmail -d $($user$)"

smtp:	driver=tcpsmtp, max_addrs=100, -max_chars, inet,
	remove_header="From",
	insert_header="From: ${lookup:from:lsearch{maps/frommap}{$value}{mickyb@es.co.nz ($from:$fullname)}}",
        remove_header="Message-ID",
        insert_header="Message-ID: <$id@$primary>",
        remove_header="Sender",
        insert_header="Sender: ${lookup:from:lsearch{maps/frommap}{$value}{mickyb@es.co.nz ($from:$fullname)}}";
	use_bind, defer_no_connect, -local_mx_okay, defnames

uux:	driver=pipe, uucp, from, max_addrs=5, max_chars=200;
	cmd="/usr/bin/uux - -r $host!rmail $(($user)$)",
	pipe_as_sender, log_output

pipe:	driver=pipe, from, local, inet, return_path, unix_from_hack;
	cmd="/bin/sh -c $user", -ignore_status, -ignore_write_errors,
	log_output, parent_env, pipe_as_user, umask=0077

file:	driver=appendfile, from, local, return_path, unix_from_hack;
	append_as_user, file=$user, expand_user,
	mode=0660, suffix="\n"

---------------- end /etc/smail/transports -----------------------------

---------------- /etc/smail/directors ----------------------------------

aliases:
	driver=aliasfile, owner=postmaster, sender_okay;
	file=/etc/aliases, proto=lsearch,
	modemask=002, owners=root:mail:daemon, owngroups=root:mail:daemon

dotforward:
	driver=forwardfile, owner=postmaster, nobody, sender_okay;
	file=~/.forward,
	checkowner, modemask=022, owners=root,
	unsecure=0-99:~ftp:~uucp:/tmp:/var/tmp,

user:
	driver=user;
	transport=local

real_user:
	driver=user;
	transport=local,
	prefix=real-

lists:
	driver=forwardfile, sender_okay, owner=owner-$user,
        caution, nobody;
	file=lists/${lc:user}

---------------- end /etc/smail/directors ------------------------------

---------------- /etc/smail/maps/frommap -------------------------------

root	root@omnic.rumpus.net (root)
omnic	mickyb@es.co.nz (Michael Beattie)

---------------- end /etc/smail/maps/frommap ---------------------------


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: