Ryan, Thanks for asking this question, as i am also working through the same issue.
i have tried the 'relay as ' option but seems to still send as [email protected] i am testing a new build using 'mailx' command from mail host (ubuntu on AWS) if i hand craft a message via telnet with all header fields its works fine. Interestingly, assessing the headers of received mail, the "Return-Path:" is set to [email protected], which must be the 'relay as' function. Gilles, i will try your advice.... ... is the mailname file OS agnostic ? will this work on ubuntu which seems to dump everything in /etc ? Merci -Ludovic. On 1 March 2017 at 20:24, Gilles Chehade <[email protected]> wrote: > On Tue, Feb 28, 2017 at 04:42:02PM -0600, techmail+osmtpd@dangertoaster. > com wrote: > > Hello, > > > > I'm working on figuring out how to set the default domain name for emails > > when the email originates from the localhost. > > > > easiest way is to add an /etc/mail/mailname file with the "local" hostname > of the MX, which can then be overridden with the "hostname" parameter on > each individual listener. > > > -- > Gilles Chehade > > https://www.poolp.org @poolpOrg > > -- > You received this mail because you are subscribed to [email protected] > To unsubscribe, send a mail to: [email protected] > >
