On Thu, Mar 02, 2017 at 01:31:50PM +1000, Ludovic Simpson wrote: > 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 ? >
This depends on packaging, on OpenBSD it is in /etc/mail, I know on some Linux systems the package maintainers prefered to install it in /etc, if I recall correctly the smtpd.conf(5) man page is patched during build to reflect reality of the host system. > 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] > > > > -- 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]
