On 03/02/2017 02:40 AM, Gilles Chehade wrote:
On Thu, Mar 02, 2017 at 01:31:50PM +1000, Ludovic Simpson wrote:
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.
I can confirm "/etc/mailname" is the full path to the file in Ubuntu.
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:
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.
Creating the mailname file did the trick. My config is the same; I just
needed to add the mailname file.
For Ubuntu:
$ vim /etc/mailname
domain.tld
Thanks for the help everyone!
Ryan
--
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]