Ticket #125 (closed defect: fixed)

Opened 15 years ago

Last modified 14 years ago

debathena-msmtp-mta should support /etc/aliases; set intelligent Envelope-From

Reported by: andersk Owned by: jdreed
Priority: normal Milestone: Spring 2010
Component: -- Keywords:
Cc: Fixed in version:
Upstream bug:

Description (last modified by jdreed) (diff)

With debathena-msmtp-mta, when you send a mail to root, msmtp attempts to deliver it to root@…, which bounces. Since root receives important automated messages, e.g. “Your hard drive is dying! Love, smartd”, we want to be able to configure root mail to go somewhere useful. Full support for /etc/aliases would be even better.

Change History

comment:1 Changed 15 years ago by jdreed

  • Component set to --
  • Milestone set to Summer 2010

comment:2 Changed 14 years ago by jdreed

  • Description modified (diff)
  • Milestone changed from Summer 2010 to Spring 2010

This is related to #83. At the very least, root should be dealt with. However, chances are no one will ever read root's local mail. Once we get this working, the installer should offer to configure the local MTA to forward root's mail somewhere useful (like, say, the user's MIT account).

Moving this to Spring, since we really want auto-update to be able to whine loudly at the user when necessary.

comment:3 Changed 14 years ago by jdreed

  • Status changed from new to proposed

With libmail-expandaliases-perl and 1.7 of debathena-msmtmp-foo, I think this should now work. We ship a bare-bones /etc/aliases which sends most local accounts to root, and encourages users to point root's mail to their MIT account.

#83 (local delivery) is still a pony, but that's fine.

comment:4 Changed 14 years ago by jdreed

  • Owner set to jdreed
  • Status changed from proposed to accepted
  • Summary changed from Mail to root bounces from root@mit.edu to debathena-msmtp-mta should support /etc/aliases; set intelligent Envelope-From

This needs a bit more work, in that /etc/aliases should be generated in the postinst, and we should do clever things with debconf.

Additionally, we should try and set the "From" cleverly, so that mail from, root is not From: root@…, but that mail from, e.g. joeuser is from joeuser@….

comment:5 Changed 14 years ago by jdreed

  • Status changed from accepted to proposed

comment:6 Changed 14 years ago by jdreed

  • Status changed from proposed to closed
  • Resolution set to fixed

Fixed and moved.

Envelope-from is now correct, but regular From is not necessarily, particularly since Anacron insists on writing it as "From: <root>", which msmtp rewrites to root@…. There's not much we can do about that.

Note: See TracTickets for help on using tickets.