Re: exim4 under jessie vs wheezy
On Tue 16 Aug 2016 at 09:19:48 (-0400), Jeffrey Mark Siskind wrote:
> Appologies for the repost. I sent this yesterday and it hasn't yet appeared.
> It may have been filtered out for some reason.
>
> I would appreciate some help configuring exim4.
>
> What I want:
>
> I have multiple machines that I maintain and have root access on. They have
> domain ecn.purdue.edu and names like upplysingaoflun.ecn.purdue.edu and
> tlamachilistli.ecn.purdue.edu. They have static IP addresses over
> ethernet. Outgoing mail should go through smtp.ecn.purdue.edu which is a
> machine that I don't maintain and don't have root access to. Incoming mail is
> addressed to qobi@purdue.edu (and alternatively qobi@ecn.purdue.edu) and comes
> to qobi@dynamo.ecn.purdue.edu which is a machine that I have a user account on
> but don't maintain and don't have root access on. I'd like to read it on, say,
> upplysingaoflun.ecn.purdue.edu as user qobi. When I send mail from any machine
> that I maintain, I'd like it to appear with a from: header of
> qobi@purdue.edu. Since my published email address is qobi@purdue.edu (which
> forwards to qobi@ecn.purdue.edu and then to qobi@dynamo.ecn.purdue.edu by
> mechanisms that I have no control over). I have a .procmailrc file on
> dynamo.ecn.purdue.edu that I want all email to go through. I also want all
> mail to root on all of the machines that I maintain to go to qobi@purdue.edu.
>
> What I have been doing until now:
>
> I have been running Debian on the machines that I maintain for a decade. I
> recently upgraded from wheezy to jessie. I set up jessie with the same
> configuration I had been using in wheezy and prior.
>
> All of the machines that I maintain have:
>
> root@tlamachilistli:~# cat /etc/exim4/update-exim4.conf.conf
> # /etc/exim4/update-exim4.conf.conf
> #
> # Edit this file and /etc/mailname by hand and execute update-exim4.conf
> # yourself or use 'dpkg-reconfigure exim4-config'
> #
> # Please note that this is _not_ a dpkg-conffile and that automatic changes
> # to this file might happen. The code handling this will honor your local
> # changes, so this is usually fine, but will break local schemes that mess
> # around with multiple versions of the file.
> #
> # update-exim4.conf uses this file to determine variable values to generate
> # exim configuration macros for the configuration file.
> #
> # Most settings found in here do have corresponding questions in the
> # Debconf configuration, but not all of them.
> #
> # This is a Debian specific file
>
> dc_eximconfig_configtype='smarthost'
> dc_other_hostnames=''
> dc_local_interfaces='127.0.0.1 ; ::1'
> dc_readhost='purdue.edu'
> dc_relay_domains=''
> dc_minimaldns='false'
> dc_relay_nets=''
> dc_smarthost='smtp.ecn.purdue.edu'
> CFILEMODE='644'
> dc_use_split_config='false'
> dc_hide_mailname='true'
> dc_mailname_in_oh='true'
> dc_localdelivery='mail_spool'
> root@tlamachilistli:~#
>
> The was obtained by running dpkg-reconfigure exim4-config and answering the
> questions with the following:
>
> # mail sent by smarthost; received via SMTP or fetchmail
> # default hostname
^^^^^^^^
> # default 127.0.0.1 ; ::1
> # blank
> # blank
> # smtp.ecn.purdue.edu
> # yes
> # purdue.edu
> # no
> # mbox format in /var/mail
> # no
What do you actually have here?
(ie which ends up in /etc/mailname)
> I set up /etc/exim4/passwd.client to have the password needed for
> smtp.ecn.purdue.edu.
>
> I also set up /etc/aliases to forward root mail to qobi@purdue.edu.
>
> root@tlamachilistli:~# cat /etc/aliases
> # /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: qobi@purdue.edu
> root@tlamachilistli:~#
>
> I run fetchmail as user qobi on upplysingaoflun to fetch mail from
> dynamo.ecn.purdue.edu.
>
> Everything else is left at the default.
>
> What I do now: the same as I have done before.
>
> What it used to do under wheezy and before:
>
> 1. Mail from user qobi on any machine that I maintained would get a from:
> header qobi@purdue.edu.
> 2. Mail to root on any machine that I maintained would get sent to
> qobi@purdue.edu.
> 3. All mail to qobi@purdue.edu gets put in /var/spool/mail/qobi on
> upplysingaoflun.ecn.purdue.edu.
>
> What it does under jessie:
>
> (1) and (3) still work. (2) does not. I have never seen any mail to root but
> the people who maintain smtp.ecn.purdue.edu claim that mail to root on my
> machines gets sent to root@empty.
^^^^^^^ meaning precisely?
(ie using quotes if necessary).
> What has changed from wheezy to jessie? As far as I can tell I am configuring
> everything the same.
>
> How do I get mail to root to forward to qobi@purdue.edu?
Is there anything significant in /etc/mailnames ?
Cheers,
David.
Reply to: