[Pkg-exim4-users] two elementary questions

David Liontooth liontooth@cogweb.net
Sun, 15 May 2005 20:15:04 -0700


Greetings,

On a Debian sid box, I'm trying to achieve the following configuration:

 * mail can be sent from one user to another on the same box
 * cron can send mail to the respective owner of cronjobs
 * mail can be sent out
 * mail cannot be received from the outside

Simple, right?  Especially with exim4 supporting a zillion options.

Here's what works: mail can be sent out.  How do I set up the first two?

When I try to mail to a local user, I get "R=dnslookup T=remote_smtp
defer (111)"
instead of something like "R=local_user T=maildir_home".  In
/etc/exim4/update-exim4.conf.conf
I have "dc_localdelivery=maildir_home", but it's obviously not
understood -- wrong syntax.

When I run a cronjob, ps aux shows "/usr/sbin/sendmail -i -FCronDaemon
-oem tna",
where tna is the owner of the job, but nothing is received -- exim4
tries to send the e-mail to
the remote address, which doesn't exist (tna@mymachine.subnet.edu or
tna@subnet.edu).
How do you set this up so that mail to the outside goes to the smtp
server, but mail within
the machine doesn't try to go outside?

dc_eximconfig_configtype='smarthost'
dc_other_hostnames=''
dc_local_interfaces='127.0.0.1'
dc_readhost='mymachine.subnet.edu'
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost='mail.subnet.edu'
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='true'
dc_mailname_in_oh='true'
dc_localdelivery=maildir_home

Or more simply: what could be preventing cronjobs from delivering
messages? In /etc/aliases I have
this:

# /etc/aliases
mailer-daemon: postmaster
postmaster: root
nobody: root
hostmaster: root
usenet: root
news: root
webmaster: root
www: root
ftp: root
abuse: root
noc: root
security: root
root: tna

But that shouldn't affect mail from cronjobs, right? Those messages
should just go to their respective owners.

Dave