On Mon, Feb 22, 2016 at 09:40:00AM +0000, ML mail wrote: > Hello, > > How do one configure the domain which OpenSMTPD uses by default to speak with > other mail servers? The problem is that my default it takes the internal > domain name of my OpenBSD 5.8 server and therefore other mail servers reject > it with the error: > > Sender address rejected: Domain not found > > > So in fact it sends mails with u...@internal.lan and I would like it to send > mails with u...@realdomain.tld, how can I achieve that? I did not find the > config parameter in smtpd.conf for that purpose.
See 'hostname' in relay part in smtpd.conf(5). j.