HELP! bad smail configuration...smailconfig problem?
I've got major problems with my smail configuration. No matter what I
do, I can't get it to put my FQDN (muffin.pronet.com) on the From: line
of outbound mail instead of just my hostname (muffin).
See the headers of this message for an example. Ignore the Reply-To: field,
I inserted that myself with pine so that replies will get back to me.
I've tried:
1. smailconfig --force
Told it that i was an smtp site with a smarthost gateway. didn't
work.
2. Copied a known working smail setup from another debian system and
localised it for muffin.pronet.com. didn't work.
3. smailconfig --force
Told it that i was an smtp site, no gateway. Seemed to to work
for the first test message or two that I sent out, but now isn't
working. The only change I've made to the config is to modify the
"local" transport to use procmail as the local delivery agent.
This morning I made sure that my FQDN was the first entry in the
hostnames= string...didn't make any difference at all.
Clues, anyone? I need to get mail working. Forcing Reply-To: headers
on every message is an ugly hack...
I'm seriously considering uninstalling smail and installing sendmail
instead.
A thought: I've also got uucp installed on this system (i need it
to bring in news from my newsfeed) - would that be causing the problem?
I suppose I could bring in news via nntp if I had to...but I prefer to
be able to manage how/when news impacts on my PPP link by using cron &
uucp.
Here's what dpkg has to say about smail & uucp:
Desired=Unknown/Install/Remove/Purge
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
uppercase=bad)
||/ Name Version Rev Description
+++-============-=========-====-===============================================
ii smail 3.1.29.1 13 Electronic mail transport system.
ii uucp 1.06.1 1 Unix to Unix Copy Program
Here's what my /etc/smail directory looks like:
total 17
drwxr-sr-x 4 mail root 1024 Nov 19 11:59 .
drwxr-xr-x 24 root root 3072 Nov 20 08:20 ..
-rw-r--r-- 1 root root 2113 Nov 19 11:57 backup.tar.gz
-rw-r--r-- 1 root root 1348 Nov 20 08:07 config
-rw-r--r-- 1 mail root 278 Jun 26 22:19 crontab
-rw-r--r-- 1 root root 1235 Nov 19 11:59 directors
drwxr-sr-x 2 mail root 1024 Jun 26 22:19 maps/
drwxr-sr-x 2 mail root 1024 Jun 26 22:19 methods/
-rw-r--r-- 1 root root 677 Nov 19 11:59 routers
-rw-r--r-- 1 root root 1522 Nov 19 15:43 transports
Hmmm...just noticed that the files are all owned by root. I'll try
changing that to mail.mail to see if that makes any difference. I don't
expect that it will.
Here's a listing of my config, routers, transports, and directors
files. The maps & methods subdirectories are empty (they must have been
installed along with the smail package...I didn't make them)
==> config <==
# This is the main Smail configuration file.
# It was originally generated by `smailconfig', part of the Smail package
# distributed with Debian, but it may edited by the mail system administrator.
# This file originally generated by smailconfig at Sun Nov 19 11:59:00 EST 1995
# See smail(5) for details of the things that can be configured here.
# NB max_message_size is currently ignored (Smail 3.1.28)
visible_name=muffin.pronet.com
-domains
# I tried putting muffin.pronet.com as the first hostname. Didn't make any
# difference.
#
hostnames=muffin.pronet.com:muffin:muffin.apana.org.au:taz.taz.net.au:taz.net.au:taz.cafe.net.au:cafe.net.au:taz.taz.com.au:taz.com.au
# this is what smailconfig produced:
#
#hostnames=muffin:muffin.pronet.com:muffin.apana.org.au:taz.taz.net.au:taz.net.au:taz.cafe.net.au:cafe.net.au:taz.taz.com.au:taz.com.au
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/copyright/smail
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@$primary_name>\n\t\
(Debian $version_string); $spool_date"
==> routers <==
# This is the Smail routers file, which says what to do with mail destined for
# remote hosts. This configuration is for Internet and satellite systems.
# It was originally generated by `smailconfig', part of the Smail package
# distributed with Debian, but it may edited by the mail system administrator.
# This file originally generated by smailconfig at Sun Nov 19 11:59:00 EST 1995
# See smail(5) for details of the things that can be configured here.
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
==> transports <==
# This is the Smail transports file, which gives details of how
# to actually do the various kinds of delivery specified by the
# directors and routers.
# It was originally generated by `smailconfig', part of the Smail package
# distributed with Debian, but it may edited by the mail system administrator.
# This file originally generated by smailconfig at Sun Nov 19 11:59:00 EST 1995
# See smail(5) for details of the things that can be configured here.
# Not all of the following are used by all configurations;
# pipe and file may be called implicitly by Smail when delivering
# to local addresses looking like |... /... ~/... .
# original smailconfig-generated local transport.
#
#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", check_path
# local transport as recommended by the procmail documentation
#
local: return_path, local, from, driver=pipe; user=root,
cmd="/usr/bin/procmail -d $($user$)"
smtp: driver=tcpsmtp, max_addrs=100, -max_chars, inet;
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, check_path, file=$user, expand_user,
mode=0660, suffix="\n"
==> directors <==
# This is the Smail directors file, which deals with mail for
# local users (ie, mail which is destined for a user of this system).
# It was originally generated by `smailconfig', part of the Smail package
# distributed with Debian, but it may edited by the mail system administrator.
# This file originally generated by smailconfig at Sun Nov 19 11:59:00 EST 1995
# See smail(5) for details of the things that can be configured here.
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=real-$user, 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 - expand local mailing lists stored in a list directory
# mailing lists can be created simply by creating a file in the
# /etc/smail/lists directory. To get local error bounces sent
# to the listowner put their name in /etc/smail/lists/owner-whatever.
lists:
driver=forwardfile, sender_okay, owner=owner-$user,
caution, nobody;
file=lists/${lc:user}
Craig
--
cas@muffin.pronet.com cas@muffin.apana.org.au
* Unix Consulting: Installation, Configuration, & Support. *
* --- Also, contact me if you need your Dos/Win/OS2 LAN connected to --- *
* --- the Internet. --- *
Reply to: